Skip to content

[DOCS] document the TextToSFX tool (text-to-sound-effect generation) #723

Closed

Description

Context

The CLI just added a TextToSFX tool for text-to-sound-effect generation (inference-gateway/cli#1227, PR: inference-gateway/cli#1268). It turns a text prompt into a short sound effect or ambience clip (a whoosh, a click, a riser, room tone) through the gateway's SFX API (POST /v1/audio/sfx, gateway v0.54.0) with the model elevenlabs/eleven_text_to_sound_v2, saved as a WAV file. The tool is gated by text_to_sfx.enabled (default false) and mirrors the existing TextToSpeech and TextToMusic tools.

Affected pages

The following pages in the cli repo are already updated by the PR and can serve as the source material:

  • docs/tools-reference.md: new "TextToSFX Tool" section (parameters, config block)
  • docs/configuration-reference.md: INFER_TEXT_TO_SFX_* env vars and the text_to_sfx YAML block
  • docs/directory-structure.md: ~/.infer/tmp/sfx/ entry

Suggested follow-up in the docs repo (mirroring how text-to-speech and text-to-music are covered):

  • A text-to-sfx guide page covering enabling, gateway requirements (AUDIO_ENABLED=true plus an ElevenLabs key on the gateway), the prompt/seconds/loop/output_path knobs, and troubleshooting
  • Any tool listing / navigation that enumerates agent tools gains TextToSFX
  • Cross-link from the text-to-music and text-to-speech pages to the new page (shared output_path rules, non-speech vs speech vs music)

References

Activity

  1. added
    documentation
    on Sep 22, 2026
  2. moved this to Todo in 2026on Sep 22, 2026
  3. edenreich commented on Sep 22, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /ponytail:ponytail

  4. added theissue type on Sep 22, 2026
  5. inference-gateway-maintainer commented on Sep 22, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Documenting the TextToSFX tool

    • Gather context (repo layout, how TextToSpeech/TextToMusic are covered)
    • Pull source material from cli#1268
    • Add the TextToSFX section to cli.md (tool listing + tmp-tree table)
    • Cross-links from api-reference.md and cli-text-to-speech.md
    • Validate: lint:md, format:check, build - all pass
    • Commit + open PR -> docs: document the TextToSFX cli tool #724

    PR: #724

    What changed

    • cli.md: new TextToSFX Tool section - parameters (prompt, seconds 0.5-30, loop, output_path), the text_to_sfx YAML block, the INFER_TEXT_TO_SFX_* env var table, gateway requirements (AUDIO_ENABLED=true + an ElevenLabs key, gateway v0.54.0) and the failure behavior. Plus TextToSFX in the Audio row of the tool category table and ~/.infer/tmp/sfx in the userspace tmp tree table.
    • api-reference.md: the Sound Effects section links to the CLI tool.
    • cli-text-to-speech.md: Related now points at the non-speech siblings and the shared output_path rule.

    Not done, deliberately: no standalone cli-text-to-sfx.md page. TextToMusic lives as a section in cli.md, and SFX has no local-engine story the way text-to-speech does - a page would be one section of prose duplicated. Add one when SFX grows engine/model choices.

    Flagged for review: the CLI requests response_format: wav, but the api-reference field table says ElevenLabs serves only mp3, opus and pcm. Docs follow the CLI PR (WAV); if the gateway does not transcode, one of the two pages is wrong. Noted in the PR body.
    | Branch

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.15 🎉

    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