Currently, I am waiting for the response.audio.delta server event to come in and I combine them all until response.audio.done comes in then I play the audio I saved… The problem with this is when I get a long audio response, it takes a while for it to finish. What is the best way to play the deltas as they come in but still have a sound response?
On the front end, you are supposed to handle the stream of deltas and play each incoming delta immediately. You should not combine them all. That defeats the purpose.
Not sure what you are using on the front end, but there should be an audio player that accepts a stream.
1 Like