Skip to content

Commit 0eba5db

Browse files
feat: add bit_rate parameter to AudioSpeechRequest (ENG-84936)
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>
1 parent 0d0287d commit 0eba5db

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9835,6 +9835,16 @@ components:
98359835
type: integer
98369836
default: 44100
98379837
description: Sampling rate to use for the output audio. The default sampling rate for canopylabs/orpheus-3b-0.1-ft and hexgrad/Kokoro-82M is 24000 and for cartesia/sonic is 44100.
9838+
bit_rate:
9839+
type: integer
9840+
description: Bitrate of the MP3 audio output in bits per second. Only applicable when response_format is mp3. Higher values produce better audio quality at larger file sizes. Default is 128000. Currently supported on Cartesia models.
9841+
default: 128000
9842+
enum:
9843+
- 32000
9844+
- 64000
9845+
- 96000
9846+
- 128000
9847+
- 192000
98389848
stream:
98399849
type: boolean
98409850
default: false

0 commit comments

Comments
 (0)