Skip to content

Commit 1e77426

Browse files
feat(api): api update
1 parent b504c90 commit 1e77426

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 9
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lmnt-kaikato-aryp6r%2Flmnt-com-827123076176f4f90fe4bd0edfd38c6060c27a8266a249138a8bbd1f0340c411.yml
3-
openapi_spec_hash: d46d69263715343fadacfedddde95b86
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lmnt-kaikato-aryp6r%2Flmnt-com-e459e5b89107504561e0c96a6d5b73522407ae657e83a0c9a2609717889d10f6.yml
3+
openapi_spec_hash: 871bfa3fd402ddfe3124a5b884e3bd52
44
config_hash: ad76a808facacf5f53e58d591653bac6

src/resources/speech.ts

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)