Skip to content

feat: add bit_rate parameter to AudioSpeechRequest (ENG-84936)#234

Open
rishabh-bhargava wants to merge 1 commit intomainfrom
feat/eng-84936-bit-rate
Open

feat: add bit_rate parameter to AudioSpeechRequest (ENG-84936)#234
rishabh-bhargava wants to merge 1 commit intomainfrom
feat/eng-84936-bit-rate

Conversation

@rishabh-bhargava
Copy link
Copy Markdown
Contributor

Summary

Add bit_rate as an optional integer parameter to the AudioSpeechRequest schema for controlling MP3 compression bitrate.

  • Only applicable when response_format is mp3
  • Valid values: 32000, 64000, 96000, 128000 (default), 192000
  • Currently supported on Cartesia models
  • Returns 400 if used with non-MP3 formats or invalid values

Related

🤖 Generated with Claude Code

Add bit_rate as an optional integer enum to the TTS request schema.
Only applicable with response_format=mp3. Valid values: 32000, 64000,
96000, 128000 (default), 192000.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 28, 2026

✱ Stainless preview builds

This PR will update the togetherai SDKs with the following commit messages.

go

feat(api): add bit_rate parameter to audio speech

openapi

feat(api): add bit_rate parameter to audio generation request

python

feat(api): add bit_rate parameter to speech create method

terraform

chore(internal): regenerate SDK with no functional changes

typescript

feat(api): add bit_rate parameter to speech create method

Edit this comment to update them. They will appear in their respective SDK's changelogs.

togetherai-typescript studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ✅test ✅

npm install https://pkg.stainless.com/s/togetherai-typescript/e0f03c71647b815264119f740ebece573ea9e65b/dist.tar.gz
togetherai-openapi studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅

togetherai-python studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅ (prev: build ⏭️) → lint ✅ (prev: lint ⏭️) → test ⏭️

pip install https://pkg.stainless.com/s/togetherai-python/97455340bae09fe65559e4df292b14f4ed878f93/together-2.5.0-py3-none-any.whl
togetherai-terraform studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅lint ✅test ✅

togetherai-go studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅ (prev: build ❗) → lint ✅test ✅

go get github.com/stainless-sdks/togetherai-go@1984a93cb8d0f9cfe40097cf433b75b7b488acdf

This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-03-28 23:51:39 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant