Repository navigation
Description
Summary
Domain: media generation. The README advertises text-to-speech, text-to-music and text-to-video under "Media and computer use", and the most recent releases added more to the same domain: TextToSFX, VideoToSFX, DubVideo, local video models, infer models and infer avatars. None of the 26 directories under examples/ exercises any of them. The only media example is examples/session-artifacts, which calls ImageGeneration.
Each of these tools is off by default and needs its own switch (text_to_speech.enabled, text_to_music.enabled, text_to_sfx.enabled, text_to_video.enabled, video_to_sfx.enabled, video_to_sfx.dub, text_to_video.create_avatar) plus the gateway's Audio or Videos API, so a reader cannot get from the README to a first generated clip without stitching four docs pages together. The tokenless mock already answers these endpoints in the test suite (tests/e2e/media_tools_test.go, and text_to_music_test.go, text_to_sfx_test.go, text_to_video_test.go, video_to_sfx_test.go, dub_video_test.go under tests/integration/), so the examples can run offline with no API key, like examples/session-artifacts does.
Acceptance Criteria
- Add
examples/media-audio/(README,Taskfile.yml,scenarios.yaml) that runsinfer headlessagainst the mock withINFER_TEXT_TO_SPEECH_ENABLED,INFER_TEXT_TO_MUSIC_ENABLEDandINFER_TEXT_TO_SFX_ENABLEDset. One task per tool, exercisingTextToSpeech,TextToMusicandTextToSFXand printing the saved file path from the tool result. - Add
examples/media-video/that setsINFER_TEXT_TO_VIDEO_ENABLED,INFER_VIDEO_TO_SFX_ENABLEDandINFER_VIDEO_TO_SFX_DUBand exercisesTextToVideo,VideoToSFXandDubVideoin sequence: render a clip, score it, dub it. - In
examples/media-video/, cover the avatar path:infer avatars create <name> --from <photo>,infer avatars list, and aTextToVideocall that renders that avatar with an audio clip throughtext_to_video.avatar_model. - Give each README a "With a real model" section that names the gateway switches (
AUDIO_ENABLED,VIDEOS_ENABLED), the default models fromconfig/config.go(local/qwen3-tts,elevenlabs/music_v2_5,elevenlabs/eleven_text_to_sound_v2,elevenlabs/veo-3.1-fast-generate-001,elevenlabs/creatify-aurora,mirelo/sfx-2.0) and the provider key each one needs on the gateway. - Show the local model path in one of the two:
infer models search <query>,infer models download <owner/name>andinfer models list, feeding alocal/model asdocs/text-to-video.mddescribes foravatar_model: local/musetalk. - Add both directories to the table in
docs/examples.md.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 15, 2026
@infer can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Nov 15, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.8· CLI:v0.261.0· Gateway:v0.67.0· View JobTodos
Pull Request
#1864
✅ Infer Result: Success
Done. Issue #1859 is resolved by PR #1864 (ready for review).
What changed
New examples (all run offline against the tokenless mock, no API key):
examples/media-audio/(README, Taskfile.yml, scenarios.yaml) - one headless task per tool:speech(TextToSpeech->greeting.wav),music(TextToMusic->loop.mp3),sfx(TextToSFX->knock.mp3), keeping the"role":"tool"line that prints the saved file pathexamples/media-video/(README, Taskfile.yml, scenarios.yaml, photo.png) - one headless run rendersclip.mp4withTextToVideo, scores it withVideoToSFX, dubs it withDubVideo; the avatar path runsinfer avatars create presenter --from photo.png,infer avatars list, thenTextToSpeechspeaks a line andTextToVideolip-syncs the presenter throughtext_to_video.avatar_modeltask local-modelsrunsinfer models search musetalkandinfer models list, the README documentsinfer models download TMElyralab/MuseTalk musetalkV15/unet.pth musetalkV15/musetalk.jsonfeedingINFER_TEXT_TO_VIDEO_AVATAR_MODEL=local/musetalkasdocs/text-to-video.mddescribesAUDIO_ENABLED/VIDEOS_ENABLEDand the defaults fromconfig/config.go:local/qwen3-tts(no key),elevenlabs/music_v2_5,elevenlabs/eleven_text_to_sound_v2,elevenlabs/veo-3.1-fast-generate-001,elevenlabs/creatify-aurora(ElevenLabs key),mirelo/sfx-2.0(Mirelo key)docs/examples.mdlists both directories in the Runnable Examples tableOne supporting dep bump: tokenless v0.14.0 (
chore(deps)) - the issue assumed the mock answers every media endpoint, butVideoToSFXposts a multipart video form to/v1/audio/sfxthat tokenless v0.13.0 rejected; v0.14.0 (released today) accepts it, which makes the score step runnable offline. Three now-stale comments intests/integration/{text_to_video,video_to_sfx,dub_video}_test.goupdated to match.Verified end to end: built the CLI and ran every flow headless against the mock with a temp HOME - speech, music, sfx, render-score-dub, avatars create/list/lip-sync, models list/search - all green, plus
task precommit:run. Board updated (In progress -> QA) and a follow-up [DOCS] ticket filed (inference-gateway/docs#1227).Skipped: a chat TUI variant of the examples (the issue asked for headless only) and no new e2e tests for the examples themselves - the flows are pinned by the existing integration tests plus my manual offline runs. Risk: the mock's image-edit endpoint 400s the CLI's request, so the avatar example stores the photo only (
--angles "") offline - the README says a real gateway withtools.image_editgenerates the two extra angles.Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.8· CLI:v0.261.0· Gateway:v0.67.0· Exit Code:0· Duration: 17m 56sTokens: 11,424,038 in · 72,160 out · 11,496,198 total (92 requests)
Tool calls: 137 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Nov 16, 2026
🎉 This issue has been resolved in version 0.262.0 🎉
The release is available on:
Your semantic-release bot 📦🚀