@@ -148,16 +148,15 @@ export interface SpeechConvertParams {
148148 * Streamable formats:
149149 *
150150 * - `mp3`: 96kbps MP3 audio.
151- * - `raw`: 32-bit floating point raw audio.
152151 * - `ulaw`: 8-bit G711 µ-law audio with a WAV header.
153152 * - `webm`: WebM format with Opus audio codec.
154- *
155- * Non-streamable formats:
156- *
153+ * - `pcm_s16le`: PCM signed 16-bit little-endian audio.
154+ * - `pcm_f32le`: PCM 32-bit floating-point little-endian audio. Non-streamable
155+ * formats:
157156 * - `aac`: AAC audio codec.
158157 * - `wav`: 16-bit PCM audio in WAV container.
159158 */
160- format ?: 'aac' | 'mp3' | 'raw ' | 'ulaw ' | 'wav ' | 'webm ' ;
159+ format ?: 'aac' | 'mp3' | 'ulaw ' | 'wav ' | 'webm ' | 'pcm_s16le' | 'pcm_f32le ';
161160
162161 /**
163162 * The language of the source audio. Two letter ISO 639-1 code.
@@ -214,16 +213,15 @@ export interface SpeechGenerateParams {
214213 * Streamable formats:
215214 *
216215 * - `mp3`: 96kbps MP3 audio.
217- * - `raw`: 32-bit floating point raw audio.
218216 * - `ulaw`: 8-bit G711 µ-law audio with a WAV header.
219217 * - `webm`: WebM format with Opus audio codec.
220- *
221- * Non-streamable formats:
222- *
218+ * - `pcm_s16le`: PCM signed 16-bit little-endian audio.
219+ * - `pcm_f32le`: PCM 32-bit floating-point little-endian audio. Non-streamable
220+ * formats:
223221 * - `aac`: AAC audio codec.
224222 * - `wav`: 16-bit PCM audio in WAV container.
225223 */
226- format ?: 'aac' | 'mp3' | 'raw ' | 'ulaw ' | 'wav ' | 'webm ' ;
224+ format ?: 'aac' | 'mp3' | 'ulaw ' | 'wav ' | 'webm ' | 'pcm_s16le' | 'pcm_f32le ';
227225
228226 /**
229227 * The desired language. Two letter ISO 639-1 code. Defaults to auto language
@@ -307,16 +305,15 @@ export interface SpeechGenerateDetailedParams {
307305 * Streamable formats:
308306 *
309307 * - `mp3`: 96kbps MP3 audio.
310- * - `raw`: 32-bit floating point raw audio.
311308 * - `ulaw`: 8-bit G711 µ-law audio with a WAV header.
312309 * - `webm`: WebM format with Opus audio codec.
313- *
314- * Non-streamable formats:
315- *
310+ * - `pcm_s16le`: PCM signed 16-bit little-endian audio.
311+ * - `pcm_f32le`: PCM 32-bit floating-point little-endian audio. Non-streamable
312+ * formats:
316313 * - `aac`: AAC audio codec.
317314 * - `wav`: 16-bit PCM audio in WAV container.
318315 */
319- format ?: 'aac' | 'mp3' | 'raw ' | 'ulaw ' | 'wav ' | 'webm ' ;
316+ format ?: 'aac' | 'mp3' | 'ulaw ' | 'wav ' | 'webm ' | 'pcm_s16le' | 'pcm_f32le ';
320317
321318 /**
322319 * The desired language. Two letter ISO 639-1 code. Defaults to auto language
0 commit comments