How to do OVRVoiceMod and Photon Voice
Options
miyumiyu
✭
in Photon Voice
I am considering collaboration between OVR VoiceMod and Photon Voice.
(https://developer3.oculus.com/downloads/audio/1.0/Oculus_OVRVoiceMod_for_Unity_5/)
Tell other users the converted voice using OVR VoiceMod
Is there any good idea?
(https://developer3.oculus.com/downloads/audio/1.0/Oculus_OVRVoiceMod_for_Unity_5/)
Tell other users the converted voice using OVR VoiceMod
Is there any good idea?
0
Best Answer
-
Photon Voice uses instance of IAudioStreamFloat to get audio data for compression and transmission. You can make your implementation of this interface which can process mic audio e.g.. The interface is simple. GetData fills provided buffer if there is enough audio data. See MicWrapper.cs or AudioClipWrapper.cs for a sample.
Modification of PhotonVoiceRecorder.cs required to pass your IAudioStreamFloat instance. The instance is passed to PhotonVoiceNetwork.CreateLocalVoice call.5
Answers
-
Photon Voice uses instance of IAudioStreamFloat to get audio data for compression and transmission. You can make your implementation of this interface which can process mic audio e.g.. The interface is simple. GetData fills provided buffer if there is enough audio data. See MicWrapper.cs or AudioClipWrapper.cs for a sample.
Modification of PhotonVoiceRecorder.cs required to pass your IAudioStreamFloat instance. The instance is passed to PhotonVoiceNetwork.CreateLocalVoice call.5