case ResponseDeltaType.AudioDone:
Log.Info($"Received json: {responseDelta}");
// Issue: Audio cutoff sometimes is too early, so we need to wait for trailing audio deltas
// see https://community.openai.com/t/realtime-api-audio-is-randomly-cutting-off-at-the-end/980587/44
await Task.Delay(100); // Some delay to receive trailing audio deltas
Hi, I was having some audio cutoffs while demo-ing this, so part of the audio was lost "somewhere"
Found this:
https://community.openai.com/t/realtime-audio-getting-abruptly-terminated-after-getting-audio-transcript-since-17th-jan/1097660/4
https://community.openai.com/t/realtime-api-audio-is-randomly-cutting-off-at-the-end/980587/44
this seems to be a probable solution (see image and link above)
I think this should "fix/mitigate" this:
Thoughts? I'll make a PR for this 🙂
Ref Image: