Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Photon Voice: Debugging

$
0
0
Last week I added PUN and PUNVoice to my Unity project. The initial implementation was very quick and I had voice comms working fine.

Today however the VoIP functionality element has stopped working and I'm struggling to debug the problem.

I have a simple Voice GameObject prefab which is being instantiated successfully. Testing with two clients I can see the local instance and the remote instance have been cloned.

The objects have a Transform, PhotonView, AudioSource, PhotonVoiceSpeaker and PhotonVoiceRecorder components.

The PhotonVicew's have a sensible ViewID, controlled locally is ticked for one and unticked for the 2nd. Oberve option is off and observed component is empty.

The audio source has nothing set (not clip, no output etc).

PhotonVoiceRecorder has no audio clip.

I have a scene script which has a PhotonVoiceSettings script attached, with AutoConnect,AutoDisconnect,AutoTransmit all ticked. Voice Detection is on with default threshold. I've also tried ticking Debug Info.

When I run it up, my microphone switches on on my PC build, as I can see the light come on.

I get a PUNVoice: Setting recorder's microphone to which means it's selecting default device.

The speaker volume on phone and PC are non-zero.

However, I get no audio on Android Phone nor on PC.

I've tried setting an audio clip into the PhotonVoiceRecorder and ticking loop. I get a warning that about audio source and encoder sampling rates not matching but no audio at either end.

I've also confirmed that I have an audio listener attached to my main camera.

Can anyone make any suggestions about how I can debug this? I'd like to know if the recorder is picking up anything from the microphone, whether it is trying to transmit, whether audio is being received by the speaker etc.

Thanks

Viewing all articles
Browse latest Browse all 15755

Trending Articles