@lumavox/server 0.46.6 → 0.48.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/dist/gen/types.gen.d.ts +28 -0
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -499,6 +499,10 @@ export type TtsOptions = {
|
|
|
499
499
|
* `POST /v1/tts` says what it produced in the `X-Sample-Rate` header. Queued speech (`POST /v1/audio`) does not take it: each of its formats has its own rate.
|
|
500
500
|
*/
|
|
501
501
|
sample_rate: 8000 | 16000 | 22050 | 24000 | 44100 | null;
|
|
502
|
+
/**
|
|
503
|
+
* The language the voice speaks in: a BCP-47 tag of a language and, optionally, a region — `en`, `fa`, `pt-BR`. It holds the voice to that language, its accent and its reading of numbers, where the provider would otherwise guess it from the text, which a short text can get wrong. Sent to the voice's provider when its model lists the language: `eleven_flash_v2_5` takes 32, `eleven_v3` and Inworld's two many more, and `eleven_multilingual_v2` none. For a language the model does not list, and when unset or null, the language is detected from the text.
|
|
504
|
+
*/
|
|
505
|
+
language: string | null;
|
|
502
506
|
};
|
|
503
507
|
export type ProviderVoiceSettingsInfo = {
|
|
504
508
|
/**
|
|
@@ -834,6 +838,10 @@ export type AudioRequest = {
|
|
|
834
838
|
* `POST /v1/tts` says what it produced in the `X-Sample-Rate` header. Queued speech (`POST /v1/audio`) does not take it: each of its formats has its own rate.
|
|
835
839
|
*/
|
|
836
840
|
sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | null;
|
|
841
|
+
/**
|
|
842
|
+
* The language the voice speaks in: a BCP-47 tag of a language and, optionally, a region — `en`, `fa`, `pt-BR`. It holds the voice to that language, its accent and its reading of numbers, where the provider would otherwise guess it from the text, which a short text can get wrong. Sent to the voice's provider when its model lists the language: `eleven_flash_v2_5` takes 32, `eleven_v3` and Inworld's two many more, and `eleven_multilingual_v2` none. For a language the model does not list, and when unset or null, the language is detected from the text.
|
|
843
|
+
*/
|
|
844
|
+
language?: string | null;
|
|
837
845
|
/**
|
|
838
846
|
* What to say.
|
|
839
847
|
*/
|
|
@@ -2283,6 +2291,10 @@ export type AgentVoiceInfo = {
|
|
|
2283
2291
|
* The audio format this voice is configured with. On the WebSocket a reply is always raw 16-bit PCM, at the rate its `audio.start` names.
|
|
2284
2292
|
*/
|
|
2285
2293
|
format: 'wav' | 'pcm' | null;
|
|
2294
|
+
/**
|
|
2295
|
+
* The language the agent's voice speaks in: a BCP-47 tag of a language and, optionally, a region — `en`, `fa`, `pt-BR`. It holds every piece of a reply to one language and accent, where the provider would otherwise guess each from its own text. A conversation whose key names a `language` speaks in that instead. Sent to the voice's provider when its model lists the language — `eleven_flash_v2_5` takes 32, Inworld's two many more, `eleven_multilingual_v2` none; for any other, and when unset or null, the language is detected from the text.
|
|
2296
|
+
*/
|
|
2297
|
+
language: string | null;
|
|
2286
2298
|
/**
|
|
2287
2299
|
* Which model speaks, one the voice lists as `models` in `GET /v1/voices`: for an ElevenLabs voice `eleven_flash_v2_5` or `eleven_multilingual_v2`, for an Inworld voice `inworld-tts-2-flash` or `inworld-tts-2`. Unset is the voice's provider's fastest — `eleven_flash_v2_5` or `inworld-tts-2-flash`.
|
|
2288
2300
|
*/
|
|
@@ -2301,6 +2313,10 @@ export type AgentVoiceInfo = {
|
|
|
2301
2313
|
* An id from `GET /v1/voices` — the built-in voice, a platform voice, or one your organisation uploaded.
|
|
2302
2314
|
*/
|
|
2303
2315
|
voice_id: string | null;
|
|
2316
|
+
/**
|
|
2317
|
+
* Whether a turn the agent is about to speak reaches the model with a note saying its reply will be spoken aloud, so it writes numbers, amounts, dates and times in words and leaves out lists, headings, links, emoji and symbols — which a voice reads out or stumbles on. A reply that will only be typed is never asked this, and the note is not stored in the transcript. Unset or null means on.
|
|
2318
|
+
*/
|
|
2319
|
+
write_for_speech: boolean | null;
|
|
2304
2320
|
};
|
|
2305
2321
|
export type AgentInfo = {
|
|
2306
2322
|
/**
|
|
@@ -2994,6 +3010,10 @@ export type AgentVoice = {
|
|
|
2994
3010
|
* The audio format this voice is configured with. On the WebSocket a reply is always raw 16-bit PCM, at the rate its `audio.start` names.
|
|
2995
3011
|
*/
|
|
2996
3012
|
format?: 'wav' | 'pcm';
|
|
3013
|
+
/**
|
|
3014
|
+
* The language the agent's voice speaks in: a BCP-47 tag of a language and, optionally, a region — `en`, `fa`, `pt-BR`. It holds every piece of a reply to one language and accent, where the provider would otherwise guess each from its own text. A conversation whose key names a `language` speaks in that instead. Sent to the voice's provider when its model lists the language — `eleven_flash_v2_5` takes 32, Inworld's two many more, `eleven_multilingual_v2` none; for any other, and when unset or null, the language is detected from the text.
|
|
3015
|
+
*/
|
|
3016
|
+
language?: string | null;
|
|
2997
3017
|
/**
|
|
2998
3018
|
* Which model speaks, one the voice lists as `models` in `GET /v1/voices`: for an ElevenLabs voice `eleven_flash_v2_5` or `eleven_multilingual_v2`, for an Inworld voice `inworld-tts-2-flash` or `inworld-tts-2`. Unset is the voice's provider's fastest — `eleven_flash_v2_5` or `inworld-tts-2-flash`.
|
|
2999
3019
|
*/
|
|
@@ -3012,6 +3032,10 @@ export type AgentVoice = {
|
|
|
3012
3032
|
* An id from `GET /v1/voices` — the built-in voice, a platform voice, or one your organisation uploaded.
|
|
3013
3033
|
*/
|
|
3014
3034
|
voice_id?: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* Whether a turn the agent is about to speak reaches the model with a note saying its reply will be spoken aloud, so it writes numbers, amounts, dates and times in words and leaves out lists, headings, links, emoji and symbols — which a voice reads out or stumbles on. A reply that will only be typed is never asked this, and the note is not stored in the transcript. Unset or null means on.
|
|
3037
|
+
*/
|
|
3038
|
+
write_for_speech?: boolean | null;
|
|
3015
3039
|
};
|
|
3016
3040
|
export type AgentSettingsInfo = {
|
|
3017
3041
|
/**
|
|
@@ -5495,6 +5519,10 @@ export type TtsRequest = {
|
|
|
5495
5519
|
* `POST /v1/tts` says what it produced in the `X-Sample-Rate` header. Queued speech (`POST /v1/audio`) does not take it: each of its formats has its own rate.
|
|
5496
5520
|
*/
|
|
5497
5521
|
sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | null;
|
|
5522
|
+
/**
|
|
5523
|
+
* The language the voice speaks in: a BCP-47 tag of a language and, optionally, a region — `en`, `fa`, `pt-BR`. It holds the voice to that language, its accent and its reading of numbers, where the provider would otherwise guess it from the text, which a short text can get wrong. Sent to the voice's provider when its model lists the language: `eleven_flash_v2_5` takes 32, `eleven_v3` and Inworld's two many more, and `eleven_multilingual_v2` none. For a language the model does not list, and when unset or null, the language is detected from the text.
|
|
5524
|
+
*/
|
|
5525
|
+
language?: string | null;
|
|
5498
5526
|
text: string;
|
|
5499
5527
|
/**
|
|
5500
5528
|
* Stream audio as it is generated. Only the pcm format can stream.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "The Lumavox API from your server: end users, ephemeral keys and the rest, typed from the published OpenAPI document. Zero dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|