Skip to content

feat(elevenlabs): add secondary_languages for Scribe v2 realtime STT - #2406

Merged
tinalenguyen merged 2 commits into
mainfrom
dandiest-trotters-plummet
Sep 4, 2026
Merged

feat(elevenlabs): add secondary_languages for Scribe v2 realtime STT#2406
tinalenguyen merged 2 commits into
mainfrom
dandiest-trotters-plummet

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Ports livekit/agents#7086.

Adds secondaryLanguages to ElevenLabs Scribe v2 realtime STT, including constructor configuration, runtime option updates, stream reconnects, and repeated secondary_languages WebSocket 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 build
  • pnpm lint
  • pnpm --filter @livekit/agents-plugin-elevenlabs api:check
  • pnpm format:check
  • cue-cli voice-mode runtime assertion against a temporary local ElevenLabs-compatible WebSocket requiring repeated secondary_languages=es&secondary_languages=fr parameters
Source diff coverage
Source file Classification Target coverage
livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/stt.py Adapted Ported to plugins/elevenlabs/src/stt.ts; Python public secondary_languages becomes target-standard camelCase secondaryLanguages, while the wire parameter remains secondary_languages. Constructor gating/warning, resolved options, runtime updates, active-stream propagation, reconnect behavior, and repeated encoded query parameters are preserved. The public API report in plugins/elevenlabs/etc/agents-plugin-elevenlabs.api.md was regenerated.
tests/test_plugin_elevenlabs_stt.py Not applicable The only source test change initializes the newly required Python dataclass field in an existing helper. Target options are optional and structurally typed, so no corresponding required-field fixture exists to update. No additional test was invented beyond the authoritative source diff.

Ported 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.

@rosetta-livekit-bot
rosetta-livekit-bot Bot requested a review from a team as a code owner September 1, 2026 20:26
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292de88

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 39 packages
Name Type
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-anthropic Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-azure Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-fishaudio Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hedra Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-krisp Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-protoface Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugins-test Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugin-xai Patch

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

@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 found 1 potential issue.

Devin Review

Comment thread plugins/elevenlabs/src/stt.ts
Updated the versioning of the '@livekit/agents-plugin-elevenlabs' package from minor to patch.
@tinalenguyen
tinalenguyen merged commit 8d4c475 into main Sep 4, 2026
5 checks passed
@tinalenguyen
tinalenguyen deleted the dandiest-trotters-plummet branch September 4, 2026 21:01
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.

1 participant