@@ -53,7 +53,9 @@ def create(
53
53
* ,
54
54
input : str ,
55
55
model : Union [str , SpeechModel ],
56
- voice : Literal ["alloy" , "ash" , "coral" , "echo" , "fable" , "onyx" , "nova" , "sage" , "shimmer" ],
56
+ voice : Union [
57
+ str , Literal ["alloy" , "ash" , "ballad" , "coral" , "echo" , "fable" , "onyx" , "nova" , "sage" , "shimmer" , "verse" ]
58
+ ],
57
59
instructions : str | NotGiven = NOT_GIVEN ,
58
60
response_format : Literal ["mp3" , "opus" , "aac" , "flac" , "wav" , "pcm" ] | NotGiven = NOT_GIVEN ,
59
61
speed : float | NotGiven = NOT_GIVEN ,
@@ -75,8 +77,8 @@ def create(
75
77
`tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
76
78
77
79
voice: The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
78
- `coral`, `echo`, `fable`, `onyx`, `nova`, `sage` and `shimmer`. Previews of the
79
- voices are available in the
80
+ `ballad`, ` coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and
81
+ `verse`. Previews of the voices are available in the
80
82
[Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
81
83
82
84
instructions: Control the voice of your generated audio with additional instructions. Does not
@@ -142,7 +144,9 @@ async def create(
142
144
* ,
143
145
input : str ,
144
146
model : Union [str , SpeechModel ],
145
- voice : Literal ["alloy" , "ash" , "coral" , "echo" , "fable" , "onyx" , "nova" , "sage" , "shimmer" ],
147
+ voice : Union [
148
+ str , Literal ["alloy" , "ash" , "ballad" , "coral" , "echo" , "fable" , "onyx" , "nova" , "sage" , "shimmer" , "verse" ]
149
+ ],
146
150
instructions : str | NotGiven = NOT_GIVEN ,
147
151
response_format : Literal ["mp3" , "opus" , "aac" , "flac" , "wav" , "pcm" ] | NotGiven = NOT_GIVEN ,
148
152
speed : float | NotGiven = NOT_GIVEN ,
@@ -164,8 +168,8 @@ async def create(
164
168
`tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
165
169
166
170
voice: The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
167
- `coral`, `echo`, `fable`, `onyx`, `nova`, `sage` and `shimmer`. Previews of the
168
- voices are available in the
171
+ `ballad`, ` coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and
172
+ `verse`. Previews of the voices are available in the
169
173
[Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
170
174
171
175
instructions: Control the voice of your generated audio with additional instructions. Does not
0 commit comments