@@ -33,8 +33,8 @@ private constructor(
33
33
private var validated: Boolean = false
34
34
35
35
/* *
36
- * Specifies the voice type . Supported voices are `alloy`, `echo `, `fable `, `onyx`, `nova`, and
37
- * `shimmer`.
36
+ * The voice the model uses to respond . Supported voices are `alloy`, `ash `, `ballad `, `coral`,
37
+ * `echo`, `sage`, ` shimmer`, and `verse `.
38
38
*/
39
39
fun voice (): Voice = voice.getRequired(" voice" )
40
40
@@ -44,8 +44,8 @@ private constructor(
44
44
fun format (): Format = format.getRequired(" format" )
45
45
46
46
/* *
47
- * Specifies the voice type . Supported voices are `alloy`, `echo `, `fable `, `onyx`, `nova`, and
48
- * `shimmer`.
47
+ * The voice the model uses to respond . Supported voices are `alloy`, `ash `, `ballad `, `coral`,
48
+ * `echo`, `sage`, ` shimmer`, and `verse `.
49
49
*/
50
50
@JsonProperty(" voice" ) @ExcludeMissing fun _voice () = voice
51
51
@@ -87,14 +87,14 @@ private constructor(
87
87
}
88
88
89
89
/* *
90
- * Specifies the voice type . Supported voices are `alloy`, `echo `, `fable`, `onyx`, `nova `,
91
- * and ` shimmer`.
90
+ * The voice the model uses to respond . Supported voices are `alloy`, `ash `, `ballad `,
91
+ * `coral`, `echo`, `sage`, ` shimmer`, and `verse `.
92
92
*/
93
93
fun voice (voice : Voice ) = voice(JsonField .of(voice))
94
94
95
95
/* *
96
- * Specifies the voice type . Supported voices are `alloy`, `echo `, `fable`, `onyx`, `nova `,
97
- * and ` shimmer`.
96
+ * The voice the model uses to respond . Supported voices are `alloy`, `ash `, `ballad `,
97
+ * `coral`, `echo`, `sage`, ` shimmer`, and `verse `.
98
98
*/
99
99
@JsonProperty(" voice" )
100
100
@ExcludeMissing
@@ -235,57 +235,69 @@ private constructor(
235
235
236
236
@JvmField val ALLOY = Voice (JsonField .of(" alloy" ))
237
237
238
- @JvmField val ECHO = Voice (JsonField .of(" echo" ))
238
+ @JvmField val ASH = Voice (JsonField .of(" ash" ))
239
+
240
+ @JvmField val BALLAD = Voice (JsonField .of(" ballad" ))
239
241
240
- @JvmField val FABLE = Voice (JsonField .of(" fable " ))
242
+ @JvmField val CORAL = Voice (JsonField .of(" coral " ))
241
243
242
- @JvmField val ONYX = Voice (JsonField .of(" onyx " ))
244
+ @JvmField val ECHO = Voice (JsonField .of(" echo " ))
243
245
244
- @JvmField val NOVA = Voice (JsonField .of(" nova " ))
246
+ @JvmField val SAGE = Voice (JsonField .of(" sage " ))
245
247
246
248
@JvmField val SHIMMER = Voice (JsonField .of(" shimmer" ))
247
249
250
+ @JvmField val VERSE = Voice (JsonField .of(" verse" ))
251
+
248
252
@JvmStatic fun of (value : String ) = Voice (JsonField .of(value))
249
253
}
250
254
251
255
enum class Known {
252
256
ALLOY ,
257
+ ASH ,
258
+ BALLAD ,
259
+ CORAL ,
253
260
ECHO ,
254
- FABLE ,
255
- ONYX ,
256
- NOVA ,
261
+ SAGE ,
257
262
SHIMMER ,
263
+ VERSE ,
258
264
}
259
265
260
266
enum class Value {
261
267
ALLOY ,
268
+ ASH ,
269
+ BALLAD ,
270
+ CORAL ,
262
271
ECHO ,
263
- FABLE ,
264
- ONYX ,
265
- NOVA ,
272
+ SAGE ,
266
273
SHIMMER ,
274
+ VERSE ,
267
275
_UNKNOWN ,
268
276
}
269
277
270
278
fun value (): Value =
271
279
when (this ) {
272
280
ALLOY -> Value .ALLOY
281
+ ASH -> Value .ASH
282
+ BALLAD -> Value .BALLAD
283
+ CORAL -> Value .CORAL
273
284
ECHO -> Value .ECHO
274
- FABLE -> Value .FABLE
275
- ONYX -> Value .ONYX
276
- NOVA -> Value .NOVA
285
+ SAGE -> Value .SAGE
277
286
SHIMMER -> Value .SHIMMER
287
+ VERSE -> Value .VERSE
278
288
else -> Value ._UNKNOWN
279
289
}
280
290
281
291
fun known (): Known =
282
292
when (this ) {
283
293
ALLOY -> Known .ALLOY
294
+ ASH -> Known .ASH
295
+ BALLAD -> Known .BALLAD
296
+ CORAL -> Known .CORAL
284
297
ECHO -> Known .ECHO
285
- FABLE -> Known .FABLE
286
- ONYX -> Known .ONYX
287
- NOVA -> Known .NOVA
298
+ SAGE -> Known .SAGE
288
299
SHIMMER -> Known .SHIMMER
300
+ VERSE -> Known .VERSE
289
301
else -> throw OpenAIInvalidDataException (" Unknown Voice: $value " )
290
302
}
291
303
0 commit comments