Skip to content

ElevenLabs STT: add secondary_languages support - #6944

Open
rrfunde wants to merge 1 commit into
livekit:mainfrom
rrfunde:fix/elevenlabs-stt-secondary-languages
Open

ElevenLabs STT: add secondary_languages support#6944
rrfunde wants to merge 1 commit into
livekit:mainfrom
rrfunde:fix/elevenlabs-stt-secondary-languages

Conversation

@rrfunde

@rrfunde rrfunde commented Aug 22, 2026

Copy link
Copy Markdown

Summary

  • Adds a secondary_languages: NotGivenOr[list[str]] option to the ElevenLabs STT plugin, letting bilingual applications constrain speech prediction to a limited set of languages alongside language_code.
  • Forwarded as repeated form fields for batch requests and repeated secondary_languages query params for Scribe v2 realtime sessions (mirroring how keyterms are handled).
  • Supported in the constructor, update_options() (with reconnect propagation to live realtime streams), and both STTOptions.

Fixes #6920

Testing

  • New unit tests in tests/test_plugin_elevenlabs_stt.py: connect URL includes repeated secondary_languages params, omitted when NOT_GIVEN, defaults, and option updates.
  • uv run pytest tests/test_plugin_elevenlabs_stt.py — 29 passed
  • ruff format/check and mypy clean

Adds a `secondary_languages` option (list of language codes) to the
ElevenLabs STT plugin, forwarded as repeated form fields for batch
requests and repeated query params for Scribe v2 realtime sessions.
This lets bilingual applications constrain speech prediction to a
limited set of languages for better accuracy.

Fixes livekit#6920
@rrfunde
rrfunde requested a review from a team as a code owner August 22, 2026 07:15
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"secondary_languages" parameter in ElevenLabs STT plugin

2 participants