The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Voice.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Change microphone issue

STak4
2023-02-24 00:54:51

Hi.

I found an issue about changing microphone on latest Photon Voice.

A micropone seems to be switched, but no audio is heared after noises.

A minimum reproducible project(Unity2020.3.40f1) is here.

https://mega.nz/file/MjBkGbTT#MFSAscjHMfeQBaJcVUE9KlFOncY7EzCx0rKG7Ajz7q4

The scene name is SwitchMicrophoneIssue.unity(Assets/SwitchMicrophoneIssue.unity)

Please set your PUN Ids for voice chat.

The project based on Photon Voice Package's demo(DemoVoiceMinimal)

Environments:

Unity 2020.3.40f1

Photon Voice 2.51

Standalone(.exe/Editor)

Comments

vadim
2023-02-24 09:42:09

Hi,

Do you have any errors or warnings in the log?

A microphone device from the Unity microphone list (Microphone.devices) is good only for Unity mic type. Make sure that recorder.MicrophoneType is set to Unity.

In Photon mic type mode, use the device enumerator provided by Photon: Platform.CreateAudioInEnumerator()

STak4
2023-02-27 01:35:56

@vadim

In Photon mic type mode, use the device enumerator provided by Photon: Platform.CreateAudioInEnumerator()

Oh, I didn't know that. It works. Thank you!

Back to top