hume 0.13.5 → 0.13.7
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/api.yml +12 -0
- package/.mock/definition/empathic-voice/__package__.yml +2988 -0
- package/.mock/definition/empathic-voice/chat.yml +175 -0
- package/.mock/definition/empathic-voice/chatGroups.yml +627 -0
- package/.mock/definition/empathic-voice/chatWebhooks.yml +30 -0
- package/.mock/definition/empathic-voice/chats.yml +506 -0
- package/.mock/definition/empathic-voice/configs.yml +842 -0
- package/.mock/definition/empathic-voice/prompts.yml +558 -0
- package/.mock/definition/empathic-voice/tools.yml +626 -0
- package/.mock/definition/expression-measurement/__package__.yml +1 -0
- package/.mock/definition/expression-measurement/batch/__package__.yml +1803 -0
- package/.mock/definition/expression-measurement/stream/__package__.yml +113 -0
- package/.mock/definition/expression-measurement/stream/stream.yml +438 -0
- package/.mock/definition/tts/__package__.yml +718 -0
- package/.mock/definition/tts/streamInput.yml +84 -0
- package/.mock/definition/tts/voices.yml +143 -0
- package/.mock/fern.config.json +4 -0
- package/Client.js +10 -3
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
- package/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
- package/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
- package/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
- package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
- package/api/resources/empathicVoice/types/Context.d.ts +6 -6
- package/api/resources/empathicVoice/types/LanguageModelType.d.ts +7 -1
- package/api/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +27 -27
- package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
- package/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
- package/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
- package/api/resources/empathicVoice/types/index.d.ts +16 -16
- package/api/resources/empathicVoice/types/index.js +16 -16
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/api/resources/tts/client/Client.d.ts +6 -6
- package/api/resources/tts/client/Client.js +35 -35
- package/api/resources/tts/types/OctaveVersion.d.ts +4 -0
- package/api/resources/tts/types/OctaveVersion.js +5 -0
- package/api/resources/tts/types/PostedTts.d.ts +9 -8
- package/api/resources/tts/types/PostedUtterance.d.ts +6 -6
- package/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
- package/api/resources/tts/types/ReturnTts.d.ts +1 -1
- package/api/resources/tts/types/Snippet.d.ts +6 -6
- package/api/resources/tts/types/SnippetAudioChunk.d.ts +12 -11
- package/api/resources/tts/types/index.d.ts +1 -0
- package/api/resources/tts/types/index.js +1 -0
- package/dist/Client.js +10 -3
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/Context.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/LanguageModelType.d.ts +7 -1
- package/dist/api/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +27 -27
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/index.d.ts +16 -16
- package/dist/api/resources/empathicVoice/types/index.js +16 -16
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/api/resources/tts/client/Client.d.ts +6 -6
- package/dist/api/resources/tts/client/Client.js +35 -35
- package/dist/api/resources/tts/types/OctaveVersion.d.ts +4 -0
- package/dist/api/resources/tts/types/OctaveVersion.js +5 -0
- package/dist/api/resources/tts/types/PostedTts.d.ts +9 -8
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +6 -6
- package/dist/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
- package/dist/api/resources/tts/types/ReturnTts.d.ts +1 -1
- package/dist/api/resources/tts/types/Snippet.d.ts +6 -6
- package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +12 -11
- package/dist/api/resources/tts/types/index.d.ts +1 -0
- package/dist/api/resources/tts/types/index.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/Context.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
- package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +16 -16
- package/dist/serialization/resources/empathicVoice/types/index.js +16 -16
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/tts/types/OctaveVersion.d.ts +10 -0
- package/dist/serialization/resources/tts/types/OctaveVersion.js +41 -0
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +5 -3
- package/dist/serialization/resources/tts/types/PostedTts.js +5 -3
- package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
- package/dist/serialization/resources/tts/types/PostedUtterance.js +2 -2
- package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
- package/dist/serialization/resources/tts/types/ReturnGeneration.js +3 -3
- package/dist/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
- package/dist/serialization/resources/tts/types/ReturnTts.js +1 -1
- package/dist/serialization/resources/tts/types/Snippet.d.ts +3 -3
- package/dist/serialization/resources/tts/types/Snippet.js +3 -3
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +7 -6
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +7 -6
- package/dist/serialization/resources/tts/types/index.d.ts +1 -0
- package/dist/serialization/resources/tts/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +701 -701
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
- package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
- package/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
- package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
- package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
- package/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
- package/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/Context.js +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
- package/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
- package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserInput.js +1 -1
- package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
- package/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
- package/serialization/resources/empathicVoice/types/index.d.ts +16 -16
- package/serialization/resources/empathicVoice/types/index.js +16 -16
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/tts/types/OctaveVersion.d.ts +10 -0
- package/serialization/resources/tts/types/OctaveVersion.js +41 -0
- package/serialization/resources/tts/types/PostedTts.d.ts +5 -3
- package/serialization/resources/tts/types/PostedTts.js +5 -3
- package/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
- package/serialization/resources/tts/types/PostedUtterance.js +2 -2
- package/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
- package/serialization/resources/tts/types/ReturnGeneration.js +3 -3
- package/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
- package/serialization/resources/tts/types/ReturnTts.js +1 -1
- package/serialization/resources/tts/types/Snippet.d.ts +3 -3
- package/serialization/resources/tts/types/Snippet.js +3 -3
- package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +7 -6
- package/serialization/resources/tts/types/SnippetAudioChunk.js +7 -6
- package/serialization/resources/tts/types/index.d.ts +1 -0
- package/serialization/resources/tts/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -39,10 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.WebSocketError = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.WebSocketError = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("error"),
|
|
43
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
42
|
code: core.serialization.string(),
|
|
45
|
-
|
|
43
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
46
44
|
message: core.serialization.string(),
|
|
47
45
|
requestId: core.serialization.property("request_id", core.serialization.string().optional()),
|
|
46
|
+
slug: core.serialization.string(),
|
|
47
|
+
type: core.serialization.stringLiteral("error"),
|
|
48
48
|
});
|
|
@@ -9,11 +9,11 @@ import { WebhookEventBase } from "./WebhookEventBase";
|
|
|
9
9
|
export declare const WebhookEventChatEnded: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventChatEnded.Raw, Hume.empathicVoice.WebhookEventChatEnded>;
|
|
10
10
|
export declare namespace WebhookEventChatEnded {
|
|
11
11
|
interface Raw extends WebhookEventBase.Raw {
|
|
12
|
-
event_name?: "chat_ended" | null;
|
|
13
|
-
end_time: number;
|
|
14
|
-
duration_seconds: number;
|
|
15
|
-
end_reason: WebhookEventChatStatus.Raw;
|
|
16
12
|
caller_number?: string | null;
|
|
17
13
|
custom_session_id?: string | null;
|
|
14
|
+
duration_seconds: number;
|
|
15
|
+
end_reason: WebhookEventChatStatus.Raw;
|
|
16
|
+
end_time: number;
|
|
17
|
+
event_name?: "chat_ended" | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -42,11 +42,11 @@ const WebhookEventChatStatus_1 = require("./WebhookEventChatStatus");
|
|
|
42
42
|
const WebhookEventBase_1 = require("./WebhookEventBase");
|
|
43
43
|
exports.WebhookEventChatEnded = core.serialization
|
|
44
44
|
.object({
|
|
45
|
-
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_ended").optional()),
|
|
46
|
-
endTime: core.serialization.property("end_time", core.serialization.number()),
|
|
47
|
-
durationSeconds: core.serialization.property("duration_seconds", core.serialization.number()),
|
|
48
|
-
endReason: core.serialization.property("end_reason", WebhookEventChatStatus_1.WebhookEventChatStatus),
|
|
49
45
|
callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
|
|
50
46
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
47
|
+
durationSeconds: core.serialization.property("duration_seconds", core.serialization.number()),
|
|
48
|
+
endReason: core.serialization.property("end_reason", WebhookEventChatStatus_1.WebhookEventChatStatus),
|
|
49
|
+
endTime: core.serialization.property("end_time", core.serialization.number()),
|
|
50
|
+
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_ended").optional()),
|
|
51
51
|
})
|
|
52
52
|
.extend(WebhookEventBase_1.WebhookEventBase);
|
|
@@ -9,10 +9,10 @@ import { WebhookEventBase } from "./WebhookEventBase";
|
|
|
9
9
|
export declare const WebhookEventChatStarted: core.serialization.ObjectSchema<serializers.empathicVoice.WebhookEventChatStarted.Raw, Hume.empathicVoice.WebhookEventChatStarted>;
|
|
10
10
|
export declare namespace WebhookEventChatStarted {
|
|
11
11
|
interface Raw extends WebhookEventBase.Raw {
|
|
12
|
-
event_name?: "chat_started" | null;
|
|
13
|
-
start_time: number;
|
|
14
|
-
chat_start_type: WebhookEventChatStartType.Raw;
|
|
15
12
|
caller_number?: string | null;
|
|
13
|
+
chat_start_type: WebhookEventChatStartType.Raw;
|
|
16
14
|
custom_session_id?: string | null;
|
|
15
|
+
event_name?: "chat_started" | null;
|
|
16
|
+
start_time: number;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -42,10 +42,10 @@ const WebhookEventChatStartType_1 = require("./WebhookEventChatStartType");
|
|
|
42
42
|
const WebhookEventBase_1 = require("./WebhookEventBase");
|
|
43
43
|
exports.WebhookEventChatStarted = core.serialization
|
|
44
44
|
.object({
|
|
45
|
-
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_started").optional()),
|
|
46
|
-
startTime: core.serialization.property("start_time", core.serialization.number()),
|
|
47
|
-
chatStartType: core.serialization.property("chat_start_type", WebhookEventChatStartType_1.WebhookEventChatStartType),
|
|
48
45
|
callerNumber: core.serialization.property("caller_number", core.serialization.string().optional()),
|
|
46
|
+
chatStartType: core.serialization.property("chat_start_type", WebhookEventChatStartType_1.WebhookEventChatStartType),
|
|
49
47
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
48
|
+
eventName: core.serialization.property("event_name", core.serialization.stringLiteral("chat_started").optional()),
|
|
49
|
+
startTime: core.serialization.property("start_time", core.serialization.number()),
|
|
50
50
|
})
|
|
51
51
|
.extend(WebhookEventBase_1.WebhookEventBase);
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
+
export * from "./AssistantEnd";
|
|
1
2
|
export * from "./AssistantInput";
|
|
3
|
+
export * from "./AssistantMessage";
|
|
4
|
+
export * from "./AssistantProsody";
|
|
2
5
|
export * from "./AudioConfiguration";
|
|
3
6
|
export * from "./AudioInput";
|
|
7
|
+
export * from "./AudioOutput";
|
|
4
8
|
export * from "./BuiltInTool";
|
|
5
9
|
export * from "./BuiltinToolConfig";
|
|
10
|
+
export * from "./ChatMessageToolResult";
|
|
11
|
+
export * from "./ChatMessage";
|
|
12
|
+
export * from "./ChatMetadata";
|
|
6
13
|
export * from "./Context";
|
|
7
14
|
export * from "./ContextType";
|
|
15
|
+
export * from "./EmotionScores";
|
|
8
16
|
export * from "./Encoding";
|
|
17
|
+
export * from "./WebSocketError";
|
|
9
18
|
export * from "./ErrorLevel";
|
|
19
|
+
export * from "./Inference";
|
|
20
|
+
export * from "./MillisecondInterval";
|
|
10
21
|
export * from "./PauseAssistantMessage";
|
|
22
|
+
export * from "./ProsodyInference";
|
|
11
23
|
export * from "./ResumeAssistantMessage";
|
|
24
|
+
export * from "./Role";
|
|
12
25
|
export * from "./SessionSettingsVariablesValue";
|
|
13
26
|
export * from "./SessionSettings";
|
|
14
27
|
export * from "./Tool";
|
|
28
|
+
export * from "./ToolCallMessage";
|
|
15
29
|
export * from "./ToolErrorMessage";
|
|
16
30
|
export * from "./ToolResponseMessage";
|
|
17
31
|
export * from "./ToolType";
|
|
18
32
|
export * from "./UserInput";
|
|
19
|
-
export * from "./AssistantEnd";
|
|
20
|
-
export * from "./AssistantMessage";
|
|
21
|
-
export * from "./AssistantProsody";
|
|
22
|
-
export * from "./AudioOutput";
|
|
23
|
-
export * from "./ChatMessageToolResult";
|
|
24
|
-
export * from "./ChatMessage";
|
|
25
|
-
export * from "./ChatMetadata";
|
|
26
|
-
export * from "./EmotionScores";
|
|
27
|
-
export * from "./WebSocketError";
|
|
28
|
-
export * from "./Inference";
|
|
29
|
-
export * from "./MillisecondInterval";
|
|
30
|
-
export * from "./ProsodyInference";
|
|
31
|
-
export * from "./Role";
|
|
32
|
-
export * from "./ToolCallMessage";
|
|
33
33
|
export * from "./UserInterruption";
|
|
34
34
|
export * from "./UserMessage";
|
|
35
35
|
export * from "./JsonMessage";
|
|
@@ -40,12 +40,12 @@ export * from "./ValidationErrorLocItem";
|
|
|
40
40
|
export * from "./ValidationError";
|
|
41
41
|
export * from "./VoiceId";
|
|
42
42
|
export * from "./VoiceName";
|
|
43
|
+
export * from "./WebhookEventBase";
|
|
44
|
+
export * from "./WebhookEvent";
|
|
43
45
|
export * from "./WebhookEventChatEnded";
|
|
44
46
|
export * from "./WebhookEventChatStartType";
|
|
45
47
|
export * from "./WebhookEventChatStarted";
|
|
46
48
|
export * from "./WebhookEventChatStatus";
|
|
47
|
-
export * from "./WebhookEvent";
|
|
48
|
-
export * from "./WebhookEventBase";
|
|
49
49
|
export * from "./ErrorResponse";
|
|
50
50
|
export * from "./ReturnPagedUserDefinedTools";
|
|
51
51
|
export * from "./ReturnUserDefinedToolToolType";
|
|
@@ -14,38 +14,38 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AssistantEnd"), exports);
|
|
17
18
|
__exportStar(require("./AssistantInput"), exports);
|
|
19
|
+
__exportStar(require("./AssistantMessage"), exports);
|
|
20
|
+
__exportStar(require("./AssistantProsody"), exports);
|
|
18
21
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
19
22
|
__exportStar(require("./AudioInput"), exports);
|
|
23
|
+
__exportStar(require("./AudioOutput"), exports);
|
|
20
24
|
__exportStar(require("./BuiltInTool"), exports);
|
|
21
25
|
__exportStar(require("./BuiltinToolConfig"), exports);
|
|
26
|
+
__exportStar(require("./ChatMessageToolResult"), exports);
|
|
27
|
+
__exportStar(require("./ChatMessage"), exports);
|
|
28
|
+
__exportStar(require("./ChatMetadata"), exports);
|
|
22
29
|
__exportStar(require("./Context"), exports);
|
|
23
30
|
__exportStar(require("./ContextType"), exports);
|
|
31
|
+
__exportStar(require("./EmotionScores"), exports);
|
|
24
32
|
__exportStar(require("./Encoding"), exports);
|
|
33
|
+
__exportStar(require("./WebSocketError"), exports);
|
|
25
34
|
__exportStar(require("./ErrorLevel"), exports);
|
|
35
|
+
__exportStar(require("./Inference"), exports);
|
|
36
|
+
__exportStar(require("./MillisecondInterval"), exports);
|
|
26
37
|
__exportStar(require("./PauseAssistantMessage"), exports);
|
|
38
|
+
__exportStar(require("./ProsodyInference"), exports);
|
|
27
39
|
__exportStar(require("./ResumeAssistantMessage"), exports);
|
|
40
|
+
__exportStar(require("./Role"), exports);
|
|
28
41
|
__exportStar(require("./SessionSettingsVariablesValue"), exports);
|
|
29
42
|
__exportStar(require("./SessionSettings"), exports);
|
|
30
43
|
__exportStar(require("./Tool"), exports);
|
|
44
|
+
__exportStar(require("./ToolCallMessage"), exports);
|
|
31
45
|
__exportStar(require("./ToolErrorMessage"), exports);
|
|
32
46
|
__exportStar(require("./ToolResponseMessage"), exports);
|
|
33
47
|
__exportStar(require("./ToolType"), exports);
|
|
34
48
|
__exportStar(require("./UserInput"), exports);
|
|
35
|
-
__exportStar(require("./AssistantEnd"), exports);
|
|
36
|
-
__exportStar(require("./AssistantMessage"), exports);
|
|
37
|
-
__exportStar(require("./AssistantProsody"), exports);
|
|
38
|
-
__exportStar(require("./AudioOutput"), exports);
|
|
39
|
-
__exportStar(require("./ChatMessageToolResult"), exports);
|
|
40
|
-
__exportStar(require("./ChatMessage"), exports);
|
|
41
|
-
__exportStar(require("./ChatMetadata"), exports);
|
|
42
|
-
__exportStar(require("./EmotionScores"), exports);
|
|
43
|
-
__exportStar(require("./WebSocketError"), exports);
|
|
44
|
-
__exportStar(require("./Inference"), exports);
|
|
45
|
-
__exportStar(require("./MillisecondInterval"), exports);
|
|
46
|
-
__exportStar(require("./ProsodyInference"), exports);
|
|
47
|
-
__exportStar(require("./Role"), exports);
|
|
48
|
-
__exportStar(require("./ToolCallMessage"), exports);
|
|
49
49
|
__exportStar(require("./UserInterruption"), exports);
|
|
50
50
|
__exportStar(require("./UserMessage"), exports);
|
|
51
51
|
__exportStar(require("./JsonMessage"), exports);
|
|
@@ -56,12 +56,12 @@ __exportStar(require("./ValidationErrorLocItem"), exports);
|
|
|
56
56
|
__exportStar(require("./ValidationError"), exports);
|
|
57
57
|
__exportStar(require("./VoiceId"), exports);
|
|
58
58
|
__exportStar(require("./VoiceName"), exports);
|
|
59
|
+
__exportStar(require("./WebhookEventBase"), exports);
|
|
60
|
+
__exportStar(require("./WebhookEvent"), exports);
|
|
59
61
|
__exportStar(require("./WebhookEventChatEnded"), exports);
|
|
60
62
|
__exportStar(require("./WebhookEventChatStartType"), exports);
|
|
61
63
|
__exportStar(require("./WebhookEventChatStarted"), exports);
|
|
62
64
|
__exportStar(require("./WebhookEventChatStatus"), exports);
|
|
63
|
-
__exportStar(require("./WebhookEvent"), exports);
|
|
64
|
-
__exportStar(require("./WebhookEventBase"), exports);
|
|
65
65
|
__exportStar(require("./ErrorResponse"), exports);
|
|
66
66
|
__exportStar(require("./ReturnPagedUserDefinedTools"), exports);
|
|
67
67
|
__exportStar(require("./ReturnUserDefinedToolToolType"), exports);
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.expressionMeasurement = exports.
|
|
37
|
-
exports.tts = __importStar(require("./tts"));
|
|
36
|
+
exports.expressionMeasurement = exports.tts = exports.empathicVoice = void 0;
|
|
38
37
|
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
38
|
+
exports.tts = __importStar(require("./tts"));
|
|
39
39
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
@@ -0,0 +1,10 @@
|
|
|
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 OctaveVersion: core.serialization.Schema<serializers.tts.OctaveVersion.Raw, Hume.tts.OctaveVersion>;
|
|
8
|
+
export declare namespace OctaveVersion {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.OctaveVersion = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.OctaveVersion = core.serialization.string();
|
|
@@ -5,17 +5,19 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { PostedContext } from "./PostedContext";
|
|
8
|
-
import { PostedUtterance } from "./PostedUtterance";
|
|
9
8
|
import { Format } from "./Format";
|
|
9
|
+
import { PostedUtterance } from "./PostedUtterance";
|
|
10
|
+
import { OctaveVersion } from "./OctaveVersion";
|
|
10
11
|
export declare const PostedTts: core.serialization.ObjectSchema<serializers.tts.PostedTts.Raw, Hume.tts.PostedTts>;
|
|
11
12
|
export declare namespace PostedTts {
|
|
12
13
|
interface Raw {
|
|
13
14
|
context?: PostedContext.Raw | null;
|
|
14
|
-
utterances: PostedUtterance.Raw[];
|
|
15
|
-
num_generations?: number | null;
|
|
16
15
|
format?: Format.Raw | null;
|
|
16
|
+
num_generations?: number | null;
|
|
17
17
|
split_utterances?: boolean | null;
|
|
18
18
|
strip_headers?: boolean | null;
|
|
19
|
+
utterances: PostedUtterance.Raw[];
|
|
20
|
+
version?: OctaveVersion.Raw | null;
|
|
19
21
|
instant_mode?: boolean | null;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -39,14 +39,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.PostedTts = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const PostedContext_1 = require("./PostedContext");
|
|
42
|
-
const PostedUtterance_1 = require("./PostedUtterance");
|
|
43
42
|
const Format_1 = require("./Format");
|
|
43
|
+
const PostedUtterance_1 = require("./PostedUtterance");
|
|
44
|
+
const OctaveVersion_1 = require("./OctaveVersion");
|
|
44
45
|
exports.PostedTts = core.serialization.object({
|
|
45
46
|
context: PostedContext_1.PostedContext.optional(),
|
|
46
|
-
utterances: core.serialization.list(PostedUtterance_1.PostedUtterance),
|
|
47
|
-
numGenerations: core.serialization.property("num_generations", core.serialization.number().optional()),
|
|
48
47
|
format: Format_1.Format.optional(),
|
|
48
|
+
numGenerations: core.serialization.property("num_generations", core.serialization.number().optional()),
|
|
49
49
|
splitUtterances: core.serialization.property("split_utterances", core.serialization.boolean().optional()),
|
|
50
50
|
stripHeaders: core.serialization.property("strip_headers", core.serialization.boolean().optional()),
|
|
51
|
+
utterances: core.serialization.list(PostedUtterance_1.PostedUtterance),
|
|
52
|
+
version: OctaveVersion_1.OctaveVersion.optional(),
|
|
51
53
|
instantMode: core.serialization.property("instant_mode", core.serialization.boolean().optional()),
|
|
52
54
|
});
|
|
@@ -8,10 +8,10 @@ import { PostedUtteranceVoice } from "./PostedUtteranceVoice";
|
|
|
8
8
|
export declare const PostedUtterance: core.serialization.ObjectSchema<serializers.tts.PostedUtterance.Raw, Hume.tts.PostedUtterance>;
|
|
9
9
|
export declare namespace PostedUtterance {
|
|
10
10
|
interface Raw {
|
|
11
|
-
text: string;
|
|
12
11
|
description?: string | null;
|
|
13
|
-
voice?: PostedUtteranceVoice.Raw | null;
|
|
14
12
|
speed?: number | null;
|
|
13
|
+
text: string;
|
|
15
14
|
trailing_silence?: number | null;
|
|
15
|
+
voice?: PostedUtteranceVoice.Raw | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -40,9 +40,9 @@ exports.PostedUtterance = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const PostedUtteranceVoice_1 = require("./PostedUtteranceVoice");
|
|
42
42
|
exports.PostedUtterance = core.serialization.object({
|
|
43
|
-
text: core.serialization.string(),
|
|
44
43
|
description: core.serialization.string().optional(),
|
|
45
|
-
voice: PostedUtteranceVoice_1.PostedUtteranceVoice.optional(),
|
|
46
44
|
speed: core.serialization.number().optional(),
|
|
45
|
+
text: core.serialization.string(),
|
|
47
46
|
trailingSilence: core.serialization.property("trailing_silence", core.serialization.number().optional()),
|
|
47
|
+
voice: PostedUtteranceVoice_1.PostedUtteranceVoice.optional(),
|
|
48
48
|
});
|
|
@@ -9,11 +9,11 @@ import { Snippet } from "./Snippet";
|
|
|
9
9
|
export declare const ReturnGeneration: core.serialization.ObjectSchema<serializers.tts.ReturnGeneration.Raw, Hume.tts.ReturnGeneration>;
|
|
10
10
|
export declare namespace ReturnGeneration {
|
|
11
11
|
interface Raw {
|
|
12
|
-
|
|
12
|
+
audio: string;
|
|
13
13
|
duration: number;
|
|
14
|
-
file_size: number;
|
|
15
14
|
encoding: AudioEncoding.Raw;
|
|
16
|
-
|
|
15
|
+
file_size: number;
|
|
16
|
+
generation_id: string;
|
|
17
17
|
snippets: Snippet.Raw[][];
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -41,10 +41,10 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const AudioEncoding_1 = require("./AudioEncoding");
|
|
42
42
|
const Snippet_1 = require("./Snippet");
|
|
43
43
|
exports.ReturnGeneration = core.serialization.object({
|
|
44
|
-
|
|
44
|
+
audio: core.serialization.string(),
|
|
45
45
|
duration: core.serialization.number(),
|
|
46
|
-
fileSize: core.serialization.property("file_size", core.serialization.number()),
|
|
47
46
|
encoding: AudioEncoding_1.AudioEncoding,
|
|
48
|
-
|
|
47
|
+
fileSize: core.serialization.property("file_size", core.serialization.number()),
|
|
48
|
+
generationId: core.serialization.property("generation_id", core.serialization.string()),
|
|
49
49
|
snippets: core.serialization.list(core.serialization.list(Snippet_1.Snippet)),
|
|
50
50
|
});
|
|
@@ -8,7 +8,7 @@ import { ReturnGeneration } from "./ReturnGeneration";
|
|
|
8
8
|
export declare const ReturnTts: core.serialization.ObjectSchema<serializers.tts.ReturnTts.Raw, Hume.tts.ReturnTts>;
|
|
9
9
|
export declare namespace ReturnTts {
|
|
10
10
|
interface Raw {
|
|
11
|
-
request_id?: string | null;
|
|
12
11
|
generations: ReturnGeneration.Raw[];
|
|
12
|
+
request_id?: string | null;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,6 +40,6 @@ exports.ReturnTts = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ReturnGeneration_1 = require("./ReturnGeneration");
|
|
42
42
|
exports.ReturnTts = core.serialization.object({
|
|
43
|
-
requestId: core.serialization.property("request_id", core.serialization.string().optional()),
|
|
44
43
|
generations: core.serialization.list(ReturnGeneration_1.ReturnGeneration),
|
|
44
|
+
requestId: core.serialization.property("request_id", core.serialization.string().optional()),
|
|
45
45
|
});
|
|
@@ -7,11 +7,11 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const Snippet: core.serialization.ObjectSchema<serializers.tts.Snippet.Raw, Hume.tts.Snippet>;
|
|
8
8
|
export declare namespace Snippet {
|
|
9
9
|
interface Raw {
|
|
10
|
+
audio: string;
|
|
11
|
+
generation_id: string;
|
|
10
12
|
id: string;
|
|
11
13
|
text: string;
|
|
12
|
-
generation_id: string;
|
|
13
|
-
utterance_index?: number | null;
|
|
14
14
|
transcribed_text?: string | null;
|
|
15
|
-
|
|
15
|
+
utterance_index?: number | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -39,10 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.Snippet = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.Snippet = core.serialization.object({
|
|
42
|
+
audio: core.serialization.string(),
|
|
43
|
+
generationId: core.serialization.property("generation_id", core.serialization.string()),
|
|
42
44
|
id: core.serialization.string(),
|
|
43
45
|
text: core.serialization.string(),
|
|
44
|
-
generationId: core.serialization.property("generation_id", core.serialization.string()),
|
|
45
|
-
utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()),
|
|
46
46
|
transcribedText: core.serialization.property("transcribed_text", core.serialization.string().optional()),
|
|
47
|
-
|
|
47
|
+
utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()),
|
|
48
48
|
});
|
|
@@ -9,16 +9,17 @@ import { Snippet } from "./Snippet";
|
|
|
9
9
|
export declare const SnippetAudioChunk: core.serialization.ObjectSchema<serializers.tts.SnippetAudioChunk.Raw, Hume.tts.SnippetAudioChunk>;
|
|
10
10
|
export declare namespace SnippetAudioChunk {
|
|
11
11
|
interface Raw {
|
|
12
|
-
|
|
12
|
+
audio: string;
|
|
13
|
+
audio_format: AudioFormatType.Raw;
|
|
14
|
+
chunk_index: number;
|
|
13
15
|
generation_id: string;
|
|
16
|
+
is_last_chunk: boolean;
|
|
17
|
+
request_id: string;
|
|
18
|
+
snippet?: Snippet.Raw | null;
|
|
14
19
|
snippet_id: string;
|
|
15
20
|
text: string;
|
|
16
21
|
transcribed_text?: string | null;
|
|
17
|
-
|
|
18
|
-
audio: string;
|
|
19
|
-
audio_format: AudioFormatType.Raw;
|
|
20
|
-
is_last_chunk: boolean;
|
|
22
|
+
type?: "audio" | null;
|
|
21
23
|
utterance_index?: number | null;
|
|
22
|
-
snippet?: Snippet.Raw | null;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -41,15 +41,16 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const AudioFormatType_1 = require("./AudioFormatType");
|
|
42
42
|
const Snippet_1 = require("./Snippet");
|
|
43
43
|
exports.SnippetAudioChunk = core.serialization.object({
|
|
44
|
-
|
|
44
|
+
audio: core.serialization.string(),
|
|
45
|
+
audioFormat: core.serialization.property("audio_format", AudioFormatType_1.AudioFormatType),
|
|
46
|
+
chunkIndex: core.serialization.property("chunk_index", core.serialization.number()),
|
|
45
47
|
generationId: core.serialization.property("generation_id", core.serialization.string()),
|
|
48
|
+
isLastChunk: core.serialization.property("is_last_chunk", core.serialization.boolean()),
|
|
49
|
+
requestId: core.serialization.property("request_id", core.serialization.string()),
|
|
50
|
+
snippet: Snippet_1.Snippet.optional(),
|
|
46
51
|
snippetId: core.serialization.property("snippet_id", core.serialization.string()),
|
|
47
52
|
text: core.serialization.string(),
|
|
48
53
|
transcribedText: core.serialization.property("transcribed_text", core.serialization.string().optional()),
|
|
49
|
-
|
|
50
|
-
audio: core.serialization.string(),
|
|
51
|
-
audioFormat: core.serialization.property("audio_format", AudioFormatType_1.AudioFormatType),
|
|
52
|
-
isLastChunk: core.serialization.property("is_last_chunk", core.serialization.boolean()),
|
|
54
|
+
type: core.serialization.stringLiteral("audio").optional(),
|
|
53
55
|
utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()),
|
|
54
|
-
snippet: Snippet_1.Snippet.optional(),
|
|
55
56
|
});
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./PostedContext"), exports);
|
|
|
31
31
|
__exportStar(require("./Format"), exports);
|
|
32
32
|
__exportStar(require("./PostedTts"), exports);
|
|
33
33
|
__exportStar(require("./ReturnTts"), exports);
|
|
34
|
+
__exportStar(require("./OctaveVersion"), exports);
|
|
34
35
|
__exportStar(require("./ReturnVoice"), exports);
|
|
35
36
|
__exportStar(require("./FormatPcm"), exports);
|
|
36
37
|
__exportStar(require("./Snippet"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.13.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.7";
|
package/version.js
CHANGED