Photon voice 2 not working on build!
I'm trying to use photon voice. When running in the editor it works. But when running on Build it doesn't work.
Assets/Photon/PhotonVoice/PhotonVoiceApi/Platforms/Unity/MicWrapper.cs Line: 39)
Starting microphone failed: "Error initializing output device. " (60)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.Microphone:Start (string,bool,int,int)
Photon.Voice.Unity.UnityMicrophone:Start (string,bool,int,int) (at /Assets/Photon/PhotonVoice/PhotonVoiceApi/Platforms/Unity/UnityMicrophone.cs:68)
Photon.Voice.Unity.MicWrapper:.ctor (string,int,Photon.Voice.ILogger) (at Assets/Photon/PhotonVoice/PhotonVoiceApi/Platforms/Unity/MicWrapper.cs:43
...
unity Vs: 2020.3.34f
Phonton PUN2 v2.40
Photon voice v2.31
Answers
-
Make sure that you pass the id of existing device (from Microphone.devices list) or empty string for the default device when initializing the microphone.
0