ElevenLabs STT: add secondary_languages support - #6944
Open
rrfunde wants to merge 1 commit into
Open
Conversation
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
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
secondary_languages: NotGivenOr[list[str]]option to the ElevenLabs STT plugin, letting bilingual applications constrain speech prediction to a limited set of languages alongsidelanguage_code.secondary_languagesquery params for Scribe v2 realtime sessions (mirroring howkeytermsare handled).update_options()(with reconnect propagation to live realtime streams), and bothSTTOptions.Fixes #6920
Testing
tests/test_plugin_elevenlabs_stt.py: connect URL includes repeatedsecondary_languagesparams, omitted when NOT_GIVEN, defaults, and option updates.uv run pytest tests/test_plugin_elevenlabs_stt.py— 29 passedruff format/checkandmypyclean