Sorry to bring up this post again and if I’m slightly off-topic. Could you tell me what method you used to play the audio coming from the websocket in Unity? I haven’t had issues with the microphone and sending my audio, but I’m struggling to play the audio coming from OpenAI. The sound is fragmented and not correct. Right now, I’m hooking into the pcmReaderCallback
of AudioClip.Create
and using a ConcurrentQueue
to store the data coming from the socket…