Skip to content

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

Closed

Description

Summary

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

  • createSFX(request, provider?) -> POST /v1/audio/sfx
  • createMusic(request, provider?) -> POST /v1/audio/music

Both return a Blob of raw audio bytes, same shape as the existing createSpeech.

Implemented in inference-gateway/typescript-sdk#242 (follow-up to the closed docs#710).

Acceptance Criteria

  • api-reference.md: swap the plain fetch snippets for /audio/sfx and /audio/music with SDK calls
  • sdks.md: document createSFX and createMusic next to createSpeech
const sfx = await client.createSFX(
  { model: 'elevenlabs/eleven_text_to_sound_v2', prompt: 'distant thunder', duration_seconds: 5 },
  Provider.elevenlabs
);

const music = await client.createMusic(
  { model: 'elevenlabs/music_v2_5', prompt: 'upbeat synthwave', instrumental: true },
  Provider.elevenlabs
);

Activity

  1. moved this to Todo in 2026on Sep 23, 2026
  2. added
    documentation
    on 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 2m 48s —— View job • docs/issue-737-20260923-1320 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-737-20260923-1320?quick_pull=1&title=Issue%20%23737%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23737%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #740

    • Gather context
    • api-reference.md: fetch snippets under Sound effects / Music swapped for client.createSFX(...) / client.createMusic(...); the "not wrapped yet" note narrowed to the Go and Python SDKs
    • sdks.md: new ### Sound effects and music section under the TypeScript SDK, right after createSpeech - Blob out, AUDIO_ENABLED gate, elevenlabs-only, SchemaCreateSfxRequest / SchemaCreateMusicRequest
    • Lint / format / build (lint:md, format:check, build, bun test - all green)
    • Commit + open PR

    Anchor note: the new TypeScript section now owns /sdks/#sound-effects-and-music, so the three existing links to the Rust section moved to /sdks/#sound-effects-and-music-1. Verified against the built HTML.

    Heads up: typescript-sdk#242 is still open and unreleased (latest SDK release is v0.23.1), so these docs describe methods users cannot install yet - worth merging this after that PR ships.
    | 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