hume 0.11.4 → 0.11.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/empathic-voice/__package__.yml +186 -61
- package/.mock/definition/empathic-voice/chat.yml +1 -8
- package/.mock/definition/empathic-voice/configs.yml +7 -1
- package/.mock/definition/tts/__package__.yml +17 -14
- package/Client.js +2 -2
- package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
- package/api/resources/empathicVoice/types/AssistantProsody.d.ts +21 -0
- package/api/resources/empathicVoice/types/AssistantProsody.js +5 -0
- package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +19 -19
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +12 -12
- package/api/resources/empathicVoice/types/ReturnSignedUri.d.ts +12 -0
- package/api/resources/empathicVoice/types/ReturnSignedUri.js +5 -0
- package/api/resources/empathicVoice/types/ReturnVoiceOctaveCustom.d.ts +31 -0
- package/api/resources/empathicVoice/types/ReturnVoiceOctaveCustom.js +5 -0
- package/api/resources/empathicVoice/types/ReturnVoiceOctaveShared.d.ts +15 -0
- package/api/resources/empathicVoice/types/ReturnVoiceOctaveShared.js +5 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpec.d.ts +8 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpec.js +5 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpecEvi2.d.ts +14 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpecEvi2.js +5 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.d.ts +14 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.js +5 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.d.ts +14 -0
- package/api/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.js +5 -0
- package/api/resources/empathicVoice/types/index.d.ts +9 -1
- package/api/resources/empathicVoice/types/index.js +9 -1
- package/api/resources/tts/types/PostedTts.d.ts +2 -3
- package/api/resources/tts/types/PostedUtterance.d.ts +5 -3
- package/dist/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantProsody.d.ts +21 -0
- package/dist/api/resources/empathicVoice/types/AssistantProsody.js +5 -0
- package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +19 -19
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +12 -12
- package/dist/api/resources/empathicVoice/types/ReturnSignedUri.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnSignedUri.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceOctaveCustom.d.ts +31 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceOctaveCustom.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceOctaveShared.d.ts +15 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceOctaveShared.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpec.d.ts +8 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpecEvi2.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpecEvi2.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.js +5 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +9 -1
- package/dist/api/resources/empathicVoice/types/index.js +9 -1
- package/dist/api/resources/tts/types/PostedTts.d.ts +2 -3
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +5 -3
- package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +16 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.js +47 -0
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +15 -15
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +15 -15
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnSignedUri.d.ts +15 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnSignedUri.js +46 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceOctaveCustom.d.ts +34 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceOctaveCustom.js +65 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceOctaveShared.d.ts +18 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceOctaveShared.js +49 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpec.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpec.js +48 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpecEvi2.d.ts +15 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpecEvi2.js +46 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.d.ts +15 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.js +46 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.d.ts +15 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.js +46 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +9 -1
- package/dist/serialization/resources/empathicVoice/types/index.js +9 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
- package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
- package/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +16 -0
- package/serialization/resources/empathicVoice/types/AssistantProsody.js +47 -0
- package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +15 -15
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +15 -15
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +3 -3
- package/serialization/resources/empathicVoice/types/ReturnSignedUri.d.ts +15 -0
- package/serialization/resources/empathicVoice/types/ReturnSignedUri.js +46 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceOctaveCustom.d.ts +34 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceOctaveCustom.js +65 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceOctaveShared.d.ts +18 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceOctaveShared.js +49 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpec.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpec.js +48 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpecEvi2.d.ts +15 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpecEvi2.js +46 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.d.ts +15 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctavecustom.js +46 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.d.ts +15 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceSpecOctaveshared.js +46 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +9 -1
- package/serialization/resources/empathicVoice/types/index.js +9 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssistantEnd";
|
|
2
2
|
export * from "./AssistantInput";
|
|
3
3
|
export * from "./AssistantMessage";
|
|
4
|
+
export * from "./AssistantProsody";
|
|
4
5
|
export * from "./AudioConfiguration";
|
|
5
6
|
export * from "./AudioInput";
|
|
6
7
|
export * from "./AudioOutput";
|
|
@@ -49,7 +50,6 @@ export * from "./ReturnUserDefinedToolToolType";
|
|
|
49
50
|
export * from "./ReturnUserDefinedToolVersionType";
|
|
50
51
|
export * from "./ReturnUserDefinedTool";
|
|
51
52
|
export * from "./ReturnPagedPrompts";
|
|
52
|
-
export * from "./ReturnPromptVersionType";
|
|
53
53
|
export * from "./ReturnPrompt";
|
|
54
54
|
export * from "./ReturnPagedCustomVoices";
|
|
55
55
|
export * from "./PostedCustomVoiceBaseVoice";
|
|
@@ -75,6 +75,7 @@ export * from "./ReturnChatGroupPagedEventsPaginationDirection";
|
|
|
75
75
|
export * from "./ReturnChatGroupPagedEvents";
|
|
76
76
|
export * from "./ReturnChatGroupPagedAudioReconstructionsPaginationDirection";
|
|
77
77
|
export * from "./ReturnChatGroupPagedAudioReconstructions";
|
|
78
|
+
export * from "./ReturnPromptVersionType";
|
|
78
79
|
export * from "./PostedConfigPromptSpec";
|
|
79
80
|
export * from "./PostedLanguageModel";
|
|
80
81
|
export * from "./PostedEllmModel";
|
|
@@ -88,6 +89,7 @@ export * from "./PostedTimeoutSpecsMaxDuration";
|
|
|
88
89
|
export * from "./PostedTimeoutSpecs";
|
|
89
90
|
export * from "./PostedWebhookEventType";
|
|
90
91
|
export * from "./PostedWebhookSpec";
|
|
92
|
+
export * from "./ReturnVoiceSpec";
|
|
91
93
|
export * from "./ReturnLanguageModel";
|
|
92
94
|
export * from "./ReturnEllmModel";
|
|
93
95
|
export * from "./ReturnBuiltinToolToolType";
|
|
@@ -106,8 +108,14 @@ export * from "./ReturnConfigSpec";
|
|
|
106
108
|
export * from "./ReturnChatGroup";
|
|
107
109
|
export * from "./PostedEventMessageSpec";
|
|
108
110
|
export * from "./PostedTimeoutSpec";
|
|
111
|
+
export * from "./ReturnVoiceSpecEvi2";
|
|
112
|
+
export * from "./ReturnVoiceSpecOctavecustom";
|
|
113
|
+
export * from "./ReturnVoiceSpecOctaveshared";
|
|
109
114
|
export * from "./ReturnEventMessageSpec";
|
|
110
115
|
export * from "./ReturnTimeoutSpec";
|
|
116
|
+
export * from "./ReturnVoiceOctaveCustom";
|
|
117
|
+
export * from "./ReturnVoiceOctaveShared";
|
|
118
|
+
export * from "./ReturnSignedUri";
|
|
111
119
|
export * from "./PostedVoiceProvider";
|
|
112
120
|
export * from "./PostedVoice";
|
|
113
121
|
export * from "./ReturnVoiceProvider";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AssistantEnd"), exports);
|
|
18
18
|
__exportStar(require("./AssistantInput"), exports);
|
|
19
19
|
__exportStar(require("./AssistantMessage"), exports);
|
|
20
|
+
__exportStar(require("./AssistantProsody"), exports);
|
|
20
21
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
21
22
|
__exportStar(require("./AudioInput"), exports);
|
|
22
23
|
__exportStar(require("./AudioOutput"), exports);
|
|
@@ -65,7 +66,6 @@ __exportStar(require("./ReturnUserDefinedToolToolType"), exports);
|
|
|
65
66
|
__exportStar(require("./ReturnUserDefinedToolVersionType"), exports);
|
|
66
67
|
__exportStar(require("./ReturnUserDefinedTool"), exports);
|
|
67
68
|
__exportStar(require("./ReturnPagedPrompts"), exports);
|
|
68
|
-
__exportStar(require("./ReturnPromptVersionType"), exports);
|
|
69
69
|
__exportStar(require("./ReturnPrompt"), exports);
|
|
70
70
|
__exportStar(require("./ReturnPagedCustomVoices"), exports);
|
|
71
71
|
__exportStar(require("./PostedCustomVoiceBaseVoice"), exports);
|
|
@@ -91,6 +91,7 @@ __exportStar(require("./ReturnChatGroupPagedEventsPaginationDirection"), exports
|
|
|
91
91
|
__exportStar(require("./ReturnChatGroupPagedEvents"), exports);
|
|
92
92
|
__exportStar(require("./ReturnChatGroupPagedAudioReconstructionsPaginationDirection"), exports);
|
|
93
93
|
__exportStar(require("./ReturnChatGroupPagedAudioReconstructions"), exports);
|
|
94
|
+
__exportStar(require("./ReturnPromptVersionType"), exports);
|
|
94
95
|
__exportStar(require("./PostedConfigPromptSpec"), exports);
|
|
95
96
|
__exportStar(require("./PostedLanguageModel"), exports);
|
|
96
97
|
__exportStar(require("./PostedEllmModel"), exports);
|
|
@@ -104,6 +105,7 @@ __exportStar(require("./PostedTimeoutSpecsMaxDuration"), exports);
|
|
|
104
105
|
__exportStar(require("./PostedTimeoutSpecs"), exports);
|
|
105
106
|
__exportStar(require("./PostedWebhookEventType"), exports);
|
|
106
107
|
__exportStar(require("./PostedWebhookSpec"), exports);
|
|
108
|
+
__exportStar(require("./ReturnVoiceSpec"), exports);
|
|
107
109
|
__exportStar(require("./ReturnLanguageModel"), exports);
|
|
108
110
|
__exportStar(require("./ReturnEllmModel"), exports);
|
|
109
111
|
__exportStar(require("./ReturnBuiltinToolToolType"), exports);
|
|
@@ -122,8 +124,14 @@ __exportStar(require("./ReturnConfigSpec"), exports);
|
|
|
122
124
|
__exportStar(require("./ReturnChatGroup"), exports);
|
|
123
125
|
__exportStar(require("./PostedEventMessageSpec"), exports);
|
|
124
126
|
__exportStar(require("./PostedTimeoutSpec"), exports);
|
|
127
|
+
__exportStar(require("./ReturnVoiceSpecEvi2"), exports);
|
|
128
|
+
__exportStar(require("./ReturnVoiceSpecOctavecustom"), exports);
|
|
129
|
+
__exportStar(require("./ReturnVoiceSpecOctaveshared"), exports);
|
|
125
130
|
__exportStar(require("./ReturnEventMessageSpec"), exports);
|
|
126
131
|
__exportStar(require("./ReturnTimeoutSpec"), exports);
|
|
132
|
+
__exportStar(require("./ReturnVoiceOctaveCustom"), exports);
|
|
133
|
+
__exportStar(require("./ReturnVoiceOctaveShared"), exports);
|
|
134
|
+
__exportStar(require("./ReturnSignedUri"), exports);
|
|
127
135
|
__exportStar(require("./PostedVoiceProvider"), exports);
|
|
128
136
|
__exportStar(require("./PostedVoice"), exports);
|
|
129
137
|
__exportStar(require("./ReturnVoiceProvider"), exports);
|
|
@@ -29,10 +29,9 @@ export interface PostedTts {
|
|
|
29
29
|
utterances: Hume.tts.PostedUtterance[];
|
|
30
30
|
/**
|
|
31
31
|
* Enables ultra-low latency streaming, significantly reducing the time until the first audio chunk is received. Recommended for real-time applications requiring immediate audio playback. For further details, see our documentation on [instant mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
|
|
32
|
-
* -
|
|
33
|
-
* -
|
|
32
|
+
* - A [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice) must be specified when instant mode is enabled. Dynamic voice generation is not supported with this mode.
|
|
33
|
+
* - Instant mode is only supported for streaming endpoints (e.g., [/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming), [/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
|
|
34
34
|
* - Ensure only a single generation is requested ([num_generations](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.num_generations) must be `1` or omitted).
|
|
35
|
-
* - With `instant_mode` enabled, **requests incur a 10% higher cost** due to increased compute and resource requirements.
|
|
36
35
|
*/
|
|
37
36
|
instantMode?: boolean;
|
|
38
37
|
}
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface PostedUtterance {
|
|
6
6
|
/**
|
|
7
|
-
* Natural language instructions describing how the synthesized speech should sound, including but not limited to tone, intonation, pacing, and accent
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Natural language instructions describing how the synthesized speech should sound, including but not limited to tone, intonation, pacing, and accent.
|
|
8
|
+
*
|
|
9
|
+
* **This field behaves differently depending on whether a voice is specified**:
|
|
10
|
+
* - **Voice specified**: the description will serve as acting directions for delivery. Keep directions concise—100 characters or fewer—for best results. See our guide on [acting instructions](/docs/text-to-speech-tts/acting-instructions).
|
|
11
|
+
* - **Voice not specified**: the description will serve as a voice prompt for generating a voice. See our [prompting guide](/docs/text-to-speech-tts/prompting) for design tips.
|
|
10
12
|
*/
|
|
11
13
|
description?: string;
|
|
12
14
|
/** Speed multiplier for the synthesized speech. */
|
|
@@ -6,6 +6,7 @@ import * as Hume from "../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { AssistantEnd } from "../../../types/AssistantEnd";
|
|
8
8
|
import { AssistantMessage } from "../../../types/AssistantMessage";
|
|
9
|
+
import { AssistantProsody } from "../../../types/AssistantProsody";
|
|
9
10
|
import { AudioOutput } from "../../../types/AudioOutput";
|
|
10
11
|
import { ChatMetadata } from "../../../types/ChatMetadata";
|
|
11
12
|
import { WebSocketError } from "../../../types/WebSocketError";
|
|
@@ -16,5 +17,5 @@ import { ToolResponseMessage } from "../../../types/ToolResponseMessage";
|
|
|
16
17
|
import { ToolErrorMessage } from "../../../types/ToolErrorMessage";
|
|
17
18
|
export declare const SubscribeEvent: core.serialization.Schema<serializers.empathicVoice.SubscribeEvent.Raw, Hume.empathicVoice.SubscribeEvent>;
|
|
18
19
|
export declare namespace SubscribeEvent {
|
|
19
|
-
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
20
|
+
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
20
21
|
}
|
|
@@ -40,6 +40,7 @@ exports.SubscribeEvent = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../../core"));
|
|
41
41
|
const AssistantEnd_1 = require("../../../types/AssistantEnd");
|
|
42
42
|
const AssistantMessage_1 = require("../../../types/AssistantMessage");
|
|
43
|
+
const AssistantProsody_1 = require("../../../types/AssistantProsody");
|
|
43
44
|
const AudioOutput_1 = require("../../../types/AudioOutput");
|
|
44
45
|
const ChatMetadata_1 = require("../../../types/ChatMetadata");
|
|
45
46
|
const WebSocketError_1 = require("../../../types/WebSocketError");
|
|
@@ -51,6 +52,7 @@ const ToolErrorMessage_1 = require("../../../types/ToolErrorMessage");
|
|
|
51
52
|
exports.SubscribeEvent = core.serialization.undiscriminatedUnion([
|
|
52
53
|
AssistantEnd_1.AssistantEnd,
|
|
53
54
|
AssistantMessage_1.AssistantMessage,
|
|
55
|
+
AssistantProsody_1.AssistantProsody,
|
|
54
56
|
AudioOutput_1.AudioOutput,
|
|
55
57
|
ChatMetadata_1.ChatMetadata,
|
|
56
58
|
WebSocketError_1.WebSocketError,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { Inference } from "./Inference";
|
|
8
|
+
export declare const AssistantProsody: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantProsody.Raw, Hume.empathicVoice.AssistantProsody>;
|
|
9
|
+
export declare namespace AssistantProsody {
|
|
10
|
+
interface Raw {
|
|
11
|
+
custom_session_id?: string | null;
|
|
12
|
+
id?: string | null;
|
|
13
|
+
models: Inference.Raw;
|
|
14
|
+
type: "assistant_prosody";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AssistantProsody = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const Inference_1 = require("./Inference");
|
|
42
|
+
exports.AssistantProsody = core.serialization.object({
|
|
43
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
|
+
id: core.serialization.string().optional(),
|
|
45
|
+
models: Inference_1.Inference,
|
|
46
|
+
type: core.serialization.stringLiteral("assistant_prosody"),
|
|
47
|
+
});
|
|
@@ -13,7 +13,8 @@ import { UserMessage } from "./UserMessage";
|
|
|
13
13
|
import { ToolCallMessage } from "./ToolCallMessage";
|
|
14
14
|
import { ToolResponseMessage } from "./ToolResponseMessage";
|
|
15
15
|
import { ToolErrorMessage } from "./ToolErrorMessage";
|
|
16
|
+
import { AssistantProsody } from "./AssistantProsody";
|
|
16
17
|
export declare const JsonMessage: core.serialization.Schema<serializers.empathicVoice.JsonMessage.Raw, Hume.empathicVoice.JsonMessage>;
|
|
17
18
|
export declare namespace JsonMessage {
|
|
18
|
-
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
19
|
+
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | AssistantProsody.Raw;
|
|
19
20
|
}
|
|
@@ -47,6 +47,7 @@ const UserMessage_1 = require("./UserMessage");
|
|
|
47
47
|
const ToolCallMessage_1 = require("./ToolCallMessage");
|
|
48
48
|
const ToolResponseMessage_1 = require("./ToolResponseMessage");
|
|
49
49
|
const ToolErrorMessage_1 = require("./ToolErrorMessage");
|
|
50
|
+
const AssistantProsody_1 = require("./AssistantProsody");
|
|
50
51
|
exports.JsonMessage = core.serialization.undiscriminatedUnion([
|
|
51
52
|
AssistantEnd_1.AssistantEnd,
|
|
52
53
|
AssistantMessage_1.AssistantMessage,
|
|
@@ -57,4 +58,5 @@ exports.JsonMessage = core.serialization.undiscriminatedUnion([
|
|
|
57
58
|
ToolCallMessage_1.ToolCallMessage,
|
|
58
59
|
ToolResponseMessage_1.ToolResponseMessage,
|
|
59
60
|
ToolErrorMessage_1.ToolErrorMessage,
|
|
61
|
+
AssistantProsody_1.AssistantProsody,
|
|
60
62
|
]);
|
|
@@ -4,35 +4,35 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ReturnLanguageModel } from "./ReturnLanguageModel";
|
|
7
|
+
import { ReturnTimeoutSpecs } from "./ReturnTimeoutSpecs";
|
|
8
|
+
import { ReturnNudgeSpec } from "./ReturnNudgeSpec";
|
|
10
9
|
import { ReturnEllmModel } from "./ReturnEllmModel";
|
|
10
|
+
import { ReturnVoice } from "./ReturnVoice";
|
|
11
|
+
import { ReturnPrompt } from "./ReturnPrompt";
|
|
11
12
|
import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
|
|
13
|
+
import { ReturnWebhookSpec } from "./ReturnWebhookSpec";
|
|
14
|
+
import { ReturnLanguageModel } from "./ReturnLanguageModel";
|
|
12
15
|
import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
|
|
13
16
|
import { ReturnEventMessageSpecs } from "./ReturnEventMessageSpecs";
|
|
14
|
-
import { ReturnTimeoutSpecs } from "./ReturnTimeoutSpecs";
|
|
15
|
-
import { ReturnNudgeSpec } from "./ReturnNudgeSpec";
|
|
16
|
-
import { ReturnWebhookSpec } from "./ReturnWebhookSpec";
|
|
17
17
|
export declare const ReturnConfig: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnConfig.Raw, Hume.empathicVoice.ReturnConfig>;
|
|
18
18
|
export declare namespace ReturnConfig {
|
|
19
19
|
interface Raw {
|
|
20
|
+
name?: string | null;
|
|
20
21
|
id?: string | null;
|
|
21
22
|
version?: number | null;
|
|
22
23
|
evi_version?: string | null;
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
timeouts?: ReturnTimeoutSpecs.Raw | null;
|
|
25
|
+
nudges?: ReturnNudgeSpec.Raw | null;
|
|
26
|
+
ellm_model?: ReturnEllmModel.Raw | null;
|
|
27
|
+
voice?: ReturnVoice.Raw | null;
|
|
28
|
+
prompt?: ReturnPrompt.Raw | null;
|
|
29
|
+
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
30
|
+
webhooks?: (ReturnWebhookSpec.Raw | null | undefined)[] | null;
|
|
25
31
|
created_on?: number | null;
|
|
26
32
|
modified_on?: number | null;
|
|
27
|
-
prompt?: ReturnPrompt.Raw | null;
|
|
28
|
-
voice?: ReturnVoice.Raw | null;
|
|
29
33
|
language_model?: ReturnLanguageModel.Raw | null;
|
|
30
|
-
ellm_model?: ReturnEllmModel.Raw | null;
|
|
31
|
-
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
32
34
|
builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
|
|
33
35
|
event_messages?: ReturnEventMessageSpecs.Raw | null;
|
|
34
|
-
|
|
35
|
-
nudges?: ReturnNudgeSpec.Raw | null;
|
|
36
|
-
webhooks?: (ReturnWebhookSpec.Raw | null | undefined)[] | null;
|
|
36
|
+
version_description?: string | null;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -38,32 +38,32 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ReturnConfig = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
|
|
41
|
+
const ReturnTimeoutSpecs_1 = require("./ReturnTimeoutSpecs");
|
|
42
|
+
const ReturnNudgeSpec_1 = require("./ReturnNudgeSpec");
|
|
44
43
|
const ReturnEllmModel_1 = require("./ReturnEllmModel");
|
|
44
|
+
const ReturnVoice_1 = require("./ReturnVoice");
|
|
45
|
+
const ReturnPrompt_1 = require("./ReturnPrompt");
|
|
45
46
|
const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
|
|
47
|
+
const ReturnWebhookSpec_1 = require("./ReturnWebhookSpec");
|
|
48
|
+
const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
|
|
46
49
|
const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
|
|
47
50
|
const ReturnEventMessageSpecs_1 = require("./ReturnEventMessageSpecs");
|
|
48
|
-
const ReturnTimeoutSpecs_1 = require("./ReturnTimeoutSpecs");
|
|
49
|
-
const ReturnNudgeSpec_1 = require("./ReturnNudgeSpec");
|
|
50
|
-
const ReturnWebhookSpec_1 = require("./ReturnWebhookSpec");
|
|
51
51
|
exports.ReturnConfig = core.serialization.object({
|
|
52
|
+
name: core.serialization.string().optional(),
|
|
52
53
|
id: core.serialization.string().optional(),
|
|
53
54
|
version: core.serialization.number().optional(),
|
|
54
55
|
eviVersion: core.serialization.property("evi_version", core.serialization.string().optional()),
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
timeouts: ReturnTimeoutSpecs_1.ReturnTimeoutSpecs.optional(),
|
|
57
|
+
nudges: ReturnNudgeSpec_1.ReturnNudgeSpec.optional(),
|
|
58
|
+
ellmModel: core.serialization.property("ellm_model", ReturnEllmModel_1.ReturnEllmModel.optional()),
|
|
59
|
+
voice: ReturnVoice_1.ReturnVoice.optional(),
|
|
60
|
+
prompt: ReturnPrompt_1.ReturnPrompt.optional(),
|
|
61
|
+
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
62
|
+
webhooks: core.serialization.list(ReturnWebhookSpec_1.ReturnWebhookSpec.optional()).optional(),
|
|
57
63
|
createdOn: core.serialization.property("created_on", core.serialization.number().optional()),
|
|
58
64
|
modifiedOn: core.serialization.property("modified_on", core.serialization.number().optional()),
|
|
59
|
-
prompt: ReturnPrompt_1.ReturnPrompt.optional(),
|
|
60
|
-
voice: ReturnVoice_1.ReturnVoice.optional(),
|
|
61
65
|
languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
|
|
62
|
-
ellmModel: core.serialization.property("ellm_model", ReturnEllmModel_1.ReturnEllmModel.optional()),
|
|
63
|
-
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
64
66
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
|
|
65
67
|
eventMessages: core.serialization.property("event_messages", ReturnEventMessageSpecs_1.ReturnEventMessageSpecs.optional()),
|
|
66
|
-
|
|
67
|
-
nudges: ReturnNudgeSpec_1.ReturnNudgeSpec.optional(),
|
|
68
|
-
webhooks: core.serialization.list(ReturnWebhookSpec_1.ReturnWebhookSpec.optional()).optional(),
|
|
68
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
69
69
|
});
|
|
@@ -8,13 +8,13 @@ import { ReturnPromptVersionType } from "./ReturnPromptVersionType";
|
|
|
8
8
|
export declare const ReturnPrompt: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPrompt.Raw, Hume.empathicVoice.ReturnPrompt>;
|
|
9
9
|
export declare namespace ReturnPrompt {
|
|
10
10
|
interface Raw {
|
|
11
|
+
name: string;
|
|
11
12
|
id: string;
|
|
13
|
+
text: string;
|
|
12
14
|
version: number;
|
|
13
15
|
version_type: ReturnPromptVersionType.Raw;
|
|
14
|
-
version_description?: string | null;
|
|
15
|
-
name: string;
|
|
16
16
|
created_on: number;
|
|
17
17
|
modified_on: number;
|
|
18
|
-
|
|
18
|
+
version_description?: string | null;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -40,12 +40,12 @@ exports.ReturnPrompt = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ReturnPromptVersionType_1 = require("./ReturnPromptVersionType");
|
|
42
42
|
exports.ReturnPrompt = core.serialization.object({
|
|
43
|
+
name: core.serialization.string(),
|
|
43
44
|
id: core.serialization.string(),
|
|
45
|
+
text: core.serialization.string(),
|
|
44
46
|
version: core.serialization.number(),
|
|
45
47
|
versionType: core.serialization.property("version_type", ReturnPromptVersionType_1.ReturnPromptVersionType),
|
|
46
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
47
|
-
name: core.serialization.string(),
|
|
48
48
|
createdOn: core.serialization.property("created_on", core.serialization.number()),
|
|
49
49
|
modifiedOn: core.serialization.property("modified_on", core.serialization.number()),
|
|
50
|
-
|
|
50
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
51
51
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ReturnSignedUri: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnSignedUri.Raw, Hume.empathicVoice.ReturnSignedUri>;
|
|
8
|
+
export declare namespace ReturnSignedUri {
|
|
9
|
+
interface Raw {
|
|
10
|
+
filename?: string | null;
|
|
11
|
+
method?: string | null;
|
|
12
|
+
signed_uri?: string | null;
|
|
13
|
+
expiration_timestamp_millis?: number | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ReturnSignedUri = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.ReturnSignedUri = core.serialization.object({
|
|
42
|
+
filename: core.serialization.string().optional(),
|
|
43
|
+
method: core.serialization.string().optional(),
|
|
44
|
+
signedUri: core.serialization.property("signed_uri", core.serialization.string().optional()),
|
|
45
|
+
expirationTimestampMillis: core.serialization.property("expiration_timestamp_millis", core.serialization.number().optional()),
|
|
46
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ReturnSignedUri } from "./ReturnSignedUri";
|
|
8
|
+
export declare const ReturnVoiceOctaveCustom: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnVoiceOctaveCustom.Raw, Hume.empathicVoice.ReturnVoiceOctaveCustom>;
|
|
9
|
+
export declare namespace ReturnVoiceOctaveCustom {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id?: string | null;
|
|
12
|
+
version?: number | null;
|
|
13
|
+
name?: string | null;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
voice_type?: string | null;
|
|
16
|
+
created_on?: number | null;
|
|
17
|
+
modified_on?: number | null;
|
|
18
|
+
voice_prompt?: string | null;
|
|
19
|
+
normalization_gain_db?: number | null;
|
|
20
|
+
speaker_embedding?: string | null;
|
|
21
|
+
reference_uri?: string | null;
|
|
22
|
+
reference_audio_format?: string | null;
|
|
23
|
+
clone_reference_uri?: string | null;
|
|
24
|
+
clone_reference_audio_format?: string | null;
|
|
25
|
+
reference_tokens?: string | null;
|
|
26
|
+
reference_atoks?: string | null;
|
|
27
|
+
reference_decoder_dtoks?: string | null;
|
|
28
|
+
reference_text?: string | null;
|
|
29
|
+
signed_preview_reference_uri?: ReturnSignedUri.Raw | null;
|
|
30
|
+
signed_clone_reference_uri?: ReturnSignedUri.Raw | null;
|
|
31
|
+
image_uri?: string | null;
|
|
32
|
+
disabled?: boolean | null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ReturnVoiceOctaveCustom = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const ReturnSignedUri_1 = require("./ReturnSignedUri");
|
|
42
|
+
exports.ReturnVoiceOctaveCustom = core.serialization.object({
|
|
43
|
+
id: core.serialization.string().optional(),
|
|
44
|
+
version: core.serialization.number().optional(),
|
|
45
|
+
name: core.serialization.string().optional(),
|
|
46
|
+
description: core.serialization.string().optional(),
|
|
47
|
+
voiceType: core.serialization.property("voice_type", core.serialization.string().optional()),
|
|
48
|
+
createdOn: core.serialization.property("created_on", core.serialization.number().optional()),
|
|
49
|
+
modifiedOn: core.serialization.property("modified_on", core.serialization.number().optional()),
|
|
50
|
+
voicePrompt: core.serialization.property("voice_prompt", core.serialization.string().optional()),
|
|
51
|
+
normalizationGainDb: core.serialization.property("normalization_gain_db", core.serialization.number().optional()),
|
|
52
|
+
speakerEmbedding: core.serialization.property("speaker_embedding", core.serialization.string().optional()),
|
|
53
|
+
referenceUri: core.serialization.property("reference_uri", core.serialization.string().optional()),
|
|
54
|
+
referenceAudioFormat: core.serialization.property("reference_audio_format", core.serialization.string().optional()),
|
|
55
|
+
cloneReferenceUri: core.serialization.property("clone_reference_uri", core.serialization.string().optional()),
|
|
56
|
+
cloneReferenceAudioFormat: core.serialization.property("clone_reference_audio_format", core.serialization.string().optional()),
|
|
57
|
+
referenceTokens: core.serialization.property("reference_tokens", core.serialization.string().optional()),
|
|
58
|
+
referenceAtoks: core.serialization.property("reference_atoks", core.serialization.string().optional()),
|
|
59
|
+
referenceDecoderDtoks: core.serialization.property("reference_decoder_dtoks", core.serialization.string().optional()),
|
|
60
|
+
referenceText: core.serialization.property("reference_text", core.serialization.string().optional()),
|
|
61
|
+
signedPreviewReferenceUri: core.serialization.property("signed_preview_reference_uri", ReturnSignedUri_1.ReturnSignedUri.optional()),
|
|
62
|
+
signedCloneReferenceUri: core.serialization.property("signed_clone_reference_uri", ReturnSignedUri_1.ReturnSignedUri.optional()),
|
|
63
|
+
imageUri: core.serialization.property("image_uri", core.serialization.string().optional()),
|
|
64
|
+
disabled: core.serialization.boolean().optional(),
|
|
65
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ReturnSignedUri } from "./ReturnSignedUri";
|
|
8
|
+
export declare const ReturnVoiceOctaveShared: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnVoiceOctaveShared.Raw, Hume.empathicVoice.ReturnVoiceOctaveShared>;
|
|
9
|
+
export declare namespace ReturnVoiceOctaveShared {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id?: string | null;
|
|
12
|
+
version?: number | null;
|
|
13
|
+
name?: string | null;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
reference_signed_uri?: ReturnSignedUri.Raw | null;
|
|
16
|
+
image_uri?: string | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ReturnVoiceOctaveShared = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const ReturnSignedUri_1 = require("./ReturnSignedUri");
|
|
42
|
+
exports.ReturnVoiceOctaveShared = core.serialization.object({
|
|
43
|
+
id: core.serialization.string().optional(),
|
|
44
|
+
version: core.serialization.number().optional(),
|
|
45
|
+
name: core.serialization.string().optional(),
|
|
46
|
+
description: core.serialization.string().optional(),
|
|
47
|
+
referenceSignedUri: core.serialization.property("reference_signed_uri", ReturnSignedUri_1.ReturnSignedUri.optional()),
|
|
48
|
+
imageUri: core.serialization.property("image_uri", core.serialization.string().optional()),
|
|
49
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ReturnVoiceSpecEvi2 } from "./ReturnVoiceSpecEvi2";
|
|
8
|
+
import { ReturnVoiceSpecOctavecustom } from "./ReturnVoiceSpecOctavecustom";
|
|
9
|
+
import { ReturnVoiceSpecOctaveshared } from "./ReturnVoiceSpecOctaveshared";
|
|
10
|
+
export declare const ReturnVoiceSpec: core.serialization.Schema<serializers.empathicVoice.ReturnVoiceSpec.Raw, Hume.empathicVoice.ReturnVoiceSpec>;
|
|
11
|
+
export declare namespace ReturnVoiceSpec {
|
|
12
|
+
type Raw = ReturnVoiceSpecEvi2.Raw | ReturnVoiceSpecOctavecustom.Raw | ReturnVoiceSpecOctaveshared.Raw;
|
|
13
|
+
}
|