WebRTC Mic Streaming Demo
This page opens a WebRTC connection from your browser to the backend, sending microphone audio while streaming. TTS audio chunks are received over the 'agent-text' data channel and played automatically. The backend processes audio and sends TTS responses via the data channel.
Microphone streaming
Click "Start streaming" to send your microphone audio over WebRTC to the backend. TTS audio chunks are received over the data channel and played automatically. As long as the connection stays Connected, audio is flowing and can be processed server-side.
Status: Idle
Implementation details: getUserMedia → RTCPeerConnection → createDataChannel('agent-text') → createOffer → send to /webrtc/offer → apply answer → stream audio. TTS chunks received over data channel are buffered and played.