does the streaming send chunk to the STT every x m...
# ask-ai
c
does the streaming send chunk to the STT every x ms ?
t
Thanks for reaching out, Antoine. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
On your question about STT streaming cadence: yes—audio is buffered and sent in fixed-size chunks. In our realtime pipeline, audio is resampled to 16 kHz mono and chunked into frames (example configuration uses 50 ms per chunk, i.e., 800 samples at 16 kHz) before sending to the STT service. If you’re tuning latency/accuracy, we can discuss adjusting frame size (e.g., 20–100 ms) for your use case. Sources: AI Agents Framework | livekit/livekit_composite | DeepWiki | Python Agents Core Architecture | livekit/livekit_composite | DeepWiki | Live Conversations with AI using ChatGPT and WebRTC
c
which function manage that ?
t
Regarding which function manages the chunking and send: • The chunking is handled by the
AudioByteStream
helper, configured to produce fixed-size frames (e.g., 50 ms via
samples_per_channel = 16000 // 20
). • Those chunks are then sent as
LiveClientRealtimeInput
messages to the AI/STT service. If you’re working in a specific SDK or file, tell me which one and I can point you to the exact constructor/method names.