hume 0.15.15 → 0.15.16
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/InterruptionSpec.d.ts +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/InterruptionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedInterruptionSpec.d.ts +7 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedInterruptionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedTurnDetectionSpec.d.ts +11 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedTurnDetectionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnInterruptionSpec.d.ts +7 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnInterruptionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTurnDetectionSpec.d.ts +11 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnTurnDetectionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/TurnDetectionSpec.d.ts +5 -0
- package/dist/cjs/api/resources/empathicVoice/types/TurnDetectionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/empathicVoice/types/index.js +6 -0
- package/dist/cjs/api/resources/tts/client/requests/ConvertVoiceFileRequest.d.ts +1 -0
- package/dist/cjs/api/resources/tts/client/requests/ConvertVoiceJsonRequest.d.ts +1 -0
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +7 -0
- package/dist/cjs/core/url/join.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +4 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +4 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +4 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +4 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/InterruptionSpec.d.ts +9 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/InterruptionSpec.js +41 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedInterruptionSpec.d.ts +9 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedInterruptionSpec.js +41 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedTurnDetectionSpec.d.ts +11 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedTurnDetectionSpec.js +43 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +4 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnConfig.js +4 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnInterruptionSpec.d.ts +9 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnInterruptionSpec.js +41 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTurnDetectionSpec.d.ts +11 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnTurnDetectionSpec.js +43 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/TurnDetectionSpec.d.ts +11 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/TurnDetectionSpec.js +43 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/index.d.ts +6 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/InterruptionSpec.d.mts +3 -0
- package/dist/esm/api/resources/empathicVoice/types/InterruptionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedInterruptionSpec.d.mts +7 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedInterruptionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedTurnDetectionSpec.d.mts +11 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedTurnDetectionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnInterruptionSpec.d.mts +7 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnInterruptionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnTurnDetectionSpec.d.mts +11 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnTurnDetectionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/TurnDetectionSpec.d.mts +5 -0
- package/dist/esm/api/resources/empathicVoice/types/TurnDetectionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/index.d.mts +6 -0
- package/dist/esm/api/resources/empathicVoice/types/index.mjs +6 -0
- package/dist/esm/api/resources/tts/client/requests/ConvertVoiceFileRequest.d.mts +1 -0
- package/dist/esm/api/resources/tts/client/requests/ConvertVoiceJsonRequest.d.mts +1 -0
- package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +7 -0
- package/dist/esm/core/url/join.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +4 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.mjs +4 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +4 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.mjs +4 -0
- package/dist/esm/serialization/resources/empathicVoice/types/InterruptionSpec.d.mts +9 -0
- package/dist/esm/serialization/resources/empathicVoice/types/InterruptionSpec.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedInterruptionSpec.d.mts +9 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedInterruptionSpec.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedTurnDetectionSpec.d.mts +11 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedTurnDetectionSpec.mjs +7 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.d.mts +4 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnConfig.mjs +4 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnInterruptionSpec.d.mts +9 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnInterruptionSpec.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnTurnDetectionSpec.d.mts +11 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnTurnDetectionSpec.mjs +7 -0
- package/dist/esm/serialization/resources/empathicVoice/types/TurnDetectionSpec.d.mts +11 -0
- package/dist/esm/serialization/resources/empathicVoice/types/TurnDetectionSpec.mjs +7 -0
- package/dist/esm/serialization/resources/empathicVoice/types/index.d.mts +6 -0
- package/dist/esm/serialization/resources/empathicVoice/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +34 -34
- package/reference.md +704 -704
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "hume",
|
|
46
|
-
"X-Fern-SDK-Version": "0.15.
|
|
47
|
-
"User-Agent": "hume/0.15.
|
|
46
|
+
"X-Fern-SDK-Version": "0.15.16",
|
|
47
|
+
"User-Agent": "hume/0.15.16",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export declare namespace HumeClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class HumeClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<HumeClient.Options>;
|
|
13
|
-
protected _tts: TtsClient | undefined;
|
|
14
13
|
protected _empathicVoice: EmpathicVoiceClient | undefined;
|
|
14
|
+
protected _tts: TtsClient | undefined;
|
|
15
15
|
protected _expressionMeasurement: ExpressionMeasurementClient | undefined;
|
|
16
16
|
constructor(options?: HumeClient.Options);
|
|
17
|
-
get tts(): TtsClient;
|
|
18
17
|
get empathicVoice(): EmpathicVoiceClient;
|
|
18
|
+
get tts(): TtsClient;
|
|
19
19
|
get expressionMeasurement(): ExpressionMeasurementClient;
|
|
20
20
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -10,14 +10,14 @@ class HumeClient {
|
|
|
10
10
|
constructor(options = {}) {
|
|
11
11
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
12
12
|
}
|
|
13
|
-
get tts() {
|
|
14
|
-
var _a;
|
|
15
|
-
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.TtsClient(this._options)));
|
|
16
|
-
}
|
|
17
13
|
get empathicVoice() {
|
|
18
14
|
var _a;
|
|
19
15
|
return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoiceClient(this._options)));
|
|
20
16
|
}
|
|
17
|
+
get tts() {
|
|
18
|
+
var _a;
|
|
19
|
+
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.TtsClient(this._options)));
|
|
20
|
+
}
|
|
21
21
|
get expressionMeasurement() {
|
|
22
22
|
var _a;
|
|
23
23
|
return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_js_2.ExpressionMeasurementClient(this._options)));
|
package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface PostedConfig {
|
|
|
40
40
|
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
41
41
|
/** EVI version to use. Only versions `3` and `4-mini` are supported. */
|
|
42
42
|
eviVersion: string;
|
|
43
|
+
interruption?: Hume.empathicVoice.PostedInterruptionSpec;
|
|
43
44
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
44
45
|
/** Name applied to all versions of a particular Config. */
|
|
45
46
|
name: string;
|
|
@@ -48,6 +49,7 @@ export interface PostedConfig {
|
|
|
48
49
|
timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
|
|
49
50
|
/** Tool specification for a Config. */
|
|
50
51
|
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
52
|
+
turnDetection?: Hume.empathicVoice.PostedTurnDetectionSpec;
|
|
51
53
|
/** An optional description of the Config version. */
|
|
52
54
|
versionDescription?: string;
|
|
53
55
|
/** A voice specification associated with this Config. */
|
|
@@ -43,12 +43,14 @@ export interface PostedConfigVersion {
|
|
|
43
43
|
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
44
44
|
/** EVI version to use. Only versions `3` and `4-mini` are supported. */
|
|
45
45
|
eviVersion: string;
|
|
46
|
+
interruption?: Hume.empathicVoice.PostedInterruptionSpec;
|
|
46
47
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
47
48
|
nudges?: Hume.empathicVoice.PostedNudgeSpec;
|
|
48
49
|
prompt?: Hume.empathicVoice.PostedConfigPromptSpec;
|
|
49
50
|
timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
|
|
50
51
|
/** Tool specification for a Config. */
|
|
51
52
|
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
53
|
+
turnDetection?: Hume.empathicVoice.PostedTurnDetectionSpec;
|
|
52
54
|
/** An optional description of the Config version. */
|
|
53
55
|
versionDescription?: string;
|
|
54
56
|
voice?: Hume.empathicVoice.VoiceRef;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An interruption specification posted to the server
|
|
3
|
+
*/
|
|
4
|
+
export interface PostedInterruptionSpec {
|
|
5
|
+
/** How long the user must speak while the agent is outputting audio before the agent stops and yields the floor. Lower values make the agent more responsive to the user speaking up, but increase the chance of noise or backchannels stopping the agent unnecessarily. Higher values make the agent harder to interrupt, allowing it to finish more of its response before yielding. Accepts values between 50 and 2000 milliseconds. */
|
|
6
|
+
minInterruptionMs?: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A turn detection specification posted to the server
|
|
3
|
+
*/
|
|
4
|
+
export interface PostedTurnDetectionSpec {
|
|
5
|
+
/** How long the user must be silent before EVI considers their turn complete and begins generating a response. Lower values make conversations feel snappier but increase the chance of the agent responding during a mid-thought pause. Higher values give users more room to pause and collect their thoughts before the agent responds. Accepts values between 500 and 3000 milliseconds. */
|
|
6
|
+
endOfTurnSilenceMs?: number;
|
|
7
|
+
/** The duration of audio captured before the detected start of speech. This ensures the beginning of an utterance is not clipped. Accepts values between 0 and 1000 milliseconds. */
|
|
8
|
+
prefixPaddingMs?: number;
|
|
9
|
+
/** How confident the system must be that audio contains speech before it begins processing. Lower values increase sensitivity, capturing softer speech at the cost of more noise-triggered processing. Higher values require clearer, louder audio to register as speech. Accepts values between 0.0 and 1.0. */
|
|
10
|
+
speechDetectionThreshold?: number;
|
|
11
|
+
}
|
|
@@ -17,6 +17,7 @@ export interface ReturnConfig {
|
|
|
17
17
|
eviVersion?: string;
|
|
18
18
|
/** Identifier for a Config. Formatted as a UUID. */
|
|
19
19
|
id?: string;
|
|
20
|
+
interruption?: Hume.empathicVoice.ReturnInterruptionSpec;
|
|
20
21
|
languageModel?: Hume.empathicVoice.ReturnLanguageModel;
|
|
21
22
|
/** Time at which the Config was last modified. Measured in seconds since the Unix epoch. */
|
|
22
23
|
modifiedOn?: number;
|
|
@@ -27,6 +28,7 @@ export interface ReturnConfig {
|
|
|
27
28
|
timeouts?: Hume.empathicVoice.ReturnTimeoutSpecs;
|
|
28
29
|
/** List of user-defined tools associated with this Config. */
|
|
29
30
|
tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
31
|
+
turnDetection?: Hume.empathicVoice.ReturnTurnDetectionSpec;
|
|
30
32
|
/**
|
|
31
33
|
* Version number for a Config.
|
|
32
34
|
*
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An interruption configuration returned from the server
|
|
3
|
+
*/
|
|
4
|
+
export interface ReturnInterruptionSpec {
|
|
5
|
+
/** How long the user must speak while the agent is outputting audio before the agent stops and yields the floor. Lower values make the agent more responsive to the user speaking up, but increase the chance of noise or backchannels stopping the agent unnecessarily. Higher values make the agent harder to interrupt, allowing it to finish more of its response before yielding. Accepts values between 50 and 2000 milliseconds. */
|
|
6
|
+
minInterruptionMs?: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A turn detection configuration returned from the server
|
|
3
|
+
*/
|
|
4
|
+
export interface ReturnTurnDetectionSpec {
|
|
5
|
+
/** How long the user must be silent before EVI considers their turn complete and begins generating a response. Lower values make conversations feel snappier but increase the chance of the agent responding during a mid-thought pause. Higher values give users more room to pause and collect their thoughts before the agent responds. Accepts values between 500 and 3000 milliseconds. */
|
|
6
|
+
endOfTurnSilenceMs?: number;
|
|
7
|
+
/** The duration of audio captured before the detected start of speech. This ensures the beginning of an utterance is not clipped. Accepts values between 0 and 1000 milliseconds. */
|
|
8
|
+
prefixPaddingMs?: number;
|
|
9
|
+
/** How confident the system must be that audio contains speech before it begins processing. Lower values increase sensitivity, capturing softer speech at the cost of more noise-triggered processing. Higher values require clearer, louder audio to register as speech. Accepts values between 0.0 and 1.0. */
|
|
10
|
+
speechDetectionThreshold?: number;
|
|
11
|
+
}
|
|
@@ -23,6 +23,7 @@ export * from "./ErrorLevel.js";
|
|
|
23
23
|
export * from "./ErrorResponse.js";
|
|
24
24
|
export * from "./HttpValidationError.js";
|
|
25
25
|
export * from "./Inference.js";
|
|
26
|
+
export * from "./InterruptionSpec.js";
|
|
26
27
|
export * from "./JsonMessage.js";
|
|
27
28
|
export * from "./LanguageModelType.js";
|
|
28
29
|
export * from "./MillisecondInterval.js";
|
|
@@ -34,12 +35,14 @@ export * from "./PostedConfigPromptSpec.js";
|
|
|
34
35
|
export * from "./PostedEllmModel.js";
|
|
35
36
|
export * from "./PostedEventMessageSpec.js";
|
|
36
37
|
export * from "./PostedEventMessageSpecs.js";
|
|
38
|
+
export * from "./PostedInterruptionSpec.js";
|
|
37
39
|
export * from "./PostedLanguageModel.js";
|
|
38
40
|
export * from "./PostedNudgeSpec.js";
|
|
39
41
|
export * from "./PostedTimeoutSpec.js";
|
|
40
42
|
export * from "./PostedTimeoutSpecs.js";
|
|
41
43
|
export * from "./PostedTimeoutSpecsInactivity.js";
|
|
42
44
|
export * from "./PostedTimeoutSpecsMaxDuration.js";
|
|
45
|
+
export * from "./PostedTurnDetectionSpec.js";
|
|
43
46
|
export * from "./PostedUserDefinedToolSpec.js";
|
|
44
47
|
export * from "./PostedWebhookEventType.js";
|
|
45
48
|
export * from "./PostedWebhookSpec.js";
|
|
@@ -70,6 +73,7 @@ export * from "./ReturnConfigSpec.js";
|
|
|
70
73
|
export * from "./ReturnEllmModel.js";
|
|
71
74
|
export * from "./ReturnEventMessageSpec.js";
|
|
72
75
|
export * from "./ReturnEventMessageSpecs.js";
|
|
76
|
+
export * from "./ReturnInterruptionSpec.js";
|
|
73
77
|
export * from "./ReturnLanguageModel.js";
|
|
74
78
|
export * from "./ReturnNudgeSpec.js";
|
|
75
79
|
export * from "./ReturnPagedChatGroups.js";
|
|
@@ -83,6 +87,7 @@ export * from "./ReturnPrompt.js";
|
|
|
83
87
|
export * from "./ReturnPromptVersionType.js";
|
|
84
88
|
export * from "./ReturnTimeoutSpec.js";
|
|
85
89
|
export * from "./ReturnTimeoutSpecs.js";
|
|
90
|
+
export * from "./ReturnTurnDetectionSpec.js";
|
|
86
91
|
export * from "./ReturnUserDefinedTool.js";
|
|
87
92
|
export * from "./ReturnUserDefinedToolToolType.js";
|
|
88
93
|
export * from "./ReturnUserDefinedToolVersionType.js";
|
|
@@ -98,6 +103,7 @@ export * from "./ToolCallMessage.js";
|
|
|
98
103
|
export * from "./ToolErrorMessage.js";
|
|
99
104
|
export * from "./ToolResponseMessage.js";
|
|
100
105
|
export * from "./ToolType.js";
|
|
106
|
+
export * from "./TurnDetectionSpec.js";
|
|
101
107
|
export * from "./UserInput.js";
|
|
102
108
|
export * from "./UserInterruption.js";
|
|
103
109
|
export * from "./UserMessage.js";
|
|
@@ -39,6 +39,7 @@ __exportStar(require("./ErrorLevel.js"), exports);
|
|
|
39
39
|
__exportStar(require("./ErrorResponse.js"), exports);
|
|
40
40
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
41
41
|
__exportStar(require("./Inference.js"), exports);
|
|
42
|
+
__exportStar(require("./InterruptionSpec.js"), exports);
|
|
42
43
|
__exportStar(require("./JsonMessage.js"), exports);
|
|
43
44
|
__exportStar(require("./LanguageModelType.js"), exports);
|
|
44
45
|
__exportStar(require("./MillisecondInterval.js"), exports);
|
|
@@ -50,12 +51,14 @@ __exportStar(require("./PostedConfigPromptSpec.js"), exports);
|
|
|
50
51
|
__exportStar(require("./PostedEllmModel.js"), exports);
|
|
51
52
|
__exportStar(require("./PostedEventMessageSpec.js"), exports);
|
|
52
53
|
__exportStar(require("./PostedEventMessageSpecs.js"), exports);
|
|
54
|
+
__exportStar(require("./PostedInterruptionSpec.js"), exports);
|
|
53
55
|
__exportStar(require("./PostedLanguageModel.js"), exports);
|
|
54
56
|
__exportStar(require("./PostedNudgeSpec.js"), exports);
|
|
55
57
|
__exportStar(require("./PostedTimeoutSpec.js"), exports);
|
|
56
58
|
__exportStar(require("./PostedTimeoutSpecs.js"), exports);
|
|
57
59
|
__exportStar(require("./PostedTimeoutSpecsInactivity.js"), exports);
|
|
58
60
|
__exportStar(require("./PostedTimeoutSpecsMaxDuration.js"), exports);
|
|
61
|
+
__exportStar(require("./PostedTurnDetectionSpec.js"), exports);
|
|
59
62
|
__exportStar(require("./PostedUserDefinedToolSpec.js"), exports);
|
|
60
63
|
__exportStar(require("./PostedWebhookEventType.js"), exports);
|
|
61
64
|
__exportStar(require("./PostedWebhookSpec.js"), exports);
|
|
@@ -86,6 +89,7 @@ __exportStar(require("./ReturnConfigSpec.js"), exports);
|
|
|
86
89
|
__exportStar(require("./ReturnEllmModel.js"), exports);
|
|
87
90
|
__exportStar(require("./ReturnEventMessageSpec.js"), exports);
|
|
88
91
|
__exportStar(require("./ReturnEventMessageSpecs.js"), exports);
|
|
92
|
+
__exportStar(require("./ReturnInterruptionSpec.js"), exports);
|
|
89
93
|
__exportStar(require("./ReturnLanguageModel.js"), exports);
|
|
90
94
|
__exportStar(require("./ReturnNudgeSpec.js"), exports);
|
|
91
95
|
__exportStar(require("./ReturnPagedChatGroups.js"), exports);
|
|
@@ -99,6 +103,7 @@ __exportStar(require("./ReturnPrompt.js"), exports);
|
|
|
99
103
|
__exportStar(require("./ReturnPromptVersionType.js"), exports);
|
|
100
104
|
__exportStar(require("./ReturnTimeoutSpec.js"), exports);
|
|
101
105
|
__exportStar(require("./ReturnTimeoutSpecs.js"), exports);
|
|
106
|
+
__exportStar(require("./ReturnTurnDetectionSpec.js"), exports);
|
|
102
107
|
__exportStar(require("./ReturnUserDefinedTool.js"), exports);
|
|
103
108
|
__exportStar(require("./ReturnUserDefinedToolToolType.js"), exports);
|
|
104
109
|
__exportStar(require("./ReturnUserDefinedToolVersionType.js"), exports);
|
|
@@ -114,6 +119,7 @@ __exportStar(require("./ToolCallMessage.js"), exports);
|
|
|
114
119
|
__exportStar(require("./ToolErrorMessage.js"), exports);
|
|
115
120
|
__exportStar(require("./ToolResponseMessage.js"), exports);
|
|
116
121
|
__exportStar(require("./ToolType.js"), exports);
|
|
122
|
+
__exportStar(require("./TurnDetectionSpec.js"), exports);
|
|
117
123
|
__exportStar(require("./UserInput.js"), exports);
|
|
118
124
|
__exportStar(require("./UserInterruption.js"), exports);
|
|
119
125
|
__exportStar(require("./UserMessage.js"), exports);
|
|
@@ -3,6 +3,7 @@ import type * as Hume from "../../../../index.js";
|
|
|
3
3
|
export interface ConvertVoiceFileRequest {
|
|
4
4
|
/** If enabled, the audio for all the chunks of a generation, once concatenated together, will constitute a single audio file. Otherwise, if disabled, each chunk's audio will be its own audio file, each with its own headers (if applicable). */
|
|
5
5
|
stripHeaders?: boolean;
|
|
6
|
+
/** Audio file containing speech to be converted to the target voice. Supported formats include `MP3`, `WAV`, `M4A`, and `OGG`. */
|
|
6
7
|
audio: core.file.Uploadable;
|
|
7
8
|
/** Utterances to use as context for generating consistent speech style and prosody across multiple requests. These will not be converted to speech output. */
|
|
8
9
|
context?: Hume.tts.PostedContext;
|
|
@@ -7,6 +7,7 @@ import type * as Hume from "../../../../index.js";
|
|
|
7
7
|
export interface ConvertVoiceJsonRequest {
|
|
8
8
|
/** If enabled, the audio for all the chunks of a generation, once concatenated together, will constitute a single audio file. Otherwise, if disabled, each chunk's audio will be its own audio file, each with its own headers (if applicable). */
|
|
9
9
|
stripHeaders?: boolean;
|
|
10
|
+
/** Audio file containing speech to be converted to the target voice. Supported formats include `MP3`, `WAV`, `M4A`, and `OGG`. */
|
|
10
11
|
audio?: core.file.Uploadable | undefined;
|
|
11
12
|
/** Utterances to use as context for generating consistent speech style and prosody across multiple requests. These will not be converted to speech output. */
|
|
12
13
|
context?: Hume.tts.PostedContext;
|
|
@@ -26,5 +26,12 @@ export interface VoicesListRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
pageSize?: number;
|
|
28
28
|
ascendingOrder?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Filter voices by tag using `TAG:TAG_VALUE` syntax.
|
|
31
|
+
*
|
|
32
|
+
* For example, `GENDER:Male` returns only voices with the `GENDER` tag set to `Male`. Tag types are case-insensitive; tag values are case-sensitive.
|
|
33
|
+
*
|
|
34
|
+
* Multiple values are ANDed together; for example, `[GENDER:Male, LANGUAGE:Japanese]` returns only voices matching both criteria.
|
|
35
|
+
*/
|
|
29
36
|
filterTag?: string | string[];
|
|
30
37
|
}
|
|
@@ -5,9 +5,11 @@ import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool.js";
|
|
|
5
5
|
import { PostedConfigPromptSpec } from "../../../../types/PostedConfigPromptSpec.js";
|
|
6
6
|
import { PostedEllmModel } from "../../../../types/PostedEllmModel.js";
|
|
7
7
|
import { PostedEventMessageSpecs } from "../../../../types/PostedEventMessageSpecs.js";
|
|
8
|
+
import { PostedInterruptionSpec } from "../../../../types/PostedInterruptionSpec.js";
|
|
8
9
|
import { PostedLanguageModel } from "../../../../types/PostedLanguageModel.js";
|
|
9
10
|
import { PostedNudgeSpec } from "../../../../types/PostedNudgeSpec.js";
|
|
10
11
|
import { PostedTimeoutSpecs } from "../../../../types/PostedTimeoutSpecs.js";
|
|
12
|
+
import { PostedTurnDetectionSpec } from "../../../../types/PostedTurnDetectionSpec.js";
|
|
11
13
|
import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec.js";
|
|
12
14
|
import { PostedWebhookSpec } from "../../../../types/PostedWebhookSpec.js";
|
|
13
15
|
import { VoiceRef } from "../../../../types/VoiceRef.js";
|
|
@@ -18,12 +20,14 @@ export declare namespace PostedConfig {
|
|
|
18
20
|
ellm_model?: PostedEllmModel.Raw | null;
|
|
19
21
|
event_messages?: PostedEventMessageSpecs.Raw | null;
|
|
20
22
|
evi_version: string;
|
|
23
|
+
interruption?: PostedInterruptionSpec.Raw | null;
|
|
21
24
|
language_model?: PostedLanguageModel.Raw | null;
|
|
22
25
|
name: string;
|
|
23
26
|
nudges?: PostedNudgeSpec.Raw | null;
|
|
24
27
|
prompt?: PostedConfigPromptSpec.Raw | null;
|
|
25
28
|
timeouts?: PostedTimeoutSpecs.Raw | null;
|
|
26
29
|
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
30
|
+
turn_detection?: PostedTurnDetectionSpec.Raw | null;
|
|
27
31
|
version_description?: string | null;
|
|
28
32
|
voice?: VoiceRef.Raw | null;
|
|
29
33
|
webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
|
|
@@ -40,9 +40,11 @@ const PostedBuiltinTool_js_1 = require("../../../../types/PostedBuiltinTool.js")
|
|
|
40
40
|
const PostedConfigPromptSpec_js_1 = require("../../../../types/PostedConfigPromptSpec.js");
|
|
41
41
|
const PostedEllmModel_js_1 = require("../../../../types/PostedEllmModel.js");
|
|
42
42
|
const PostedEventMessageSpecs_js_1 = require("../../../../types/PostedEventMessageSpecs.js");
|
|
43
|
+
const PostedInterruptionSpec_js_1 = require("../../../../types/PostedInterruptionSpec.js");
|
|
43
44
|
const PostedLanguageModel_js_1 = require("../../../../types/PostedLanguageModel.js");
|
|
44
45
|
const PostedNudgeSpec_js_1 = require("../../../../types/PostedNudgeSpec.js");
|
|
45
46
|
const PostedTimeoutSpecs_js_1 = require("../../../../types/PostedTimeoutSpecs.js");
|
|
47
|
+
const PostedTurnDetectionSpec_js_1 = require("../../../../types/PostedTurnDetectionSpec.js");
|
|
46
48
|
const PostedUserDefinedToolSpec_js_1 = require("../../../../types/PostedUserDefinedToolSpec.js");
|
|
47
49
|
const PostedWebhookSpec_js_1 = require("../../../../types/PostedWebhookSpec.js");
|
|
48
50
|
const VoiceRef_js_1 = require("../../../../types/VoiceRef.js");
|
|
@@ -51,12 +53,14 @@ exports.PostedConfig = core.serialization.object({
|
|
|
51
53
|
ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
|
|
52
54
|
eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_js_1.PostedEventMessageSpecs.optional()),
|
|
53
55
|
eviVersion: core.serialization.property("evi_version", core.serialization.string()),
|
|
56
|
+
interruption: PostedInterruptionSpec_js_1.PostedInterruptionSpec.optional(),
|
|
54
57
|
languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
|
|
55
58
|
name: core.serialization.string(),
|
|
56
59
|
nudges: PostedNudgeSpec_js_1.PostedNudgeSpec.optional(),
|
|
57
60
|
prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
|
|
58
61
|
timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
|
|
59
62
|
tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
63
|
+
turnDetection: core.serialization.property("turn_detection", PostedTurnDetectionSpec_js_1.PostedTurnDetectionSpec.optional()),
|
|
60
64
|
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
61
65
|
voice: VoiceRef_js_1.VoiceRef.optional(),
|
|
62
66
|
webhooks: core.serialization.list(PostedWebhookSpec_js_1.PostedWebhookSpec.optional()).optional(),
|
|
@@ -5,9 +5,11 @@ import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool.js";
|
|
|
5
5
|
import { PostedConfigPromptSpec } from "../../../../types/PostedConfigPromptSpec.js";
|
|
6
6
|
import { PostedEllmModel } from "../../../../types/PostedEllmModel.js";
|
|
7
7
|
import { PostedEventMessageSpecs } from "../../../../types/PostedEventMessageSpecs.js";
|
|
8
|
+
import { PostedInterruptionSpec } from "../../../../types/PostedInterruptionSpec.js";
|
|
8
9
|
import { PostedLanguageModel } from "../../../../types/PostedLanguageModel.js";
|
|
9
10
|
import { PostedNudgeSpec } from "../../../../types/PostedNudgeSpec.js";
|
|
10
11
|
import { PostedTimeoutSpecs } from "../../../../types/PostedTimeoutSpecs.js";
|
|
12
|
+
import { PostedTurnDetectionSpec } from "../../../../types/PostedTurnDetectionSpec.js";
|
|
11
13
|
import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec.js";
|
|
12
14
|
import { PostedWebhookSpec } from "../../../../types/PostedWebhookSpec.js";
|
|
13
15
|
import { VoiceRef } from "../../../../types/VoiceRef.js";
|
|
@@ -18,11 +20,13 @@ export declare namespace PostedConfigVersion {
|
|
|
18
20
|
ellm_model?: PostedEllmModel.Raw | null;
|
|
19
21
|
event_messages?: PostedEventMessageSpecs.Raw | null;
|
|
20
22
|
evi_version: string;
|
|
23
|
+
interruption?: PostedInterruptionSpec.Raw | null;
|
|
21
24
|
language_model?: PostedLanguageModel.Raw | null;
|
|
22
25
|
nudges?: PostedNudgeSpec.Raw | null;
|
|
23
26
|
prompt?: PostedConfigPromptSpec.Raw | null;
|
|
24
27
|
timeouts?: PostedTimeoutSpecs.Raw | null;
|
|
25
28
|
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
29
|
+
turn_detection?: PostedTurnDetectionSpec.Raw | null;
|
|
26
30
|
version_description?: string | null;
|
|
27
31
|
voice?: VoiceRef.Raw | null;
|
|
28
32
|
webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
|
|
@@ -40,9 +40,11 @@ const PostedBuiltinTool_js_1 = require("../../../../types/PostedBuiltinTool.js")
|
|
|
40
40
|
const PostedConfigPromptSpec_js_1 = require("../../../../types/PostedConfigPromptSpec.js");
|
|
41
41
|
const PostedEllmModel_js_1 = require("../../../../types/PostedEllmModel.js");
|
|
42
42
|
const PostedEventMessageSpecs_js_1 = require("../../../../types/PostedEventMessageSpecs.js");
|
|
43
|
+
const PostedInterruptionSpec_js_1 = require("../../../../types/PostedInterruptionSpec.js");
|
|
43
44
|
const PostedLanguageModel_js_1 = require("../../../../types/PostedLanguageModel.js");
|
|
44
45
|
const PostedNudgeSpec_js_1 = require("../../../../types/PostedNudgeSpec.js");
|
|
45
46
|
const PostedTimeoutSpecs_js_1 = require("../../../../types/PostedTimeoutSpecs.js");
|
|
47
|
+
const PostedTurnDetectionSpec_js_1 = require("../../../../types/PostedTurnDetectionSpec.js");
|
|
46
48
|
const PostedUserDefinedToolSpec_js_1 = require("../../../../types/PostedUserDefinedToolSpec.js");
|
|
47
49
|
const PostedWebhookSpec_js_1 = require("../../../../types/PostedWebhookSpec.js");
|
|
48
50
|
const VoiceRef_js_1 = require("../../../../types/VoiceRef.js");
|
|
@@ -51,11 +53,13 @@ exports.PostedConfigVersion = core.serialization.object({
|
|
|
51
53
|
ellmModel: core.serialization.property("ellm_model", PostedEllmModel_js_1.PostedEllmModel.optional()),
|
|
52
54
|
eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_js_1.PostedEventMessageSpecs.optional()),
|
|
53
55
|
eviVersion: core.serialization.property("evi_version", core.serialization.string()),
|
|
56
|
+
interruption: PostedInterruptionSpec_js_1.PostedInterruptionSpec.optional(),
|
|
54
57
|
languageModel: core.serialization.property("language_model", PostedLanguageModel_js_1.PostedLanguageModel.optional()),
|
|
55
58
|
nudges: PostedNudgeSpec_js_1.PostedNudgeSpec.optional(),
|
|
56
59
|
prompt: PostedConfigPromptSpec_js_1.PostedConfigPromptSpec.optional(),
|
|
57
60
|
timeouts: PostedTimeoutSpecs_js_1.PostedTimeoutSpecs.optional(),
|
|
58
61
|
tools: core.serialization.list(PostedUserDefinedToolSpec_js_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
62
|
+
turnDetection: core.serialization.property("turn_detection", PostedTurnDetectionSpec_js_1.PostedTurnDetectionSpec.optional()),
|
|
59
63
|
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
60
64
|
voice: VoiceRef_js_1.VoiceRef.optional(),
|
|
61
65
|
webhooks: core.serialization.list(PostedWebhookSpec_js_1.PostedWebhookSpec.optional()).optional(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Hume from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const InterruptionSpec: core.serialization.ObjectSchema<serializers.empathicVoice.InterruptionSpec.Raw, Hume.empathicVoice.InterruptionSpec>;
|
|
5
|
+
export declare namespace InterruptionSpec {
|
|
6
|
+
interface Raw {
|
|
7
|
+
min_interruption_ms?: number | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InterruptionSpec = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.InterruptionSpec = core.serialization.object({
|
|
40
|
+
minInterruptionMs: core.serialization.property("min_interruption_ms", core.serialization.number().optional()),
|
|
41
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Hume from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const PostedInterruptionSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedInterruptionSpec.Raw, Hume.empathicVoice.PostedInterruptionSpec>;
|
|
5
|
+
export declare namespace PostedInterruptionSpec {
|
|
6
|
+
interface Raw {
|
|
7
|
+
min_interruption_ms?: number | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PostedInterruptionSpec = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.PostedInterruptionSpec = core.serialization.object({
|
|
40
|
+
minInterruptionMs: core.serialization.property("min_interruption_ms", core.serialization.number().optional()),
|
|
41
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Hume from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const PostedTurnDetectionSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedTurnDetectionSpec.Raw, Hume.empathicVoice.PostedTurnDetectionSpec>;
|
|
5
|
+
export declare namespace PostedTurnDetectionSpec {
|
|
6
|
+
interface Raw {
|
|
7
|
+
end_of_turn_silence_ms?: number | null;
|
|
8
|
+
prefix_padding_ms?: number | null;
|
|
9
|
+
speech_detection_threshold?: number | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PostedTurnDetectionSpec = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.PostedTurnDetectionSpec = core.serialization.object({
|
|
40
|
+
endOfTurnSilenceMs: core.serialization.property("end_of_turn_silence_ms", core.serialization.number().optional()),
|
|
41
|
+
prefixPaddingMs: core.serialization.property("prefix_padding_ms", core.serialization.number().optional()),
|
|
42
|
+
speechDetectionThreshold: core.serialization.property("speech_detection_threshold", core.serialization.number().optional()),
|
|
43
|
+
});
|
|
@@ -4,10 +4,12 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { ReturnBuiltinTool } from "./ReturnBuiltinTool.js";
|
|
5
5
|
import { ReturnEllmModel } from "./ReturnEllmModel.js";
|
|
6
6
|
import { ReturnEventMessageSpecs } from "./ReturnEventMessageSpecs.js";
|
|
7
|
+
import { ReturnInterruptionSpec } from "./ReturnInterruptionSpec.js";
|
|
7
8
|
import { ReturnLanguageModel } from "./ReturnLanguageModel.js";
|
|
8
9
|
import { ReturnNudgeSpec } from "./ReturnNudgeSpec.js";
|
|
9
10
|
import { ReturnPrompt } from "./ReturnPrompt.js";
|
|
10
11
|
import { ReturnTimeoutSpecs } from "./ReturnTimeoutSpecs.js";
|
|
12
|
+
import { ReturnTurnDetectionSpec } from "./ReturnTurnDetectionSpec.js";
|
|
11
13
|
import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool.js";
|
|
12
14
|
import { ReturnVoice } from "./ReturnVoice.js";
|
|
13
15
|
import { ReturnWebhookSpec } from "./ReturnWebhookSpec.js";
|
|
@@ -20,6 +22,7 @@ export declare namespace ReturnConfig {
|
|
|
20
22
|
event_messages?: ReturnEventMessageSpecs.Raw | null;
|
|
21
23
|
evi_version?: string | null;
|
|
22
24
|
id?: string | null;
|
|
25
|
+
interruption?: ReturnInterruptionSpec.Raw | null;
|
|
23
26
|
language_model?: ReturnLanguageModel.Raw | null;
|
|
24
27
|
modified_on?: number | null;
|
|
25
28
|
name?: string | null;
|
|
@@ -27,6 +30,7 @@ export declare namespace ReturnConfig {
|
|
|
27
30
|
prompt?: ReturnPrompt.Raw | null;
|
|
28
31
|
timeouts?: ReturnTimeoutSpecs.Raw | null;
|
|
29
32
|
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
33
|
+
turn_detection?: ReturnTurnDetectionSpec.Raw | null;
|
|
30
34
|
version?: number | null;
|
|
31
35
|
version_description?: string | null;
|
|
32
36
|
voice?: ReturnVoice.Raw | null;
|