File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,13 @@ export interface SpeechCreateParams {
35
35
voice : 'alloy' | 'echo' | 'fable' | 'onyx' | 'nova' | 'shimmer' ;
36
36
37
37
/**
38
- * The format to audio in. Supported formats are `mp3`, `opus`, `aac`, and `flac`.
38
+ * The format to return audio in. Supported formats are `mp3`, `opus`, `aac`,
39
+ * `flac`, `pcm`, and `wav`.
40
+ *
41
+ * The `pcm` audio format, similar to `wav` but without a header, utilizes a 24kHz
42
+ * sample rate, mono channel, and 16-bit depth in signed little-endian format.
39
43
*/
40
- response_format ?: 'mp3' | 'opus' | 'aac' | 'flac' ;
44
+ response_format ?: 'mp3' | 'opus' | 'aac' | 'flac' | 'pcm' | 'wav' ;
41
45
42
46
/**
43
47
* The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is
You can’t perform that action at this time.
0 commit comments