Repository navigation
feat(google): add gemini-3.8 TTS models and expressive mode support - #2576
Merged
Merged
Conversation
Port of livekit/agents#7425. - Gemini TTS: add gemini-3.8-flash-tts and gemini-3.8-flash-lite-tts. On these models the expression marker rides per-part speech_metadata.style (one request part per style change), instructions move into the style instead of a spoken preamble, headerless PCM is requested explicitly, and a two-speaker config (speakers + speaker) is supported. - provider_format: add the gemini expr dialect (instructions, sound vocabulary and aliases, steering table). Sounds, breaks and emphasis lower to inline tags; the expression marker is left for the plugin. - tts.StreamAdapter: normalize and convert markup when expressive is on, snapshot the expressive flag per stream, pass the dialect and _setExpressive through to the wrapped TTS. - Expressive gate: allow any TTS with a dialect that the framework lowers for (inference.TTS, or non-streaming / StreamAdapter), not only the gateway. - Transcript stripping: a marker heading a line takes the space after it, and a marker ending the text takes the space before it.
🦋 Changeset detectedLatest commit: 0b77057 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 |
chenghao-mou
approved these changes
Sep 23, 2026
chenghao-mou
left a comment
Member
There was a problem hiding this comment.
similar python issue and one nit. It works well in my testing.
| } | ||
|
|
||
| function assertKnownSpeaker(speaker: string, speakers: Record<string, string>): void { | ||
| if (!(speaker in speakers)) { |
Member
There was a problem hiding this comment.
Codex:
js gotcha:
const speakers = { Sienna: 'Kore', Comanchero: 'Puck' };
'Sienna' in speakers; // true — configured speaker
'Nobody' in speakers; // false
'toString' in speakers; // true — inherited method
vznh
added a commit
to vznh/agents-js
that referenced
this pull request
Sep 24, 2026
Resolve StreamAdapterWrapper against livekit#2576, which added an `expressive` snapshot beside this branch's `error` getter; both are kept. The API report is regenerated from the merged tree and differs from main only by this branch's three internal `error` getters. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
5 of 8 tasks
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.
Port of livekit/agents#7425.
Description
Changes Made
Pre-Review Checklist
Testing
restaurant_agent.tsandrealtime_agent.tswork properly (for major changes)Additional Notes
Note to reviewers: Please ensure the pre-review checklist is completed before starting your review.