Repository navigation
fix(tts): resolve Gemini TTS models from catalog - #2055
Closed
nguyenha935 wants to merge 1 commit into
Closed
nguyenha935 wants to merge 1 commit into
nguyenha935 wants to merge 1 commit into
Conversation
5 tasks done
Owner
|
Thanks @nguyenha935! Merged into master. 🙏 |
diegosouzapw
pushed a commit
to cheaper-inference/OmniRoute
that referenced
this pull request
Jun 26, 2026
Add gemini-3.1-flash-tts-preview as the first (default) entry in the Vertex TTS catalog in audioRegistry.ts, and register it with kind:"tts" in the Gemini provider registry. This makes the new model the default when the caller supplies a bare voice name, and keeps model resolution catalog-driven so future TTS additions are automatically available. Co-authored-by: nguyenha935 <208228297+nguyenha935@users.noreply.github.com> Inspired-by: decolua/9router#2055
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
models/undefined:generateContentwhen the handler has nottsConfig.models.gemini-3.1-flash-tts-previewto Gemini TTS catalogs and cover model/voice parsing with unit tests.Tests
tests/node_modules/.bin/vitest run tests/unit/gemini-tts.test.js --config tests/vitest.config.jstests/node_modules/.bin/vitest run tests/unit/minimax-tts.test.js --config tests/vitest.config.jstests/node_modules/.bin/vitest run tests/unit/provider-display-split.test.js --config tests/vitest.config.js