hume 0.13.8 → 0.14.0
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 +13 -9
- package/.mock/definition/empathic-voice/chat.yml +11 -0
- package/.mock/definition/empathic-voice/configs.yml +3 -1
- package/.mock/definition/tts/__package__.yml +147 -78
- package/.mock/definition/tts/streamInput.yml +27 -36
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/api/resources/empathicVoice/types/LanguageModelType.d.ts +3 -1
- package/api/resources/empathicVoice/types/LanguageModelType.js +2 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +4 -4
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
- package/api/resources/tts/client/Client.d.ts +1 -1
- package/api/resources/tts/client/Client.js +1 -1
- package/api/resources/tts/types/MillisecondInterval.d.ts +9 -0
- package/api/resources/tts/types/MillisecondInterval.js +5 -0
- package/api/resources/tts/types/OctaveVersion.d.ts +5 -1
- package/api/resources/tts/types/OctaveVersion.js +5 -0
- package/api/resources/tts/types/PostedTts.d.ts +3 -0
- package/api/resources/tts/types/PublishTts.d.ts +8 -8
- package/api/resources/tts/types/Snippet.d.ts +3 -0
- package/api/resources/tts/types/SnippetAudioChunk.d.ts +0 -1
- package/api/resources/tts/types/Timestamp.d.ts +9 -0
- package/api/resources/tts/types/Timestamp.js +5 -0
- package/api/resources/tts/types/TimestampMessage.d.ts +17 -0
- package/api/resources/tts/types/TimestampMessage.js +5 -0
- package/api/resources/tts/types/TimestampType.d.ts +8 -0
- package/api/resources/tts/types/TimestampType.js +10 -0
- package/api/resources/tts/types/TtsOutput.d.ts +13 -0
- package/api/resources/tts/types/TtsOutput.js +5 -0
- package/api/resources/tts/types/index.d.ts +8 -3
- package/api/resources/tts/types/index.js +8 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/LanguageModelType.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/LanguageModelType.js +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
- package/dist/api/resources/tts/client/Client.d.ts +1 -1
- package/dist/api/resources/tts/client/Client.js +1 -1
- package/dist/api/resources/tts/types/MillisecondInterval.d.ts +9 -0
- package/dist/api/resources/tts/types/MillisecondInterval.js +5 -0
- package/dist/api/resources/tts/types/OctaveVersion.d.ts +5 -1
- package/dist/api/resources/tts/types/OctaveVersion.js +5 -0
- package/dist/api/resources/tts/types/PostedTts.d.ts +3 -0
- package/dist/api/resources/tts/types/PublishTts.d.ts +8 -8
- package/dist/api/resources/tts/types/Snippet.d.ts +3 -0
- package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +0 -1
- package/dist/api/resources/tts/types/Timestamp.d.ts +9 -0
- package/dist/api/resources/tts/types/Timestamp.js +5 -0
- package/dist/api/resources/tts/types/TimestampMessage.d.ts +17 -0
- package/dist/api/resources/tts/types/TimestampMessage.js +5 -0
- package/dist/api/resources/tts/types/TimestampType.d.ts +8 -0
- package/dist/api/resources/tts/types/TimestampType.js +10 -0
- package/dist/api/resources/tts/types/TtsOutput.d.ts +13 -0
- package/dist/api/resources/tts/types/TtsOutput.js +5 -0
- package/dist/api/resources/tts/types/index.d.ts +8 -3
- package/dist/api/resources/tts/types/index.js +8 -3
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
- package/dist/serialization/resources/tts/types/MillisecondInterval.d.ts +13 -0
- package/dist/serialization/resources/tts/types/MillisecondInterval.js +44 -0
- package/dist/serialization/resources/tts/types/OctaveVersion.d.ts +1 -1
- package/dist/serialization/resources/tts/types/OctaveVersion.js +1 -1
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +2 -0
- package/dist/serialization/resources/tts/types/PostedTts.js +2 -0
- package/dist/serialization/resources/tts/types/PublishTts.d.ts +4 -4
- package/dist/serialization/resources/tts/types/PublishTts.js +4 -4
- package/dist/serialization/resources/tts/types/Snippet.d.ts +2 -0
- package/dist/serialization/resources/tts/types/Snippet.js +2 -0
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +0 -1
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +0 -1
- package/dist/serialization/resources/tts/types/Timestamp.d.ts +16 -0
- package/dist/serialization/resources/tts/types/Timestamp.js +47 -0
- package/dist/serialization/resources/tts/types/TimestampMessage.d.ts +16 -0
- package/dist/serialization/resources/tts/types/TimestampMessage.js +47 -0
- package/dist/serialization/resources/tts/types/TimestampType.d.ts +10 -0
- package/dist/serialization/resources/tts/types/TimestampType.js +41 -0
- package/dist/serialization/resources/tts/types/TtsOutput.d.ts +18 -0
- package/dist/serialization/resources/tts/types/TtsOutput.js +51 -0
- package/dist/serialization/resources/tts/types/index.d.ts +8 -3
- package/dist/serialization/resources/tts/types/index.js +8 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +3 -3
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
- package/serialization/resources/tts/types/MillisecondInterval.d.ts +13 -0
- package/serialization/resources/tts/types/MillisecondInterval.js +44 -0
- package/serialization/resources/tts/types/OctaveVersion.d.ts +1 -1
- package/serialization/resources/tts/types/OctaveVersion.js +1 -1
- package/serialization/resources/tts/types/PostedTts.d.ts +2 -0
- package/serialization/resources/tts/types/PostedTts.js +2 -0
- package/serialization/resources/tts/types/PublishTts.d.ts +4 -4
- package/serialization/resources/tts/types/PublishTts.js +4 -4
- package/serialization/resources/tts/types/Snippet.d.ts +2 -0
- package/serialization/resources/tts/types/Snippet.js +2 -0
- package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +0 -1
- package/serialization/resources/tts/types/SnippetAudioChunk.js +0 -1
- package/serialization/resources/tts/types/Timestamp.d.ts +16 -0
- package/serialization/resources/tts/types/Timestamp.js +47 -0
- package/serialization/resources/tts/types/TimestampMessage.d.ts +16 -0
- package/serialization/resources/tts/types/TimestampMessage.js +47 -0
- package/serialization/resources/tts/types/TimestampType.d.ts +10 -0
- package/serialization/resources/tts/types/TimestampType.js +41 -0
- package/serialization/resources/tts/types/TtsOutput.d.ts +18 -0
- package/serialization/resources/tts/types/TtsOutput.js +51 -0
- package/serialization/resources/tts/types/index.d.ts +8 -3
- package/serialization/resources/tts/types/index.js +8 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -47,6 +47,7 @@ exports.LanguageModelType = core.serialization.enum_([
|
|
|
47
47
|
"claude-3-sonnet-20240229",
|
|
48
48
|
"claude-3-haiku-20240307",
|
|
49
49
|
"claude-sonnet-4-20250514",
|
|
50
|
+
"claude-sonnet-4-5-20250929",
|
|
50
51
|
"us.anthropic.claude-3-5-haiku-20241022-v1:0",
|
|
51
52
|
"us.anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
52
53
|
"us.anthropic.claude-3-haiku-20240307-v1:0",
|
|
@@ -94,6 +95,7 @@ exports.LanguageModelType = core.serialization.enum_([
|
|
|
94
95
|
"DeepSeek-R1-Distill-Llama-70B",
|
|
95
96
|
"Llama-4-Maverick-17B-128E-Instruct",
|
|
96
97
|
"Qwen3-32B",
|
|
98
|
+
"grok-4-fast-non-reasoning-latest",
|
|
97
99
|
"ellm",
|
|
98
100
|
"custom-language-model",
|
|
99
101
|
"hume-evi-3-web-search",
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
|
|
8
7
|
import { ReturnLanguageModel } from "./ReturnLanguageModel";
|
|
9
8
|
import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
|
|
10
9
|
import { ReturnTimeoutSpecs } from "./ReturnTimeoutSpecs";
|
|
@@ -14,14 +13,13 @@ import { ReturnEllmModel } from "./ReturnEllmModel";
|
|
|
14
13
|
import { ReturnVoice } from "./ReturnVoice";
|
|
15
14
|
import { ReturnPrompt } from "./ReturnPrompt";
|
|
16
15
|
import { ReturnWebhookSpec } from "./ReturnWebhookSpec";
|
|
16
|
+
import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
|
|
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
20
|
name?: string | null;
|
|
21
21
|
id?: string | null;
|
|
22
22
|
version?: number | null;
|
|
23
|
-
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
24
|
-
version_description?: string | null;
|
|
25
23
|
language_model?: ReturnLanguageModel.Raw | null;
|
|
26
24
|
builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
|
|
27
25
|
evi_version?: string | null;
|
|
@@ -34,5 +32,7 @@ export declare namespace ReturnConfig {
|
|
|
34
32
|
webhooks?: (ReturnWebhookSpec.Raw | null | undefined)[] | null;
|
|
35
33
|
created_on?: number | null;
|
|
36
34
|
modified_on?: number | null;
|
|
35
|
+
version_description?: string | null;
|
|
36
|
+
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -38,7 +38,6 @@ 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 ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
|
|
42
41
|
const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
|
|
43
42
|
const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
|
|
44
43
|
const ReturnTimeoutSpecs_1 = require("./ReturnTimeoutSpecs");
|
|
@@ -48,12 +47,11 @@ const ReturnEllmModel_1 = require("./ReturnEllmModel");
|
|
|
48
47
|
const ReturnVoice_1 = require("./ReturnVoice");
|
|
49
48
|
const ReturnPrompt_1 = require("./ReturnPrompt");
|
|
50
49
|
const ReturnWebhookSpec_1 = require("./ReturnWebhookSpec");
|
|
50
|
+
const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
|
|
51
51
|
exports.ReturnConfig = core.serialization.object({
|
|
52
52
|
name: core.serialization.string().optional(),
|
|
53
53
|
id: core.serialization.string().optional(),
|
|
54
54
|
version: core.serialization.number().optional(),
|
|
55
|
-
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
56
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
57
55
|
languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
|
|
58
56
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
|
|
59
57
|
eviVersion: core.serialization.property("evi_version", core.serialization.string().optional()),
|
|
@@ -66,4 +64,6 @@ exports.ReturnConfig = core.serialization.object({
|
|
|
66
64
|
webhooks: core.serialization.list(ReturnWebhookSpec_1.ReturnWebhookSpec.optional()).optional(),
|
|
67
65
|
createdOn: core.serialization.property("created_on", core.serialization.number().optional()),
|
|
68
66
|
modifiedOn: core.serialization.property("modified_on", core.serialization.number().optional()),
|
|
67
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
68
|
+
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
69
69
|
});
|
|
@@ -12,9 +12,9 @@ export declare namespace ReturnPrompt {
|
|
|
12
12
|
id: string;
|
|
13
13
|
text: string;
|
|
14
14
|
version: number;
|
|
15
|
-
version_description?: string | null;
|
|
16
15
|
version_type: ReturnPromptVersionType.Raw;
|
|
17
16
|
created_on: number;
|
|
18
17
|
modified_on: number;
|
|
18
|
+
version_description?: string | null;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -44,8 +44,8 @@ exports.ReturnPrompt = core.serialization.object({
|
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
text: core.serialization.string(),
|
|
46
46
|
version: core.serialization.number(),
|
|
47
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
48
47
|
versionType: core.serialization.property("version_type", ReturnPromptVersionType_1.ReturnPromptVersionType),
|
|
49
48
|
createdOn: core.serialization.property("created_on", core.serialization.number()),
|
|
50
49
|
modifiedOn: core.serialization.property("modified_on", core.serialization.number()),
|
|
50
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
51
51
|
});
|
|
@@ -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
|
+
export declare const MillisecondInterval: core.serialization.ObjectSchema<serializers.tts.MillisecondInterval.Raw, Hume.tts.MillisecondInterval>;
|
|
8
|
+
export declare namespace MillisecondInterval {
|
|
9
|
+
interface Raw {
|
|
10
|
+
begin: number;
|
|
11
|
+
end: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.MillisecondInterval = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.MillisecondInterval = core.serialization.object({
|
|
42
|
+
begin: core.serialization.number(),
|
|
43
|
+
end: core.serialization.number(),
|
|
44
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const OctaveVersion: core.serialization.Schema<serializers.tts.OctaveVersion.Raw, Hume.tts.OctaveVersion>;
|
|
8
8
|
export declare namespace OctaveVersion {
|
|
9
|
-
type Raw =
|
|
9
|
+
type Raw = "1" | "2";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.OctaveVersion = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.OctaveVersion = core.serialization.
|
|
41
|
+
exports.OctaveVersion = core.serialization.enum_(["1", "2"]);
|
|
@@ -6,6 +6,7 @@ import * as Hume from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { PostedContext } from "./PostedContext";
|
|
8
8
|
import { Format } from "./Format";
|
|
9
|
+
import { TimestampType } from "./TimestampType";
|
|
9
10
|
import { PostedUtterance } from "./PostedUtterance";
|
|
10
11
|
import { OctaveVersion } from "./OctaveVersion";
|
|
11
12
|
export declare const PostedTts: core.serialization.ObjectSchema<serializers.tts.PostedTts.Raw, Hume.tts.PostedTts>;
|
|
@@ -13,6 +14,7 @@ export declare namespace PostedTts {
|
|
|
13
14
|
interface Raw {
|
|
14
15
|
context?: PostedContext.Raw | null;
|
|
15
16
|
format?: Format.Raw | null;
|
|
17
|
+
include_timestamp_types?: TimestampType.Raw[] | null;
|
|
16
18
|
num_generations?: number | null;
|
|
17
19
|
split_utterances?: boolean | null;
|
|
18
20
|
strip_headers?: boolean | null;
|
|
@@ -40,11 +40,13 @@ exports.PostedTts = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const PostedContext_1 = require("./PostedContext");
|
|
42
42
|
const Format_1 = require("./Format");
|
|
43
|
+
const TimestampType_1 = require("./TimestampType");
|
|
43
44
|
const PostedUtterance_1 = require("./PostedUtterance");
|
|
44
45
|
const OctaveVersion_1 = require("./OctaveVersion");
|
|
45
46
|
exports.PostedTts = core.serialization.object({
|
|
46
47
|
context: PostedContext_1.PostedContext.optional(),
|
|
47
48
|
format: Format_1.Format.optional(),
|
|
49
|
+
includeTimestampTypes: core.serialization.property("include_timestamp_types", core.serialization.list(TimestampType_1.TimestampType).optional()),
|
|
48
50
|
numGenerations: core.serialization.property("num_generations", core.serialization.number().optional()),
|
|
49
51
|
splitUtterances: core.serialization.property("split_utterances", core.serialization.boolean().optional()),
|
|
50
52
|
stripHeaders: core.serialization.property("strip_headers", core.serialization.boolean().optional()),
|
|
@@ -8,12 +8,12 @@ import { PostedUtteranceVoice } from "./PostedUtteranceVoice";
|
|
|
8
8
|
export declare const PublishTts: core.serialization.ObjectSchema<serializers.tts.PublishTts.Raw, Hume.tts.PublishTts>;
|
|
9
9
|
export declare namespace PublishTts {
|
|
10
10
|
interface Raw {
|
|
11
|
-
|
|
11
|
+
close?: boolean | null;
|
|
12
12
|
description?: string | null;
|
|
13
|
-
|
|
13
|
+
flush?: boolean | null;
|
|
14
14
|
speed?: number | null;
|
|
15
|
+
text?: string | null;
|
|
15
16
|
trailing_silence?: number | null;
|
|
16
|
-
|
|
17
|
-
close?: boolean | null;
|
|
17
|
+
voice?: PostedUtteranceVoice.Raw | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -40,11 +40,11 @@ exports.PublishTts = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const PostedUtteranceVoice_1 = require("./PostedUtteranceVoice");
|
|
42
42
|
exports.PublishTts = core.serialization.object({
|
|
43
|
-
|
|
43
|
+
close: core.serialization.boolean().optional(),
|
|
44
44
|
description: core.serialization.string().optional(),
|
|
45
|
-
|
|
45
|
+
flush: core.serialization.boolean().optional(),
|
|
46
46
|
speed: core.serialization.number().optional(),
|
|
47
|
+
text: core.serialization.string().optional(),
|
|
47
48
|
trailingSilence: core.serialization.property("trailing_silence", core.serialization.number().optional()),
|
|
48
|
-
|
|
49
|
-
close: core.serialization.boolean().optional(),
|
|
49
|
+
voice: PostedUtteranceVoice_1.PostedUtteranceVoice.optional(),
|
|
50
50
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
+
import { Timestamp } from "./Timestamp";
|
|
7
8
|
export declare const Snippet: core.serialization.ObjectSchema<serializers.tts.Snippet.Raw, Hume.tts.Snippet>;
|
|
8
9
|
export declare namespace Snippet {
|
|
9
10
|
interface Raw {
|
|
@@ -11,6 +12,7 @@ export declare namespace Snippet {
|
|
|
11
12
|
generation_id: string;
|
|
12
13
|
id: string;
|
|
13
14
|
text: string;
|
|
15
|
+
timestamps: Timestamp.Raw[];
|
|
14
16
|
transcribed_text?: string | null;
|
|
15
17
|
utterance_index?: number | null;
|
|
16
18
|
}
|
|
@@ -38,11 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Snippet = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const Timestamp_1 = require("./Timestamp");
|
|
41
42
|
exports.Snippet = core.serialization.object({
|
|
42
43
|
audio: core.serialization.string(),
|
|
43
44
|
generationId: core.serialization.property("generation_id", core.serialization.string()),
|
|
44
45
|
id: core.serialization.string(),
|
|
45
46
|
text: core.serialization.string(),
|
|
47
|
+
timestamps: core.serialization.list(Timestamp_1.Timestamp),
|
|
46
48
|
transcribedText: core.serialization.property("transcribed_text", core.serialization.string().optional()),
|
|
47
49
|
utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()),
|
|
48
50
|
});
|
|
@@ -51,6 +51,5 @@ exports.SnippetAudioChunk = core.serialization.object({
|
|
|
51
51
|
snippetId: core.serialization.property("snippet_id", core.serialization.string()),
|
|
52
52
|
text: core.serialization.string(),
|
|
53
53
|
transcribedText: core.serialization.property("transcribed_text", core.serialization.string().optional()),
|
|
54
|
-
type: core.serialization.stringLiteral("audio").optional(),
|
|
55
54
|
utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()),
|
|
56
55
|
});
|
|
@@ -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 { MillisecondInterval } from "./MillisecondInterval";
|
|
8
|
+
import { TimestampType } from "./TimestampType";
|
|
9
|
+
export declare const Timestamp: core.serialization.ObjectSchema<serializers.tts.Timestamp.Raw, Hume.tts.Timestamp>;
|
|
10
|
+
export declare namespace Timestamp {
|
|
11
|
+
interface Raw {
|
|
12
|
+
text: string;
|
|
13
|
+
time: MillisecondInterval.Raw;
|
|
14
|
+
type: TimestampType.Raw;
|
|
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.Timestamp = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const MillisecondInterval_1 = require("./MillisecondInterval");
|
|
42
|
+
const TimestampType_1 = require("./TimestampType");
|
|
43
|
+
exports.Timestamp = core.serialization.object({
|
|
44
|
+
text: core.serialization.string(),
|
|
45
|
+
time: MillisecondInterval_1.MillisecondInterval,
|
|
46
|
+
type: TimestampType_1.TimestampType,
|
|
47
|
+
});
|
|
@@ -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 { Timestamp } from "./Timestamp";
|
|
8
|
+
export declare const TimestampMessage: core.serialization.ObjectSchema<serializers.tts.TimestampMessage.Raw, Hume.tts.TimestampMessage>;
|
|
9
|
+
export declare namespace TimestampMessage {
|
|
10
|
+
interface Raw {
|
|
11
|
+
generation_id: string;
|
|
12
|
+
request_id: string;
|
|
13
|
+
snippet_id: string;
|
|
14
|
+
timestamp: Timestamp.Raw;
|
|
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.TimestampMessage = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const Timestamp_1 = require("./Timestamp");
|
|
42
|
+
exports.TimestampMessage = core.serialization.object({
|
|
43
|
+
generationId: core.serialization.property("generation_id", core.serialization.string()),
|
|
44
|
+
requestId: core.serialization.property("request_id", core.serialization.string()),
|
|
45
|
+
snippetId: core.serialization.property("snippet_id", core.serialization.string()),
|
|
46
|
+
timestamp: Timestamp_1.Timestamp,
|
|
47
|
+
});
|
|
@@ -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 TimestampType: core.serialization.Schema<serializers.tts.TimestampType.Raw, Hume.tts.TimestampType>;
|
|
8
|
+
export declare namespace TimestampType {
|
|
9
|
+
type Raw = "word" | "phoneme";
|
|
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.TimestampType = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.TimestampType = core.serialization.enum_(["word", "phoneme"]);
|
|
@@ -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 { TimestampMessage } from "./TimestampMessage";
|
|
8
|
+
import { SnippetAudioChunk } from "./SnippetAudioChunk";
|
|
9
|
+
export declare const TtsOutput: core.serialization.Schema<serializers.tts.TtsOutput.Raw, Hume.tts.TtsOutput>;
|
|
10
|
+
export declare namespace TtsOutput {
|
|
11
|
+
type Raw = TtsOutput.Timestamp | TtsOutput.Audio;
|
|
12
|
+
interface Timestamp extends TimestampMessage.Raw {
|
|
13
|
+
type: "timestamp";
|
|
14
|
+
}
|
|
15
|
+
interface Audio extends SnippetAudioChunk.Raw {
|
|
16
|
+
type: "audio";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.TtsOutput = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const TimestampMessage_1 = require("./TimestampMessage");
|
|
42
|
+
const SnippetAudioChunk_1 = require("./SnippetAudioChunk");
|
|
43
|
+
exports.TtsOutput = core.serialization
|
|
44
|
+
.union("type", {
|
|
45
|
+
timestamp: TimestampMessage_1.TimestampMessage,
|
|
46
|
+
audio: SnippetAudioChunk_1.SnippetAudioChunk,
|
|
47
|
+
})
|
|
48
|
+
.transform({
|
|
49
|
+
transform: (value) => value,
|
|
50
|
+
untransform: (value) => value,
|
|
51
|
+
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
export * from "./TtsOutput";
|
|
2
|
+
export * from "./AudioFormatType";
|
|
1
3
|
export * from "./PublishTts";
|
|
4
|
+
export * from "./MillisecondInterval";
|
|
5
|
+
export * from "./TimestampMessage";
|
|
6
|
+
export * from "./SnippetAudioChunk";
|
|
7
|
+
export * from "./Timestamp";
|
|
8
|
+
export * from "./TimestampType";
|
|
2
9
|
export * from "./PostedUtteranceVoiceWithId";
|
|
3
10
|
export * from "./PostedUtteranceVoiceWithName";
|
|
4
11
|
export * from "./VoiceProvider";
|
|
5
12
|
export * from "./PostedUtteranceVoice";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./SnippetAudioChunk";
|
|
13
|
+
export * from "./OctaveVersion";
|
|
8
14
|
export * from "./PostedContextWithGenerationId";
|
|
9
15
|
export * from "./PostedContextWithUtterances";
|
|
10
16
|
export * from "./AudioEncoding";
|
|
@@ -15,7 +21,6 @@ export * from "./PostedContext";
|
|
|
15
21
|
export * from "./Format";
|
|
16
22
|
export * from "./PostedTts";
|
|
17
23
|
export * from "./ReturnTts";
|
|
18
|
-
export * from "./OctaveVersion";
|
|
19
24
|
export * from "./ReturnVoice";
|
|
20
25
|
export * from "./FormatPcm";
|
|
21
26
|
export * from "./Snippet";
|
|
@@ -14,13 +14,19 @@ 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("./TtsOutput"), exports);
|
|
18
|
+
__exportStar(require("./AudioFormatType"), exports);
|
|
17
19
|
__exportStar(require("./PublishTts"), exports);
|
|
20
|
+
__exportStar(require("./MillisecondInterval"), exports);
|
|
21
|
+
__exportStar(require("./TimestampMessage"), exports);
|
|
22
|
+
__exportStar(require("./SnippetAudioChunk"), exports);
|
|
23
|
+
__exportStar(require("./Timestamp"), exports);
|
|
24
|
+
__exportStar(require("./TimestampType"), exports);
|
|
18
25
|
__exportStar(require("./PostedUtteranceVoiceWithId"), exports);
|
|
19
26
|
__exportStar(require("./PostedUtteranceVoiceWithName"), exports);
|
|
20
27
|
__exportStar(require("./VoiceProvider"), exports);
|
|
21
28
|
__exportStar(require("./PostedUtteranceVoice"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./SnippetAudioChunk"), exports);
|
|
29
|
+
__exportStar(require("./OctaveVersion"), exports);
|
|
24
30
|
__exportStar(require("./PostedContextWithGenerationId"), exports);
|
|
25
31
|
__exportStar(require("./PostedContextWithUtterances"), exports);
|
|
26
32
|
__exportStar(require("./AudioEncoding"), exports);
|
|
@@ -31,7 +37,6 @@ __exportStar(require("./PostedContext"), exports);
|
|
|
31
37
|
__exportStar(require("./Format"), exports);
|
|
32
38
|
__exportStar(require("./PostedTts"), exports);
|
|
33
39
|
__exportStar(require("./ReturnTts"), exports);
|
|
34
|
-
__exportStar(require("./OctaveVersion"), exports);
|
|
35
40
|
__exportStar(require("./ReturnVoice"), exports);
|
|
36
41
|
__exportStar(require("./FormatPcm"), exports);
|
|
37
42
|
__exportStar(require("./Snippet"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.0";
|
package/version.js
CHANGED