numerous-receptionist-14192
11/05/2025, 9:51 AMtall-airline-16756
11/05/2025, 9:52 AMtall-airline-16756
11/05/2025, 9:53 AMrtc.AudioStream to iterate frames and send them to your WebSocket/STT backend; resample/chunk per your model needs (e.g., 20–50 ms) Processing raw tracks.
◦ Alternative: use Track Egress → WebSocket if you want LiveKit to push pcm_s16le frames directly to your server Track egress.
• Use VAD for endpointing and send explicit “end-of-speech” events:
◦ Run Silero VAD in the agent to detect start/stop of speech and emit an end-of-speech signal to your backend alongside the streaming audio/transcripts Silero VAD plugin.
◦ Set AgentSession turn detection to VAD-only if you want VAD to drive turns Turn detection.
• Implement your custom streaming STT as an STT node/instance:
◦ Create a custom STT that accepts pushed audio frames (resampled as required), and emits interim/final transcripts. Use the STT streaming interface to push_frame and output `SpeechEvent`s STT models, Pipeline nodes.
◦ If you ever switch to non‑streaming STT, pair VAD with a StreamAdapter to buffer until end-of-speech, then send the chunk STT models.
Would you like a minimal code sketch showing AudioStream + Silero VAD + push to your WebSocket, and how to emit interim/final transcripts with an end-of-speech flag?
Sources: Speech-to-text (STT) models | LiveKit Docs | Pipeline nodes and hooks | LiveKit docs | Silero VAD plugin | LiveKit docs | Turn detection and interruptions | LiveKit Docs | Processing raw media tracks | LiveKit docsnumerous-receptionist-14192
11/05/2025, 9:54 AMtall-airline-16756
11/05/2025, 9:57 AMnumerous-receptionist-14192
11/05/2025, 10:50 AM