Skip to content

Commit ff62538

Browse files
feat(api): api update
1 parent b826c33 commit ff62538

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.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-cda06fc480f98d0d27b29a256bc0b4bd10e8700b0d74d9cf97ad8a17c1645252.yml
3-
openapi_spec_hash: 34cd66cad890377b644bcc5b53c0e1a4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lmnt-kaikato-aryp6r%2Flmnt-com-65c2c6c535ed9613a2ec066fcb37e028c45e1a6cf67639d3f3b7d76b067cd3cf.yml
3+
openapi_spec_hash: 53f47fb39d900e20ae936b3ea9bafa40
44
config_hash: ad76a808facacf5f53e58d591653bac6

src/resources/speech.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ export interface SpeechGenerateParams {
206206
*/
207207
voice: string;
208208

209+
/**
210+
* When set to true, the generated speech will also be saved to your
211+
* [clip library](https://app.lmnt.com/clips) in the LMNT playground.
212+
*/
213+
debug?: boolean;
214+
209215
/**
210216
* The desired output format of the audio. If you are using a streaming endpoint,
211217
* you'll generate audio faster by selecting a streamable format since chunks are
@@ -300,6 +306,12 @@ export interface SpeechGenerateDetailedParams {
300306
*/
301307
voice: string;
302308

309+
/**
310+
* When set to true, the generated speech will also be saved to your
311+
* [clip library](https://app.lmnt.com/clips) in the LMNT playground.
312+
*/
313+
debug?: boolean;
314+
303315
/**
304316
* The desired output format of the audio. If you are using a streaming endpoint,
305317
* you'll generate audio faster by selecting a streamable format since chunks are

tests/api-resources/speech.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ describe('resource speech', () => {
2323
const response = await client.speech.generate({
2424
text: 'hello world.',
2525
voice: 'leah',
26+
debug: true,
2627
format: 'aac',
2728
language: 'auto',
2829
model: 'blizzard',
@@ -48,6 +49,7 @@ describe('resource speech', () => {
4849
const response = await client.speech.generateDetailed({
4950
text: 'hello world.',
5051
voice: 'leah',
52+
debug: true,
5153
format: 'aac',
5254
language: 'auto',
5355
model: 'blizzard',

0 commit comments

Comments
 (0)