Photon Voice constantly unlinked
Options
Hi,
We currently have the game "We Were Here" on steam and are getting reports of players not being able to hear each other. We are having a hard time identifying the problem. We have a matchmaking scene in which players can join/create rooms. Once the player joins a room a PhotonVoice Prefab is instantiated on the network (contains a PhotonView/AudioSource/Photonvoicerecorder/PhotonVoiceSpeaker). Once the second player joins and the second prefab is created it either never has the streaming audioclip or the voice unlinks and creates a new link every 2/3 seconds.
I've tried the Voice Demo to see if we were missing something, but using the same setup as shown in the demo the issue continues to exist.
Has anyone experienced a similar issue and managed to fix it?
Unity version: 5.5.0f3
Thank you for your time,
Total Mayhem Games
We currently have the game "We Were Here" on steam and are getting reports of players not being able to hear each other. We are having a hard time identifying the problem. We have a matchmaking scene in which players can join/create rooms. Once the player joins a room a PhotonVoice Prefab is instantiated on the network (contains a PhotonView/AudioSource/Photonvoicerecorder/PhotonVoiceSpeaker). Once the second player joins and the second prefab is created it either never has the streaming audioclip or the voice unlinks and creates a new link every 2/3 seconds.
I've tried the Voice Demo to see if we were missing something, but using the same setup as shown in the demo the issue continues to exist.
Has anyone experienced a similar issue and managed to fix it?
Unity version: 5.5.0f3
Thank you for your time,
Total Mayhem Games
0
Comments
-
Hi @TotalMayhemGames,
Your game looks amazing.
Could you please give us more details about the issues you are having?
- Photon Voice version
- log entries
- reproduction steps0 -
Hi @JohnTube ,
Version: We are running Photon Voice 1.8.
These are the logs i'm getting from Photon Voice:PUNVoice: [PV] Frame event for not inited voice #8 of player #2 at channel #1
UnityEngine.Debug:LogWarning(Object)
PUNVoice: [PV] Local voice #32 audio source frequency 44100 and encoder sampling rate 24000 do not match. Resampling will occur before encoding.
PUNVoice: Player 2 voice # 16 speaker unlinked.
PUNVoice: Player 2 voice #17 speaker created.
Reproduction:
We have the PhotonVoiceSettings loaded in the splashscreen.
We instantiate(PhotonNetwork.Instantiate("PhotonVoicePrefab", Vector3.zero, Quaternion.identity, 0);) the Voice prefab (gameobject with voicespeaker,voicerecorder, audiosource and photonview) on OnJoinedRoom().
When the second player enters the room and thus the second prefab is created the voice works but drops every few seconds with the above logs.
If you need more information let me know.
Thanks,
Total Mayhem Games0 -
OK thank you for your report.
We will take a look.0 -
Hi,
1. Do you reproduce the issue yourself?
2. If yes, does Voice Demo fails same way?
3. Did you try another region or/and appid?
4. Do you change scenes in application?
5. Can you send full log? High voices numbers mean that either PhotonVoiceRecorder created or microphone switched multiple times. Please find out what exactly happens and why.0 -
Hi.
Sorry for a delayed response.
We are currently refactoring most of our matchmaking code and are no longer experiencing the issue.
Thanks for the support,
Total Mayhem Games0 -
I'm glad to know you're no longer having this issue with Photon Voice.
Good luck with your game(s)!0 -
Good afternoon, I have the same problem reported, but I use version 1.22, could you help me?0
-
Hi @Mizael86,
Thank you for choosing Photon!
In order to help you, you could start by answering my colleague Vadim's questions from the post above1. Do you reproduce the issue yourself?
2. If yes, does Voice Demo fails same way?
3. Did you try another region or/and appid?
4. Do you change scenes in application?
5. Can you send full log? High voices numbers mean that either PhotonVoiceRecorder created or microphone switched multiple times. Please find out what exactly happens and why.0