11// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
33import { APIResource } from '../../core/resource' ;
4+ import * as Shared from '../shared' ;
45import { APIPromise } from '../../core/api-promise' ;
56import { buildHeaders } from '../../internal/headers' ;
67import { RequestOptions } from '../../internal/request-options' ;
@@ -32,19 +33,21 @@ export interface SpeechCreateParams {
3233 input : string ;
3334
3435 /**
35- * One of the available [TTS models](https://platform.openai.com/ docs/models#tts):
36- * `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
36+ * One of the available [TTS models](/ docs/models#tts): `tts-1`, `tts-1-hd`,
37+ * `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15 `.
3738 */
38- model : ( string & { } ) | 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' ;
39+ model : ( string & { } ) | 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-12-15' ;
3940
4041 /**
41- * The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
42- * `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and
43- * `verse`. Previews of the voices are available in the
44- * [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
42+ * The voice to use when generating the audio. Supported built-in voices are
43+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
44+ * `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice
45+ * object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the
46+ * voices are available in the
47+ * [Text to speech guide](/docs/guides/text-to-speech#voice-options).
4548 */
4649 voice :
47- | ( string & { } )
50+ | string
4851 | 'alloy'
4952 | 'ash'
5053 | 'ballad'
@@ -54,7 +57,8 @@ export interface SpeechCreateParams {
5457 | 'shimmer'
5558 | 'verse'
5659 | 'marin'
57- | 'cedar' ;
60+ | 'cedar'
61+ | Shared . VoiceIDsOrCustomVoice ;
5862
5963 /**
6064 * Control the voice of your generated audio with additional instructions. Does not
0 commit comments