Skip to content

docs(examples): add runnable media examples for speech, music, sfx and video - #1864

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-1859
Nov 15, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-1859

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #1859

Summary

Adds examples/media-audio and examples/media-video, the first runnable examples for the gateway's media tools. The audio one keeps one headless task per tool (TextToSpeech, TextToMusic, TextToSFX) and the video one walks TextToVideo, VideoToSFX scoring and DubVideo dubbing in a single headless run, then covers the avatar library and the infer models local-model path. Both run offline against the tokenless mock with no API key, and each README carries a "With a real model" section naming the gateway switches, the default models from config/config.go and the provider key each needs. Bumping tokenless to v0.14.0 also teaches the mock the multipart video form on POST /v1/audio/sfx, which VideoToSFX needs.

Changes

  • examples/media-audio/ (README, Taskfile.yml, scenarios.yaml): one task per Audio API tool against the mock, keeping the "role":"tool" JSON line that prints the saved file path
  • examples/media-video/ (README, Taskfile.yml, scenarios.yaml, photo.png): render a clip, score it, dub it in one run, then the avatar path - infer avatars create presenter --from photo.png (stored photo only via --angles "", the mock does not serve the image edit request), infer avatars list and a lip-synced TextToVideo render through text_to_video.avatar_model - plus the local-model path with infer models search musetalk, infer models list and the documented infer models download feeding INFER_TEXT_TO_VIDEO_AVATAR_MODEL=local/musetalk
  • "With a real model" sections in both READMEs naming AUDIO_ENABLED and VIDEOS_ENABLED plus the defaults: local/qwen3-tts (no key, gateway's built-in engine), elevenlabs/music_v2_5 and elevenlabs/eleven_text_to_sound_v2 and elevenlabs/veo-3.1-fast-generate-001 and elevenlabs/creatify-aurora (ElevenLabs API key), mirelo/sfx-2.0 (Mirelo API key)
  • docs/examples.md: both directories added to the Runnable Examples table
  • go.mod/go.sum: tokenless v0.14.0, whose mock accepts the multipart video form on /v1/audio/sfx so the score step runs offline
  • tests/integration/{text_to_video,video_to_sfx,dub_video}_test.go: stale comments updated, the pinned tokenless serves the video routes since v0.14.0
  • Verified offline: every flow ran headless against the mock with a temp HOME - speech, music, sfx, render-score-dub, avatars create/list/lip-sync and models list/search - and task precommit:run is green
  • Filed [DOCS] Add the new CLI media examples to the docs index docs#1227 to mirror the two examples in the docs index and link them from the media pages

@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 15, 2026
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review November 15, 2026 16:40
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner November 15, 2026 16:40
@edenreich
edenreich merged commit 23e53f3 into main Nov 15, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1859 branch November 15, 2026 16:59
@edenreich edenreich moved this from Todo to Done in 2026 Nov 15, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.262.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 16, 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.

[FEATURE] docs: add runnable examples for the media tools (speech, music, sound effects, video)

1 participant