Repository navigation
feat(tts): route all speech through the gateway - #1818
Merged
Merged
Conversation
Contributor
|
🎉 This PR is included in version 0.259.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
The CLI had two ways to speak: the gateway's Audio API, and a
qwen3-ttsengine of its own that ranllama-ttsitself. The gateway's built-inlocal/qwen3-ttsis the same model from the same caches, so the CLI's copy only duplicated it. It is removed:TextToSpeechalways callsPOST /v1/audio/speech.provider/modelid, and the defaultlocal/qwen3-ttsis now spelled out in the default config.text_to_speech.engineis deprecated. A config that still names a removed engine keeps loading: the engine is ignored with a warning in the log, and so is itsmodel, which was a preset of that engine (q8,bf16) and not a gateway model.binary_path,models_dir,timeoutandffmpeg_pathare gone from the section. Leftover keys are ignored.AUDIO_ENABLEDwhenevertext_to_speech.enabledis set.Lost with the local engine: the
q8andbf16presets, and the ffmpeg step that trimmed a voice sample to 30 seconds - the gateway takes the sample as sent.Not checked here: a real synthesis through this build. The tool's path to the gateway is unchanged and covered by the existing speech service tests.
Changes
internal/audio-synthesizer.goandttsmodel.godeleted.WAVDurationSecondsmoves towav.gowith its test.config/config.go- the section loses the local-only fields,NamesRemovedEngine, the explicit default model, the simplerNeedsGatewayAudio.cmd/runtime/state.go- the deprecation warning at startup.internal/tools- the tool registers on the speech service alone.docs/text-to-speech.mdrewritten, plus the tools and configuration references and three READMEs.A
[DOCS]issue forinference-gateway/docsis drafted, not filed.