Skip to content

[DOCS] Use Python SDK examples for /audio/sfx and /audio/music #738

Closed

Description

Summary

The Python SDK now wraps both ElevenLabs-backed audio endpoints, so the raw-HTTP fallback in the docs can be replaced with SDK examples:

  • create_sfx(...) -> POST /v1/audio/sfx
  • create_music(...) -> POST /v1/audio/music

Both return raw audio bytes, same shape as the existing create_speech.

Implemented in inference-gateway/python-sdk#120 (follow-up to the closed docs#710; siblings: #737 TypeScript, #736 Rust).

Acceptance Criteria

  • api-reference.md: swap the plain HTTP snippets for /audio/sfx and /audio/music with SDK calls
  • sdks.md: document create_sfx and create_music next to create_speech
sfx = client.create_sfx(
    "elevenlabs/eleven_text_to_sound_v2",
    "distant thunder rolling over a valley",
    provider="elevenlabs",
    duration_seconds=5.0,
)

music = client.create_music(
    "elevenlabs/music_v2_5",
    "upbeat synthwave with driving bass",
    provider="elevenlabs",
    instrumental=True,
)

Activity

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

    @edenreich
    Contributor

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

  5. inference-gateway-maintainer commented on Sep 23, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Documented the Python SFX + music helpers

    • Read the audio sections in api-reference.md / sdks.md
    • api-reference.md: create_sfx / create_music examples replace the raw-HTTP fallback note
    • sdks.md: new Python "Sound effects and music" section next to create_speech
    • Fixed the SDK anchor links the new section shifts (verified against built HTML ids)
    • bun run lint:md, bun run format:check, bun run build all pass
    • Committed and opened PR docs: use python sdk for sfx and music #741

    Followed the SDK-section shape already used for the TypeScript and Rust siblings: signature line, one example, argument table, provenance link. Go stays on the raw-HTTP note (still go-sdk#184).

    Adding the Python section renumbers the duplicate #sound-effects-and-music anchors, so I updated the TypeScript (-1) and Rust (-2) links in api-reference.md, and while there fixed the already-stale #speech-synthesis* numbering on line 958 - it pointed the TypeScript link at the Python section. Confirmed the ids in .vitepress/dist.

    Issue moved to QA on the Roadmap 2026 board.

    PR: #741
    | Branch

  6. moved this from Todo to In progress in 2026on Sep 23, 2026
  7. moved this from In progress to QA in 2026on Sep 23, 2026
  8. moved this from QA to Done in 2026on Sep 23, 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