Switching Microphones

Is there an easy way to switch Microphones when using PhotonVoiceNetwork, or an event to detect when the Microphone is disconnected or connected?

Comments

  • Set global PhotonVoiceNetwork.MicrophoneDevice to one of the Unity's Microphone.device anytime. See TestVoice/Gui.cs
    It's possible also to change microphone per PhotonVoiceRecorder with its MicrophoneDevice property. But global setting is enough in most cases.
  • If you change it whilst connected it does not use the new Microphone... seems like you have to disconnect and re-connect.
  • Did you try it in TestVoice demo? It works for me.
  • Nope, doesn't work for me.
    I'm testing it in Unity 2017.2 using the latest version on Photon Voice v1.12.

    To test I run the TestVoice-Scene, and use the Debug Echo option.
    No matter what I do (disconnect, reconnect, hard code, etc. it always uses the default Microphone)
  • After digging some more.. turns out it's a Unity 2017.2.0f3 bug. It ignores the name of the Microphone completely.
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited October 2017
    Hi @SniperED007,

    Thank you for letting us know but could you please share your findings, the issue tracker link or from where you got this info. Thanks.

    We could add it to our known issues page.