@lumavox/server 0.46.6 → 0.49.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.
@@ -98,10 +98,16 @@ export type SkyboxStylePage = {
98
98
  export type SkyboxStyle = {
99
99
  id: number;
100
100
  name: string;
101
+ /**
102
+ * The longest `prompt` it takes.
103
+ */
101
104
  max_prompt_chars: number | null;
105
+ /**
106
+ * The longest `negative_text` it takes.
107
+ */
102
108
  max_negative_chars: number | null;
103
109
  /**
104
- * Which of the provider's model generations it runs on.
110
+ * The provider's model it runs on: `4`, the only one offered.
105
111
  */
106
112
  model_version: string | null;
107
113
  /**
@@ -422,8 +428,18 @@ export type GenerationInfo = {
422
428
  start_frame: string | null;
423
429
  end_frame: string | null;
424
430
  negative_text: string | null;
431
+ /**
432
+ * The style a skybox ran with: the one asked for, or the default.
433
+ */
425
434
  style_id: number | null;
435
+ /**
436
+ * A skybox's `balance` or `detail`. Null otherwise.
437
+ */
438
+ quality: string | null;
426
439
  init_image: string | null;
440
+ /**
441
+ * A skybox's strength for `init_image`, on one made when it could be set. Null otherwise.
442
+ */
427
443
  init_strength: number | null;
428
444
  voice_id: string | null;
429
445
  /**
@@ -499,6 +515,10 @@ export type TtsOptions = {
499
515
  * `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
516
  */
501
517
  sample_rate: 8000 | 16000 | 22050 | 24000 | 44100 | null;
518
+ /**
519
+ * 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.
520
+ */
521
+ language: string | null;
502
522
  };
503
523
  export type ProviderVoiceSettingsInfo = {
504
524
  /**
@@ -834,6 +854,10 @@ export type AudioRequest = {
834
854
  * `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
855
  */
836
856
  sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | null;
857
+ /**
858
+ * 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.
859
+ */
860
+ language?: string | null;
837
861
  /**
838
862
  * What to say.
839
863
  */
@@ -882,30 +906,30 @@ export type ProviderVoiceSettings = {
882
906
  };
883
907
  export type SkyboxRequest = {
884
908
  /**
885
- * The environment to build. Describe the whole surrounding — sky, ground, horizon and light — rather than a subject.
909
+ * The environment to build. Describe the whole surrounding — sky, ground, horizon and light — rather than a subject. At most the style's `max_prompt_chars`.
886
910
  */
887
911
  prompt: string;
888
912
  /**
889
- * What to keep out of it.
913
+ * What to keep out of it. At most the style's `max_negative_chars`.
890
914
  */
891
915
  negative_text?: string | null;
892
916
  /**
893
- * One of the provider's styles — fetch the current list from `GET /v1/skybox/styles`. Omit for their default.
917
+ * One of the styles `GET /v1/skybox/styles` lists — fetch it rather than hard-coding ids. Omit for Photorealistic (157).
894
918
  */
895
919
  style_id?: number | null;
920
+ /**
921
+ * `balance`, about a minute, or `detail`, about two, with more detail — and twice the price.
922
+ */
923
+ quality?: 'balance' | 'detail';
896
924
  /**
897
925
  * Reuse a seed to get the same environment again. **Note this starts at 1, not 0** — the provider uses zero for random.
898
926
  */
899
927
  seed?: number | null;
900
928
  enhance_prompt?: boolean;
901
929
  /**
902
- * `ast_…` — an existing **equirectangular** image in your library to build from.
930
+ * `ast_…` — an existing **equirectangular** image in your library to build from: its shapes and depth guide the new one.
903
931
  */
904
932
  init_image?: string | null;
905
- /**
906
- * How much the init image influences the result: 0 ignores it, 0.97 is the provider's maximum. Only has an effect alongside `init_image`.
907
- */
908
- init_strength?: number;
909
933
  /**
910
934
  * `fld_…` — the folder in your asset library the finished file is filed under. Omit it for the root. A folder that is not yours is a 400, never a silent fall back to the root.
911
935
  */
@@ -2283,6 +2307,10 @@ export type AgentVoiceInfo = {
2283
2307
  * 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
2308
  */
2285
2309
  format: 'wav' | 'pcm' | null;
2310
+ /**
2311
+ * 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.
2312
+ */
2313
+ language: string | null;
2286
2314
  /**
2287
2315
  * 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
2316
  */
@@ -2301,6 +2329,10 @@ export type AgentVoiceInfo = {
2301
2329
  * An id from `GET /v1/voices` — the built-in voice, a platform voice, or one your organisation uploaded.
2302
2330
  */
2303
2331
  voice_id: string | null;
2332
+ /**
2333
+ * 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.
2334
+ */
2335
+ write_for_speech: boolean | null;
2304
2336
  };
2305
2337
  export type AgentInfo = {
2306
2338
  /**
@@ -2994,6 +3026,10 @@ export type AgentVoice = {
2994
3026
  * 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
3027
  */
2996
3028
  format?: 'wav' | 'pcm';
3029
+ /**
3030
+ * 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.
3031
+ */
3032
+ language?: string | null;
2997
3033
  /**
2998
3034
  * 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
3035
  */
@@ -3012,6 +3048,10 @@ export type AgentVoice = {
3012
3048
  * An id from `GET /v1/voices` — the built-in voice, a platform voice, or one your organisation uploaded.
3013
3049
  */
3014
3050
  voice_id?: string;
3051
+ /**
3052
+ * 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.
3053
+ */
3054
+ write_for_speech?: boolean | null;
3015
3055
  };
3016
3056
  export type AgentSettingsInfo = {
3017
3057
  /**
@@ -5495,6 +5535,10 @@ export type TtsRequest = {
5495
5535
  * `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
5536
  */
5497
5537
  sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | null;
5538
+ /**
5539
+ * 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.
5540
+ */
5541
+ language?: string | null;
5498
5542
  text: string;
5499
5543
  /**
5500
5544
  * 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.46.6",
3
+ "version": "0.49.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",