Repository navigation
docs: add audio example for create_speech, create_sfx and create_music - #176
Merged
Merged
Conversation
Co-authored-by: Eden Reich <[email protected]>
5 tasks
This was referenced Nov 17, 2026
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Nov 17, 2026
## [0.26.0](v0.25.0...v0.26.0) (2026-11-17) ### ✨ Features * sync schemas v1.14.1 and accept standard OpenAI stream chunks ([#182](#182)) ([d4e2634](d4e2634)), closes [#181](#181) ### 🐛 Bug Fixes * allow null stop_reason in Messages stream message_start ([#179](#179)) ([cb9440e](cb9440e)) * read stream chunks as JSON in chat examples ([#178](#178)) ([fca4630](fca4630)), closes [#172](#172) ### 👷 CI * align Dependabot schedule and grouping ([#169](#169)) ([3f5ad19](3f5ad19)) * set up orchestrators from repos.yaml ([#170](#170)) ([bffe983](bffe983)) ### 📚 Documentation * add audio example for speech, sfx and music ([#176](#176)) ([c1f04d0](c1f04d0)) * add Responses API example and README section ([#180](#180)) ([ec0e02a](ec0e02a)) * sync examples and README with gateway config ([#177](#177)) ([ee0999d](ee0999d)) ### 🔧 Miscellaneous * **deps:** bump flox dependencies to latest ([#167](#167)) ([55f32c5](55f32c5)) * **deps:** bump flox dependencies to latest ([#168](#168)) ([de020e9](de020e9))
Contributor
|
🎉 This PR is included in version 0.26.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a runnable audio example and README docs for
create_speech,create_sfxandcreate_music.examples/audio/main.py- generates speech, a text-to-sfx clip and an instrumental music clip, writing the returnedbytestospeech.mp3,sfx.mp3andmusic.mp3. WhenVIDEO_URLis set it also scores the video withcreate_sfx(model=..., video=..., output="sfx"). Models come fromSPEECH_MODEL,SFX_MODEL,MUSIC_MODELandVIDEO_SFX_MODELenv vars.examples/audio/README.md- prerequisites (AUDIO_ENABLED=true, a provider with audio support such asopenai,elevenlabsormirelo), the 400 error from providers without support, whichcreate_sfxarguments apply to text vs video, andresponse_format.README.md- new "Audio" section with acreate_speechsnippet, plus the example in the "Examples" list. Also listed inexamples/README.md.Testing
python -m py_compile examples/audio/main.pypasses.task lintcould not run:black/isort/mypyare not on PATH in this sandbox and installing dev dependencies needed approval. The new file follows the same structure and import order asexamples/images/main.py.No generated code or API changes.
no docs ticket: internal-only refactor - this PR only adds SDK examples and README text, no public behavior changes.
Closes #174
Generated with Claude Code