hume 0.15.16 → 0.15.17
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/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +1 -1
- package/dist/cjs/api/resources/tts/types/PostedTts.d.ts +17 -0
- package/dist/cjs/core/url/join.js +0 -1
- package/dist/cjs/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/dist/cjs/serialization/resources/tts/types/PostedTts.js +1 -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/api/resources/empathicVoice/resources/tools/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tts/types/PostedTts.d.mts +17 -0
- package/dist/esm/core/url/join.mjs +0 -1
- package/dist/esm/serialization/resources/tts/types/PostedTts.d.mts +1 -0
- package/dist/esm/serialization/resources/tts/types/PostedTts.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
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.17",
|
|
47
|
+
"User-Agent": "hume/0.15.17",
|
|
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);
|
|
@@ -153,7 +153,7 @@ export declare class ToolsClient {
|
|
|
153
153
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
|
-
* await client.empathicVoice.tools.deleteToolVersion("", 1)
|
|
156
|
+
* await client.empathicVoice.tools.deleteToolVersion("your-tool-id", 1)
|
|
157
157
|
*/
|
|
158
158
|
deleteToolVersion(id: string, version: number, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
159
159
|
private __deleteToolVersion;
|
|
@@ -589,7 +589,7 @@ class ToolsClient {
|
|
|
589
589
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
590
590
|
*
|
|
591
591
|
* @example
|
|
592
|
-
* await client.empathicVoice.tools.deleteToolVersion("", 1)
|
|
592
|
+
* await client.empathicVoice.tools.deleteToolVersion("your-tool-id", 1)
|
|
593
593
|
*/
|
|
594
594
|
deleteToolVersion(id, version, requestOptions) {
|
|
595
595
|
return core.HttpResponsePromise.fromPromise(this.__deleteToolVersion(id, version, requestOptions));
|
|
@@ -24,6 +24,17 @@ export interface PostedTts {
|
|
|
24
24
|
splitUtterances?: boolean;
|
|
25
25
|
/** 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). */
|
|
26
26
|
stripHeaders?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Sampling temperature for the speech generation model. Higher values increase variation; lower values increase consistency.
|
|
29
|
+
*
|
|
30
|
+
* **This is an experimental parameter.** It is recommended to use the default values for most use cases.
|
|
31
|
+
*
|
|
32
|
+
* Defaults when omitted:
|
|
33
|
+
* - Octave 1 voice creation (no voice specified): `0.9`
|
|
34
|
+
* - Octave 1 text-to-speech: `0.8`
|
|
35
|
+
* - Octave 2 text-to-speech: `0.75`
|
|
36
|
+
*/
|
|
37
|
+
temperature?: number;
|
|
27
38
|
/**
|
|
28
39
|
* A list of **Utterances** to be converted to speech output.
|
|
29
40
|
*
|
|
@@ -38,5 +49,11 @@ export interface PostedTts {
|
|
|
38
49
|
* For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.
|
|
39
50
|
*/
|
|
40
51
|
version?: Hume.tts.OctaveVersion;
|
|
52
|
+
/**
|
|
53
|
+
* Enables ultra-low latency streaming, significantly reducing the time until the first audio chunk is received. Recommended for real-time applications requiring immediate audio playback. For further details, see our documentation on [instant mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
|
|
54
|
+
* - A [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice) must be specified when instant mode is enabled. Dynamic voice generation is not supported with this mode.
|
|
55
|
+
* - Instant mode is only supported for streaming endpoints (e.g., [/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming), [/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
|
|
56
|
+
* - Ensure only a single generation is requested ([num_generations](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.num_generations) must be `1` or omitted).
|
|
57
|
+
*/
|
|
41
58
|
instantMode?: boolean;
|
|
42
59
|
}
|
|
@@ -15,6 +15,7 @@ export declare namespace PostedTts {
|
|
|
15
15
|
num_generations?: number | null;
|
|
16
16
|
split_utterances?: boolean | null;
|
|
17
17
|
strip_headers?: boolean | null;
|
|
18
|
+
temperature?: number | null;
|
|
18
19
|
utterances: PostedUtterance.Raw[];
|
|
19
20
|
version?: OctaveVersion.Raw | null;
|
|
20
21
|
instant_mode?: boolean | null;
|
|
@@ -48,6 +48,7 @@ exports.PostedTts = core.serialization.object({
|
|
|
48
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
|
+
temperature: core.serialization.number().optional(),
|
|
51
52
|
utterances: core.serialization.list(PostedUtterance_js_1.PostedUtterance),
|
|
52
53
|
version: OctaveVersion_js_1.OctaveVersion.optional(),
|
|
53
54
|
instantMode: core.serialization.property("instant_mode", core.serialization.boolean().optional()),
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.15.
|
|
1
|
+
export declare const SDK_VERSION = "0.15.17";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "hume",
|
|
9
|
-
"X-Fern-SDK-Version": "0.15.
|
|
10
|
-
"User-Agent": "hume/0.15.
|
|
9
|
+
"X-Fern-SDK-Version": "0.15.17",
|
|
10
|
+
"User-Agent": "hume/0.15.17",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -153,7 +153,7 @@ export declare class ToolsClient {
|
|
|
153
153
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
|
-
* await client.empathicVoice.tools.deleteToolVersion("", 1)
|
|
156
|
+
* await client.empathicVoice.tools.deleteToolVersion("your-tool-id", 1)
|
|
157
157
|
*/
|
|
158
158
|
deleteToolVersion(id: string, version: number, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
159
159
|
private __deleteToolVersion;
|
|
@@ -553,7 +553,7 @@ export class ToolsClient {
|
|
|
553
553
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
554
554
|
*
|
|
555
555
|
* @example
|
|
556
|
-
* await client.empathicVoice.tools.deleteToolVersion("", 1)
|
|
556
|
+
* await client.empathicVoice.tools.deleteToolVersion("your-tool-id", 1)
|
|
557
557
|
*/
|
|
558
558
|
deleteToolVersion(id, version, requestOptions) {
|
|
559
559
|
return core.HttpResponsePromise.fromPromise(this.__deleteToolVersion(id, version, requestOptions));
|
|
@@ -24,6 +24,17 @@ export interface PostedTts {
|
|
|
24
24
|
splitUtterances?: boolean;
|
|
25
25
|
/** 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). */
|
|
26
26
|
stripHeaders?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Sampling temperature for the speech generation model. Higher values increase variation; lower values increase consistency.
|
|
29
|
+
*
|
|
30
|
+
* **This is an experimental parameter.** It is recommended to use the default values for most use cases.
|
|
31
|
+
*
|
|
32
|
+
* Defaults when omitted:
|
|
33
|
+
* - Octave 1 voice creation (no voice specified): `0.9`
|
|
34
|
+
* - Octave 1 text-to-speech: `0.8`
|
|
35
|
+
* - Octave 2 text-to-speech: `0.75`
|
|
36
|
+
*/
|
|
37
|
+
temperature?: number;
|
|
27
38
|
/**
|
|
28
39
|
* A list of **Utterances** to be converted to speech output.
|
|
29
40
|
*
|
|
@@ -38,5 +49,11 @@ export interface PostedTts {
|
|
|
38
49
|
* For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.
|
|
39
50
|
*/
|
|
40
51
|
version?: Hume.tts.OctaveVersion;
|
|
52
|
+
/**
|
|
53
|
+
* Enables ultra-low latency streaming, significantly reducing the time until the first audio chunk is received. Recommended for real-time applications requiring immediate audio playback. For further details, see our documentation on [instant mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
|
|
54
|
+
* - A [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice) must be specified when instant mode is enabled. Dynamic voice generation is not supported with this mode.
|
|
55
|
+
* - Instant mode is only supported for streaming endpoints (e.g., [/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming), [/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
|
|
56
|
+
* - Ensure only a single generation is requested ([num_generations](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.num_generations) must be `1` or omitted).
|
|
57
|
+
*/
|
|
41
58
|
instantMode?: boolean;
|
|
42
59
|
}
|
|
@@ -21,7 +21,6 @@ export function join(base, ...segments) {
|
|
|
21
21
|
url.pathname = joinPathSegments(url.pathname, cleanSegment);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
url.pathname = url.pathname.replace(/\/\/+/g, "/");
|
|
25
24
|
if (shouldPreserveTrailingSlash && !url.pathname.endsWith("/")) {
|
|
26
25
|
url.pathname += "/";
|
|
27
26
|
}
|
|
@@ -15,6 +15,7 @@ export declare namespace PostedTts {
|
|
|
15
15
|
num_generations?: number | null;
|
|
16
16
|
split_utterances?: boolean | null;
|
|
17
17
|
strip_headers?: boolean | null;
|
|
18
|
+
temperature?: number | null;
|
|
18
19
|
utterances: PostedUtterance.Raw[];
|
|
19
20
|
version?: OctaveVersion.Raw | null;
|
|
20
21
|
instant_mode?: boolean | null;
|
|
@@ -12,6 +12,7 @@ export const PostedTts = core.serialization.object({
|
|
|
12
12
|
numGenerations: core.serialization.property("num_generations", core.serialization.number().optional()),
|
|
13
13
|
splitUtterances: core.serialization.property("split_utterances", core.serialization.boolean().optional()),
|
|
14
14
|
stripHeaders: core.serialization.property("strip_headers", core.serialization.boolean().optional()),
|
|
15
|
+
temperature: core.serialization.number().optional(),
|
|
15
16
|
utterances: core.serialization.list(PostedUtterance),
|
|
16
17
|
version: OctaveVersion.optional(),
|
|
17
18
|
instantMode: core.serialization.property("instant_mode", core.serialization.boolean().optional()),
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.15.
|
|
1
|
+
export declare const SDK_VERSION = "0.15.17";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.15.
|
|
1
|
+
export const SDK_VERSION = "0.15.17";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2649,7 +2649,7 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
|
|
|
2649
2649
|
<dd>
|
|
2650
2650
|
|
|
2651
2651
|
```typescript
|
|
2652
|
-
await client.empathicVoice.tools.deleteToolVersion("", 1);
|
|
2652
|
+
await client.empathicVoice.tools.deleteToolVersion("your-tool-id", 1);
|
|
2653
2653
|
|
|
2654
2654
|
```
|
|
2655
2655
|
</dd>
|