fix(elevenlabs): use audio_format query param for STT realtime#5574
fix(elevenlabs): use audio_format query param for STT realtime#5574
Conversation
The realtime websocket endpoint expects `audio_format=pcm_<rate>`, not `encoding=pcm_<rate>`. Because the previous param name was unknown, the server fell back to its default of `pcm_16000`, ignoring the configured sample rate and producing wrong VAD timings/word offsets when callers set anything else (e.g. `sample_rate=8000`). Fixes #5573
ameyakhare
left a comment
There was a problem hiding this comment.
We can also remove the sample_rate field in the message payloads since those are no longer used.
Nevermind, the API reference still documents that field even though it's ignored. I'll update/remove it later. |
|
This is an automated Claude Code Routine created by @toubatbrian (currently in experimentation stage). The automation triages merged PRs in Triage result for this PR: skipped (no JS counterpart to patch). This PR fixes a single query-param on the ElevenLabs STT realtime WebSocket ( No JS PR will be opened for this change. If/when an ElevenLabs STT module lands in cc @toubatbrian @livekit/agent-devs Generated by Claude Code |
Fixes #5573