cancel
Showing results for 
Search instead for 
Did you mean: 

How to Voip in Unity?

rhillCampfire
Protege
I'm trying to set up Voip in Unity but can't hear anything.

I've set up a Voip.SetVoipStateChangeCallback() which confirms that msg.GetNetworkingPeer().ID is correct and msg.GetNetworkingPeer().State is Connected.

From there I pass .GetNetworkingPeer().ID to this function:
void SetupAudioSource(UInt64 otherPlayerID)
{
 if (voipAudio == null) { 
  voipAudio = gameObject.AddComponent<VoipAudioSourceHiLevel>();
 }
 voipAudio.senderID =otherPlayerID;
}

The audio source is only 0.2 metres from the player, so it's not too far to hear.


Any ideas as to what I might be overlooking?

( The other fun fact is the audio levels on all non-Voip audio get a lot quieter once the connection starts. Is there some sort of ducking built into this? )

20 REPLIES 20

MassiveState
Protege
Check if microphone permissions are on