Skip to content

feat(tts): route all speech through the gateway - #1818

Merged
edenreich merged 1 commit into
mainfrom
feat/tts-through-gateway
Nov 12, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/tts-through-gateway

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The CLI had two ways to speak: the gateway's Audio API, and a qwen3-tts engine of its own that ran llama-tts itself. The gateway's built-in local/qwen3-tts is the same model from the same caches, so the CLI's copy only duplicated it. It is removed: TextToSpeech always calls POST /v1/audio/speech.

  • The model is always a provider/model id, and the default local/qwen3-tts is now spelled out in the default config.
  • text_to_speech.engine is deprecated. A config that still names a removed engine keeps loading: the engine is ignored with a warning in the log, and so is its model, which was a preset of that engine (q8, bf16) and not a gateway model.
  • binary_path, models_dir, timeout and ffmpeg_path are gone from the section. Leftover keys are ignored.
  • The gateway the CLI starts gets AUDIO_ENABLED whenever text_to_speech.enabled is set.

Lost with the local engine: the q8 and bf16 presets, 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.go and ttsmodel.go deleted. WAVDurationSeconds moves to wav.go with its test.
  • config/config.go - the section loses the local-only fields, NamesRemovedEngine, the explicit default model, the simpler NeedsGatewayAudio.
  • cmd/runtime/state.go - the deprecation warning at startup.
  • internal/tools - the tool registers on the speech service alone.
  • Tests for the model rule, the removed engine and the audio restart.
  • docs/text-to-speech.md rewritten, plus the tools and configuration references and three READMEs.

A [DOCS] issue for inference-gateway/docs is drafted, not filed.

@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 12, 2026
@edenreich
edenreich marked this pull request as ready for review November 12, 2026 19:36
@edenreich
edenreich requested a review from a team as a code owner November 12, 2026 19:36
@edenreich
edenreich merged commit 0e2e1ef into main Nov 12, 2026
13 checks passed
@edenreich
edenreich deleted the feat/tts-through-gateway branch November 12, 2026 20:06
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.259.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 12, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant