Realtime API Echo Cancellation Bug on iOS Safari

If you try to use the Realtime API in the Playground in Safari on iOS, there is an ephemeral issue where the assistant will respond to itself.

I believe this means there is a problem with echo cancellation where it can actually hear its own output via the speaker input.

I’m not sure if this is an OpenAI bug or a Safari/iOS bug, but it’s not just in the playground - it also happens if you set up your own client webpage.

It doesn’t happen every single time. It probably happens about 25% of the time for me. When it does, the assistant can talk to itself for 4-6 messages, cutting itself off after a couple of words due to VAD.

It is also most likely to happen at the beginning of a conversation in my experience. Once the conversation is underway, this very rarely happens for me.