Skip to content

[DOCS] Document the Go SDK Audio API (CreateSpeech, CreateSFX and CreateMusic) #1259

Closed

Description

Summary

The Go SDK now ships runnable audio examples and an Audio Support section in its README (inference-gateway/sdk pull request 282). The Audio API (CreateSpeech, CreateSFX, CreateMusic) returns raw audio bytes and requires the gateway to run with AUDIO_ENABLED=true plus the key of the provider being called (openai, elevenlabs and mirelo serve the Audio API per the schema). The docs site does not cover these methods yet.

Acceptance Criteria

  • Add an Audio API section for the Go SDK covering CreateSpeech, CreateSFX and CreateMusic
  • State that the gateway needs AUDIO_ENABLED=true and the provider key (openai, elevenlabs or mirelo)
  • Document the two CreateSFX modes: a text prompt, and scoring a video through the Video and Output fields
  • Link the new examples under sdk/examples/speech, sdk/examples/sfx and sdk/examples/music

Affected pages: the Go SDK usage and reference pages on the docs site.

Reference: inference-gateway/sdk#282

Activity

  1. added
    documentation
    on Nov 17, 2026
  2. edenreich commented on Nov 17, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. inference-gateway-maintainer commented on Nov 17, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Documenting the Go SDK Audio API

    Most of the Go Audio API was already in sdks.md (Speech synthesis, plus a Sound effects and music subsection with field tables). I added what was missing:

    • CreateSFX / CreateMusic now say they need AUDIO_ENABLED=true plus the key of the provider you call (openai, elevenlabs or mirelo).
    • CreateSFX now has separate snippets for each mode: a text prompt, and scoring a video with Video + Output (mix / sfx / speech).
    • Links to sdk/examples/speech, sdk/examples/sfx (including the SFX_VIDEO_URL switch) and sdk/examples/music.
    • Fix: the docs used sdk.Mp3 / sdk.Wav for speech formats. The SDK's generated types actually name them sdk.CreateSpeechRequestResponseFormatMp3 etc., so I corrected those. The snippets also called an undefined ptr(...) helper, which I replaced with new(...) to match the SDK examples.

    I left the Speech section's provider note alone. It still says only OpenAI and local/qwen3-tts serve /v1/audio/speech. The issue lists the three providers for the Audio API in general, and I didn't check per-endpoint support for speech.
    • Branch

  4. moved this from Todo to In progress in 2026on Nov 17, 2026
  5. moved this from In progress to QA in 2026on Nov 17, 2026
  6. moved this from QA to Done in 2026on Nov 17, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    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

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions