feat(elevenlabs): add secondary_languages for Scribe v2 realtime STT - #2406
Merged
Conversation
🦋 Changeset detectedLatest commit: 292de88 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Updated the versioning of the '@livekit/agents-plugin-elevenlabs' package from minor to patch.
tinalenguyen
approved these changes
Sep 4, 2026
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.
Ports livekit/agents#7086.
Adds
secondaryLanguagesto ElevenLabs Scribe v2 realtime STT, including constructor configuration, runtime option updates, stream reconnects, and repeatedsecondary_languagesWebSocket query parameters. Batch models warn and ignore the option, and batch requests remain unchanged.Validation
pnpm test plugins/elevenlabs/src(28 passed, 2 credential-gated skipped)pnpm buildpnpm lintpnpm --filter @livekit/agents-plugin-elevenlabs api:checkpnpm format:checkcue-clivoice-mode runtime assertion against a temporary local ElevenLabs-compatible WebSocket requiring repeatedsecondary_languages=es&secondary_languages=frparametersSource diff coverage
livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/stt.pyplugins/elevenlabs/src/stt.ts; Python publicsecondary_languagesbecomes target-standard camelCasesecondaryLanguages, while the wire parameter remainssecondary_languages. Constructor gating/warning, resolved options, runtime updates, active-stream propagation, reconnect behavior, and repeated encoded query parameters are preserved. The public API report inplugins/elevenlabs/etc/agents-plugin-elevenlabs.api.mdwas regenerated.tests/test_plugin_elevenlabs_stt.pyPorted from livekit/agents#7086
Original PR description
Lets bilingual apps constrain speech prediction to a limited set of languages alongside language_code, sent as repeated secondary_languages query params on the realtime connect URL (mirroring keyterms).
The batch speech-to-text endpoint does not accept the param, so it is gated on the realtime path: a non-realtime model drops it with a warning at construction and in update_options, and it is never added to the batch request form.
Based on #6944.