Skip to content

[DOCS] Local speech engine: local/qwen3-tts served by the gateway via llama-tts #626

Closed

Description

Summary

The gateway (PR inference-gateway/inference-gateway#575, resolving inference-gateway/inference-gateway#574) adds a built-in local speech engine for POST /v1/audio/speech: the reserved model id local/qwen3-tts is served by shelling out to llama.cpp's one-shot llama-tts binary instead of proxying to a provider. This is user-facing behavior change.

Affected pages / new content:

  • /features (or audio feature page): document local/qwen3-tts, zero-shot voice cloning via reference_audio, the shared cache (~/.infer/models/tts, ~/.infer/bin), and that the binary plus GGUF weights auto-download in the background on first use (sha256 verified from inference-gateway/binaries release assets)
  • Configurations: new env vars AUDIO_ENABLED (renamed from ENABLE_AUDIO, no alias), AUDIO_LOCAL_AUTO_DOWNLOAD, AUDIO_LOCAL_MAX_CONCURRENCY, AUDIO_LOCAL_TIMEOUT
  • Error semantics: 503 + Retry-After with download progress while assets are being prepared; actionable error when AUDIO_LOCAL_AUTO_DOWNLOAD=false and assets missing
  • Known ceiling: per-request model/graph init (roughly 1s warm), no cross-request batching; the local path is a stopgap until llama.cpp ships server-side TTS ((Planning) Support audio output in mtmd ggml-org/llama.cpp#21956)
  • README of the gateway mentions cloning via llamacpp/qwen3-tts; keep consistent with the new local/qwen3-tts model id

Note: Configurations.md in the gateway repo is auto generated from the schema; the docs hub page should point at the env vars rather than duplicate them.

Activity

  1. added
    documentation
    on Aug 31, 2026
  2. added theissue type on Sep 1, 2026
  3. moved this to Todo in 2026on Sep 1, 2026
  4. edenreich commented on Sep 1, 2026

    @edenreich
    Contributor

    @claude Can you document this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Sep 1, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 52s —— View job • docs/issue-626-20260901-1324 • Create PR ➔


    Documented the local speech engine - PR #627

    No new page - the Audio API section in api-reference.md was already the natural home, so everything landed there instead of a page that would duplicate it.

    api-reference.md - new #### Local speech engine (local/qwen3-tts) subsection:

    • reserved model id served by the gateway itself (no provider, no key, no outbound call), with a curl example
    • shared caches ~/.infer/models/tts + ~/.infer/bin, PATH binary wins, otherwise sha256-verified download from inference-gateway/binaries, atomic rename so a concurrent CLI cannot corrupt the cache
    • 503 + Retry-After with download progress while assets are being prepared; background retry, boot never blocked
    • AUDIO_LOCAL_AUTO_DOWNLOAD=false consumer-only mode and its actionable error
    • tuning table for the three AUDIO_LOCAL_* vars
    • known ceiling: per-request model/graph init (~1s warm), no batching, stopgap until ggml-org/llama.cpp#21956
    • voice-cloning example switched from llamacpp/qwen3-tts to local/qwen3-tts

    configuration.md - ENABLE_AUDIO renamed to AUDIO_ENABLED (no alias) and the three AUDIO_LOCAL_* vars added to General Settings; prose links to the API reference rather than restating the semantics, per the issue note.

    sdks.md / cli-text-to-speech.md - env var rename, plus a pointer from the CLI TTS page to the gateway-side engine and the shared cache.

    Not done: gateway PR #575 is still open, so this documents unreleased behavior - worth holding the merge until it ships.

  6. moved this from Todo to In progress in 2026on Sep 1, 2026
  7. moved this from In progress to QA in 2026on Sep 1, 2026
  8. moved this from QA to Done in 2026on Sep 1, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions