Interruption of assistant in VAD mode not working
Opened this issue · 4 comments
SuperNiceDev commented
In VAD mode it seems you cannot interrupt the assistant. It makes a short break, but then keeps on going.
Cazforshort commented
I agree, this seems to be a common issue. It also seems to interrupt itself a lot.
SuperNiceDev commented
Thanks for the confirmation.
Cazforshort commented
I was able to get it working pretty well. Heres how
- System constantly processes microphone input at regular intervals (every 0.1 seconds)
- Input is converted to PCM16 format and sent to OpenAI's server
- Server performs Voice Activity Detection (VAD)
User speaks during AI audio →
→ Server detects speech ("input_audio_buffer.speech_started" event) →
→ AudioManager stops current audio playback
→ System cancels active response
→ All states reset (isResponseActive, activeResponseId, etc.)
→ System ready for new interaction
aarizirf commented
are you hosting the client on an external server? Or are you implementing it client side?