Skip to content

[DOCS] Document the TextToSpeech agent tool (text-to-speech and voice cloning) #592

Closed

Description

Summary

The CLI added an opt-in text-to-speech feature (inference-gateway/cli PR 1118, resolving issue inference-gateway/cli#1115): a TextToSpeech agent tool backed by a local llama.cpp llama-tts binary running Qwen3-TTS GGUF models, with stock-voice synthesis and zero-shot voice cloning from a reference WAV.

The CLI's own documentation is included in that PR:

  • docs/text-to-speech.md (new page: prerequisites, config, models, cloning guidance, troubleshooting, mirroring docs/speech-to-text.md)
  • docs/tools-reference.md (new TextToSpeech entry under Media Tools)

This ticket tracks surfacing the feature in the org docs site so users can discover it:

  • New page or section covering text-to-speech and voice cloning setup (config keys under text_to_speech, env vars INFER_TEXT_TO_SPEECH_*, engine prerequisites: llama-tts binary and ffmpeg)
  • Tools reference page: add TextToSpeech alongside ImageGeneration / ImageEdit / ImageVariation
  • Any "opt-in tools" or feature-flag listing that enumerates config-gated tools

Acceptance Criteria

  • Docs site mentions the TextToSpeech tool and its opt-in gating (absent from the LLM tools payload until enabled)
  • Config reference covers the text_to_speech section and its INFER_TEXT_TO_SPEECH_* env vars
  • Troubleshooting section for missing llama-tts / ffmpeg / model download errors is reachable from the docs index

Reference: inference-gateway/cli#1118

Activity

  1. added
    documentation
    on Aug 28, 2026
  2. edenreich commented on Aug 28, 2026

    @edenreich
    Contributor

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

  3. moved this to In progress in 2026on Aug 28, 2026
  4. inference-gateway-maintainer commented on Aug 28, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 3m 5s —— View job • docs/issue-592-20260828-1629 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-592-20260828-1629?quick_pull=1&title=Issue%20%23592%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23592%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented the TextToSpeech tool

    PR: #593

    What changed

    • New page cli-text-to-speech.md - prerequisites (llama-tts build, ffmpeg), enabling snippet, full text_to_speech.* config table with the matching INFER_TEXT_TO_SPEECH_* env vars, model presets (base/q8/bf16), tool parameters (text, voice_sample, output_path), voice-cloning guidance, and a troubleshooting table (missing llama-tts, missing ffmpeg, model-download errors, slow first call, bad clones, timeouts).
    • cli.md - new Audio row in the tool-categories table and a TextToSpeech section beside the Image tools, both stating the opt-in gating (tool definition absent from the LLM payload while text_to_speech.enabled is false).
    • .vitepress/config.ts - "Text-to-Speech" in both sidebars, next to Speech-to-Text; plus a cross-link added to the speech-to-text page's Related list.

    Values were taken from the PR branch's TextToSpeechConfig struct rather than paraphrased, so defaults (timeout: 300, ~/.infer/tts, ~/.infer/models/tts) match the implementation.

    Not done: nothing else in the repo enumerates config-gated tools, so there was no separate "opt-in tools" list to update. Since cli#1118 is still open, the docs describe unreleased behavior - worth landing after it merges. configuration.md is generator-owned (gateway schema), so CLI-only keys stay on the CLI page, matching how speech_to_text is documented.

  5. moved this from In progress to QA in 2026on Aug 28, 2026
  6. moved this from QA to Done in 2026on Aug 28, 2026
  7. inference-gateway-releaser commented on Aug 28, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.13 🎉

    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

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions