Hi, I want to navigate to another page once the final “goodbye” from the AI has arrived. I wait for the output_audio_buffer.stopped
event and add a small delay, but sometimes the AI just says goodbye in two sentences, so my redirect to another page interrupts the voice and creates a bad UX. How can I be sure there is nothing more coming?
2 Likes
Have a variable for the audio volume.
If it falls below a certain threshold for more than 2 seconds, redirect to the other page as the AI is very likely to be done talking.
Cheers!
3 Likes