Skip to content

Commit dbf58a0

Browse files
🌿 Fern Regeneration -- April 2, 2025 (#307)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: twitchard <[email protected]>
1 parent bed7117 commit dbf58a0

File tree

19 files changed

+76
-46
lines changed

19 files changed

+76
-46
lines changed

.mock/definition/tts/__package__.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,29 @@ types:
405405
docs: The index of the utterance in the request this snippet corresponds to.
406406
source:
407407
openapi: tts-openapi.yml
408+
SnippetAudioChunk:
409+
properties:
410+
audio:
411+
type: string
412+
docs: The generated audio output chunk in the requested format.
413+
chunk_index:
414+
type: integer
415+
docs: The index of the audio chunk in the snippet.
416+
generation_id:
417+
type: string
418+
docs: The generation ID the parent snippet that this chunk corresponds to.
419+
is_last_chunk:
420+
type: boolean
421+
docs: >-
422+
Whether or not this is the last chunk streamed back from the decoder
423+
for one input snippet.
424+
utterance_index:
425+
type: optional<integer>
426+
docs: >-
427+
The index of the utterance in the request the parent snippet of this
428+
chunk corresponds to.
429+
source:
430+
openapi: tts-openapi.yml
408431
PostedUtterance:
409432
properties:
410433
description:

.mock/definition/tts/voices.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
types:
2-
VoicesListRequestProvider:
3-
enum:
4-
- HUME_AI
5-
- CUSTOM_VOICE
6-
source:
7-
openapi: tts-openapi.yml
81
imports:
92
root: __package__.yml
103
service:
@@ -26,7 +19,7 @@ service:
2619
name: VoicesListRequest
2720
query-parameters:
2821
provider:
29-
type: VoicesListRequestProvider
22+
type: root.VoiceProvider
3023
docs: >-
3124
Specifies whether to return custom voices created in your account
3225
or shared voices provided by Hume

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Lists voices in your **Voice Library**. Set provider to `HUME_AI` to list Hume's
362362

363363
```typescript
364364
await client.tts.voices.list({
365-
provider: Hume.VoicesListRequestProvider.CustomVoice,
365+
provider: Hume.VoiceProvider.CustomVoice,
366366
});
367367
```
368368

src/api/resources/tts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from "./resources";
21
export * from "./types";
32
export * from "./errors";
43
export * from "./client";
4+
export * from "./resources";
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * as voices from "./voices";
2-
export * from "./voices/types";
32
export * from "./voices/client/requests";

src/api/resources/tts/resources/voices/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class Voices {
3939
*
4040
* @example
4141
* await client.tts.voices.list({
42-
* provider: Hume.tts.VoicesListRequestProvider.CustomVoice
42+
* provider: Hume.tts.VoiceProvider.CustomVoice
4343
* })
4444
*/
4545
public async list(

src/api/resources/tts/resources/voices/client/requests/VoicesListRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import * as Hume from "../../../../../../index";
77
/**
88
* @example
99
* {
10-
* provider: Hume.tts.VoicesListRequestProvider.CustomVoice
10+
* provider: Hume.tts.VoiceProvider.CustomVoice
1111
* }
1212
*/
1313
export interface VoicesListRequest {
1414
/**
1515
* Specifies whether to return custom voices created in your account or shared voices provided by Hume
1616
*/
17-
provider: Hume.tts.VoicesListRequestProvider;
17+
provider: Hume.tts.VoiceProvider;
1818
/**
1919
* Specifies the page number to retrieve, enabling pagination.
2020
*
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from "./types";
21
export * from "./client";

src/api/resources/tts/resources/voices/types/VoicesListRequestProvider.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/api/resources/tts/resources/voices/types/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface SnippetAudioChunk {
6+
/** The generated audio output chunk in the requested format. */
7+
audio: string;
8+
/** The index of the audio chunk in the snippet. */
9+
chunkIndex: number;
10+
/** The generation ID the parent snippet that this chunk corresponds to. */
11+
generationId: string;
12+
/** Whether or not this is the last chunk streamed back from the decoder for one input snippet. */
13+
isLastChunk: boolean;
14+
/** The index of the utterance in the request the parent snippet of this chunk corresponds to. */
15+
utteranceIndex?: number;
16+
}

src/api/resources/tts/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export * from "./ReturnTts";
1212
export * from "./ReturnVoice";
1313
export * from "./FormatPcm";
1414
export * from "./Snippet";
15+
export * from "./SnippetAudioChunk";
1516
export * from "./PostedUtterance";
1617
export * from "./ValidationErrorLocItem";
1718
export * from "./ValidationError";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./resources";
21
export * from "./types";
2+
export * from "./resources";
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * as voices from "./voices";
2-
export * from "./voices/types";
32
export * from "./voices/client/requests";
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from "./types";
21
export * from "./client";

src/serialization/resources/tts/resources/voices/types/VoicesListRequestProvider.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/serialization/resources/tts/resources/voices/types/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../../../index";
6+
import * as Hume from "../../../../api/index";
7+
import * as core from "../../../../core";
8+
9+
export const SnippetAudioChunk: core.serialization.ObjectSchema<
10+
serializers.tts.SnippetAudioChunk.Raw,
11+
Hume.tts.SnippetAudioChunk
12+
> = core.serialization.object({
13+
audio: core.serialization.string(),
14+
chunkIndex: core.serialization.property("chunk_index", core.serialization.number()),
15+
generationId: core.serialization.property("generation_id", core.serialization.string()),
16+
isLastChunk: core.serialization.property("is_last_chunk", core.serialization.boolean()),
17+
utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()),
18+
});
19+
20+
export declare namespace SnippetAudioChunk {
21+
interface Raw {
22+
audio: string;
23+
chunk_index: number;
24+
generation_id: string;
25+
is_last_chunk: boolean;
26+
utterance_index?: number | null;
27+
}
28+
}

src/serialization/resources/tts/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export * from "./ReturnTts";
1212
export * from "./ReturnVoice";
1313
export * from "./FormatPcm";
1414
export * from "./Snippet";
15+
export * from "./SnippetAudioChunk";
1516
export * from "./PostedUtterance";
1617
export * from "./ValidationErrorLocItem";
1718
export * from "./ValidationError";

0 commit comments

Comments
 (0)