Photon Voice not loud enough.

in Photon Voice
Hey there.
I'm using Photon Voice with Oculus Rift and HTC Vive and I've run into a problem with loudness. The voice chat is borderline unhearable .
I've checked the Rift and Vive microphones on both machines to make sure they are running with max sensitivity. I made sure that Photon Voice audiosources are set to 2D to remove any spatial falloff. The volume is set to 1 (max in unity). I tried running calibration after the player prefab is spawned, but this changes nothing. I've reduced the volume of all other audiosources in my game by 0.5, but this is still not enough to make the voicechat clearly legible.
Is there a way I can increase the volume of the Voice Speaker? It would be best if there was a multiplier of base setting, kinda like PlayOneShot works in audio source.
I'm using Photon Voice with Oculus Rift and HTC Vive and I've run into a problem with loudness. The voice chat is borderline unhearable .
I've checked the Rift and Vive microphones on both machines to make sure they are running with max sensitivity. I made sure that Photon Voice audiosources are set to 2D to remove any spatial falloff. The volume is set to 1 (max in unity). I tried running calibration after the player prefab is spawned, but this changes nothing. I've reduced the volume of all other audiosources in my game by 0.5, but this is still not enough to make the voicechat clearly legible.
Is there a way I can increase the volume of the Voice Speaker? It would be best if there was a multiplier of base setting, kinda like PlayOneShot works in audio source.
0
Comments
You can "amplify" data in audio buffer before passing it to Photon Voice.
The simplest way is modifying MicWrapper.GetData method. Multiply each element of buffer after this.mic.GetData(...) call by amplification factor.
Or use this approach http://forum.photonengine.com/discussion/comment/32592/#Comment_32592
We changed Photon Voice "internal" api. So both solutions should be updated with next Photon Voice release. Sorry for that.
PhotonVoiceRecorder.LevelMeter allows measure current audio signal level passed to PhotonVoice.
Would love to have amplification factor as a property I can edit in future Photon Voice version.
Cheers.
I have the exact same issue with HTC Vive. Would you mind sharing your coding for the amplification?
At the start of OnAudioFrame method in PhotonVoiceNetworks.cs I added these lines:
Where AppSettings.VoiceChatVolume is my static float (0-1 range) that players can change to adjust the volume of the voice chat.
In Photon Voice 2.x
OnAudioFrame
has been moved toSpeaker.OnAudioFrame
.Thank you for choosing Photon!
What Photon Voice version do you use?
We recommend updating to latest versions either 1.17 or 2.2.
Does this happen using Photon MicrophoneType or Unity MicrophoneType?
Also what Unity version do you use?
Do you notice the low volume in Unity Editor or in a build?
If it's a build, what is your target platform and what is the device model and OS?
The volume is low both in Editor and in Standalone Windows build. I´m using Windows 10 on MSI GS63VR 7RF.
You should try Photon MicrophoneType first.
Then if it did not help, add this SimpleAmplifier component to the same GameObject as the Recorder to avoid having to change Photon Voice code every time.
Could you try putting the file under "Photon/PhotonVoice/Code/UtilityScripts/SimpleAmplifier.cs"?
What Unity version are you using?
I have tested this on Unity 5.6.0f3.
Now, the question is why is not a feature like this a built-in feature in Photon Voice? I would suggest you consider adding this, at least I had to use a lot of time to find out why the volume level is so low, then ask about it in the forums, then exchanging some messages etc.
Thank you for your feedback.
The SimpleAmplifier will be added to Photon Voice in the future.