Skip to content

[DOCS] Speech through the gateway, voice samples on a workspace and the operator's spec.audio #1200

Closed

Description

@edenreich

Summary

Text to speech changed across four repositories. The docs site still describes a CLI with a speech engine of its own and voice samples in ~/.infer/models/tts/samples.

What changed:

Pages to change:

  • cli-text-to-speech.md - rewrite to the CLI's own docs/text-to-speech.md. Drop the two-engine intro, the llama-tts/ffmpeg prerequisites, the models table and the local-engine troubleshooting rows. The configuration table loses engine, binary_path, models_dir, timeout and ffmpeg_path and gains a "removed local engine" note for old configs. voice_sample resolves against the working directory, then ~/.infer/voice/samples/. Add a "Sessions on a workspace" section for forward_voice_samples.
  • cli.md - the workspaces section: add forward_voice_samples to the keys a workspace on compute keeps and to the table of what reaches the pod, and say when the workspace's gateway serves its Audio API, with the operator version it needs.
  • operator.md - add audio.enabled to the Gateway field table, the AUDIO column to the kubectl get gateways output, and an "Audio (spec.audio)" section next to Guardrails. Say that the local engine needs memory - see the sizing below - and that the 1.4 GB of models live in the pod's ephemeral storage and download again after the pod restarts.
  • desktop.md - "What a workspace computer can do" becomes four switches with a Text to speech row, and "these three switches" becomes four. "Voice samples" and the output-dir caveat name ~/.infer/voice/samples/ and give the one-off mv. "Enabling text to speech" stops naming engine as a key that passes through.
  • api-reference.md - in "Local speech engine (local/qwen3-tts)", add that the response stays open up to AUDIO_LOCAL_TIMEOUT, and a sizing note.

Sizing, measured on an arm64 CPU node with gateway latest and one cloned sentence: about 10 seconds a sentence with no CPU limit and about 20 seconds at 2 CPUs. About 6 GiB of memory for one synthesis, 11.5 GiB for two at once (AUDIO_LOCAL_MAX_CONCURRENCY defaults to 2). A 4Gi limit was OOM-killed.

Acceptance Criteria

  • cli-text-to-speech.md has no local engine section, names the model as provider/model and resolves samples in ~/.infer/voice/samples/
  • cli.md documents forward_voice_samples and when a workspace's gateway serves its Audio API
  • operator.md lists spec.audio, shows the AUDIO column and states the memory the local engine needs
  • desktop.md describes the Text to speech workspace switch and the new samples directory with the one-off move
  • api-reference.md says a local synthesis outlives SERVER_WRITE_TIMEOUT and how much memory it needs

Activity

  1. added
    documentation
    on Nov 12, 2026
  2. added theissue type on Nov 12, 2026
  3. moved this to Todo in 2026on Nov 12, 2026
  4. edenreich commented on Nov 12, 2026

    @edenreich
    ContributorAuthor

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

  5. inference-gateway-maintainer commented on Nov 12, 2026

    @inference-gateway-maintainer
    Contributor

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


    Documented

    • Gather context (read the 5 pages plus the CLI's own docs/text-to-speech.md and docs/daemon.md, and the operator's gateway_types.go for the print columns)
    • cli-text-to-speech.md rewritten to the gateway-only path
    • cli.md workspaces section + the now-stale TextToSpeech tool entry
    • operator.md spec.audio, AUDIO column, sizing
    • desktop.md four switches + ~/.infer/voice/samples/
    • api-reference.md timeout and sizing notes
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit and open PR

    PR: #1201

    What changed per page:

    • cli-text-to-speech.md - rewritten. Dropped the two-engine intro, the llama-tts/ffmpeg prerequisites, the GGUF models table and the local-engine troubleshooting rows. The configuration table loses engine, binary_path, models_dir, timeout and ffmpeg_path, gains require_approval, and names model as a provider/model id defaulting to local/qwen3-tts. A "removed local engine" section says what to strip from an old config. voice_sample resolves against the working directory then ~/.infer/voice/samples/, with the one-off mv. New "Sessions on a workspace" section for forward_voice_samples.
    • cli.md - forward_voice_samples added to the keys a workspace on compute keeps and to what reaches the pod (64 MiB cap, top-level .wav only, replaced by name, nothing carried back), plus when the shared gateway serves its Audio API, the 16Gi limit and the operator v0.37.0 requirement.
    • operator.md - audio.enabled in the Gateway field table, an "Audio (spec.audio)" section beside Guardrails with the measured sizing (6 GiB for one synthesis, 11.5 GiB for two, 4Gi OOM-killed, 16Gi recommended, ~10s a sentence uncapped and ~20s at 2 CPUs) and the ephemeral-storage note for the 1.4 GB of models, and the AUDIO column in the kubectl get gateways output.
    • desktop.md - three switches became four with a Text to speech row writing the three INFER_TEXT_TO_SPEECH_* variables and forward_voice_samples: true. Voice samples and the output-dir caveat name ~/.infer/voice/samples/ with the one-off move. The pass-through note no longer names engine.
    • api-reference.md - a local synthesis keeps its response open up to AUDIO_LOCAL_TIMEOUT past SERVER_WRITE_TIMEOUT, plus the memory and speed sizing.

    Two things beyond the issue's list, because they would have been left stale: the TextToSpeech tool entry in cli.md's tool reference still described shelling out to llama-tts offline and the old samples path, so both were corrected.

    I did not run bun run preview to eyeball the pages in a browser, and I did not verify the measured sizing numbers or the desktop switch's exact written values - both are taken from the issue and the upstream CLI docs as given. The one remaining risk is wording drift against the four upstream PRs if any of them changed after the issue was written.
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 12, 2026
  7. moved this from In progress to QA in 2026on Nov 12, 2026
  8. moved this from QA to Done in 2026on Nov 12, 2026
  9. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions