Passing custom float buffer through Photon voice
I am applying a voice filter to data I recieve from the microphone on the Unity side in realtime. Once all is completed I have a new float that I turn into an audio clip and play that back and I hear what I said with the filtered applied with some latency. I am now trying to get that float through Photon voice so others will hear it as well. Is there a best approach to this? I know you can change the Recorder to either use an AudioClip or InputFactory. Audio clip doesnt seem to be the way to go since I need to restart the mic every time I change the clip according to logs and would be problematic in realtime .
I tried InputFactory but it doesnt seem to be working. What I tried with input factory is copying AudioClipWrapper and applying the same logic to the newly created audio clip and I tried just setting the buffer in IAudioReader.Read(float buffer) to the buffer I used to create the audio clip. Both approached end up with hearing nothing on the Debug echo side.
Perhaps I am not setting the data correctly during the Read() part. Any ideas on how to approach this problem?