You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document CreateSpeech SDK method and Audio API surface #609
Schemas v0.25.0 added the OpenAI-compatible Audio API (POST /v1/audio/speech) and the Go SDK now exposes it via Client.CreateSpeech (returns raw audio bytes in the requested response_format).
Please document the new Audio API surface for SDK users.
Acceptance Criteria
SDK reference lists CreateSpeech(ctx, provider, CreateSpeechRequest) ([]byte, error) and notes the return value is raw audio bytes in the requested response_format (mp3 by default)
Docs mention CreateSpeechRequest fields: model, input (max 4096 chars), voice, optional instructions, response_format (mp3/opus/aac/flac/wav/pcm), speed (0.25 to 4.0), and reference_audio (base64, voice cloning, only honored by providers that support it, not OpenAI)
Docs state that the Audio API is provider-gated (ENABLE_AUDIO server flag, currently OpenAI) and unsupported providers return 400 with "The Audio API is not supported by this provider yet."
Provider gating: ENABLE_AUDIO flag + the 400 The Audio API is not supported by this provider yet.
Validate: bun run lint:md, bun run format:check, bun run build - all pass
Notes
One new section, ### Speech synthesis, in the Go part of sdks.md, sitting next to ### Image generation and following its shape. No other page touched - api-reference.md already covers the HTTP endpoint, so the new section links to it instead of repeating it.
ReferenceAudio is *[]byte in Go, not a base64 string: the docs say to pass raw sample bytes, since encoding/json base64-encodes them on the wire. Double-encoding is the obvious trap here.
Used the ptr(...) helper the rest of the page uses, not the new(...) from the images section (new is a Go builtin - that snippet only compiles with a local shadow). Left the images section alone; out of scope.
Activity
edenreich commentedon Aug 31, 2026
@claude Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Aug 31, 2026
Claude finished @edenreich's task in 2m 52s —— View job •
docs/issue-609-20260831-1150Done - PR #614 opened
api-reference.mdfrom docs: document audio api voice cloning #612; the gap was SDK-side)inference-gateway/sdk@main(sdk.go,generated_types.go)CreateSpeech(ctx, provider, CreateSpeechRequest) ([]byte, error)returning raw audio bytes in the requestedResponseFormat(mp3 default)Model,Input(4096 max),Voice,Instructions,ResponseFormat,Speed(0.25-4.0),ReferenceAudioENABLE_AUDIOflag + the 400The Audio API is not supported by this provider yet.bun run lint:md,bun run format:check,bun run build- all passNotes
### Speech synthesis, in the Go part ofsdks.md, sitting next to### Image generationand following its shape. No other page touched -api-reference.mdalready covers the HTTP endpoint, so the new section links to it instead of repeating it.ReferenceAudiois*[]bytein Go, not a base64 string: the docs say to pass raw sample bytes, sinceencoding/jsonbase64-encodes them on the wire. Double-encoding is the obvious trap here.ptr(...)helper the rest of the page uses, not thenew(...)from the images section (newis a Go builtin - that snippet only compiles with a local shadow). Left the images section alone; out of scope.Create a PR - already opened as #614.
| Branch
inference-gateway-releaser commentedon Sep 22, 2026
🎉 This issue has been resolved in version 0.9.14 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀