@lumavox/server 0.22.1 → 0.23.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.
@@ -441,7 +441,7 @@ export type TtsOptions = {
441
441
  */
442
442
  voice_id: string;
443
443
  /**
444
- * Which model speaks: one of the voice's `models` in `GET /v1/voices` — `eleven_flash_v2_5` (the fastest, and the default), `eleven_multilingual_v2` or `eleven_v3`. A model the voice does not list is refused.
444
+ * Which model speaks: one of the voice's `models` in `GET /v1/voices`. An ElevenLabs voice takes `eleven_flash_v2_5` (the fastest), `eleven_multilingual_v2` or `eleven_v3`; an Inworld voice `inworld-tts-2-flash` or `inworld-tts-2`. Unset is the fastest of the voice's provider: `eleven_flash_v2_5` or `inworld-tts-2-flash`. A model the voice does not list is refused.
445
445
  */
446
446
  model: string;
447
447
  /**
@@ -477,6 +477,18 @@ export type ProviderVoiceSettingsInfo = {
477
477
  * 1.0 is the voice's own pace.
478
478
  */
479
479
  speed: number | null;
480
+ /**
481
+ * Inworld voices: the pace, 1.0 the voice's own. Above 0.8 sounds best.
482
+ */
483
+ speaking_rate: number | null;
484
+ /**
485
+ * Inworld voices on `inworld-tts-2-flash`: higher is more varied and expressive, lower more predictable; unset is their 1.0.
486
+ */
487
+ temperature: number | null;
488
+ /**
489
+ * Inworld voices on `inworld-tts-2`: `stable` is the most consistent, `creative` the widest emotional range, `balanced` between.
490
+ */
491
+ delivery_mode: 'stable' | 'balanced' | 'creative' | null;
480
492
  };
481
493
  export type GenerationImage = {
482
494
  /**
@@ -761,7 +773,7 @@ export type AudioRequest = {
761
773
  */
762
774
  voice_id?: string;
763
775
  /**
764
- * Which model speaks: one of the voice's `models` in `GET /v1/voices` — `eleven_flash_v2_5` (the fastest, and the default), `eleven_multilingual_v2` or `eleven_v3`. A model the voice does not list is refused.
776
+ * Which model speaks: one of the voice's `models` in `GET /v1/voices`. An ElevenLabs voice takes `eleven_flash_v2_5` (the fastest), `eleven_multilingual_v2` or `eleven_v3`; an Inworld voice `inworld-tts-2-flash` or `inworld-tts-2`. Unset is the fastest of the voice's provider: `eleven_flash_v2_5` or `inworld-tts-2-flash`. A model the voice does not list is refused.
765
777
  */
766
778
  model?: string;
767
779
  /**
@@ -787,6 +799,9 @@ export type AudioRequest = {
787
799
  */
788
800
  folder_id?: string | null;
789
801
  };
802
+ /**
803
+ * The voice's provider's settings. `stability`, `similarity_boost`, `style`, `use_speaker_boost` and `speed` are ElevenLabs'; `speaking_rate`, `temperature` and `delivery_mode` are Inworld's. A setting of the other provider is refused with 422.
804
+ */
790
805
  export type ProviderVoiceSettings = {
791
806
  /**
792
807
  * Low is more expressive and less consistent between generations; high is flatter and more repeatable.
@@ -808,6 +823,18 @@ export type ProviderVoiceSettings = {
808
823
  * 1.0 is the voice's own pace.
809
824
  */
810
825
  speed?: number | null;
826
+ /**
827
+ * Inworld voices: the pace, 1.0 the voice's own. Above 0.8 sounds best.
828
+ */
829
+ speaking_rate?: number | null;
830
+ /**
831
+ * Inworld voices on `inworld-tts-2-flash`: higher is more varied and expressive, lower more predictable; unset is their 1.0.
832
+ */
833
+ temperature?: number | null;
834
+ /**
835
+ * Inworld voices on `inworld-tts-2`: `stable` is the most consistent, `creative` the widest emotional range, `balanced` between.
836
+ */
837
+ delivery_mode?: 'stable' | 'balanced' | 'creative' | null;
811
838
  };
812
839
  export type SkyboxRequest = {
813
840
  /**
@@ -3493,7 +3520,7 @@ export type TtsRequest = {
3493
3520
  */
3494
3521
  voice_id?: string;
3495
3522
  /**
3496
- * Which model speaks: one of the voice's `models` in `GET /v1/voices` — `eleven_flash_v2_5` (the fastest, and the default), `eleven_multilingual_v2` or `eleven_v3`. A model the voice does not list is refused.
3523
+ * Which model speaks: one of the voice's `models` in `GET /v1/voices`. An ElevenLabs voice takes `eleven_flash_v2_5` (the fastest), `eleven_multilingual_v2` or `eleven_v3`; an Inworld voice `inworld-tts-2-flash` or `inworld-tts-2`. Unset is the fastest of the voice's provider: `eleven_flash_v2_5` or `inworld-tts-2-flash`. A model the voice does not list is refused.
3497
3524
  */
3498
3525
  model?: string;
3499
3526
  /**
@@ -3655,9 +3682,9 @@ export type VoiceKind = 'builtin' | 'platform' | 'org';
3655
3682
  */
3656
3683
  export type VoiceStatus = 'pending' | 'ready' | 'failed';
3657
3684
  /**
3658
- * Who generates the voice: `elevenlabs`, whom we speak to on your behalf, billed at that provider's own rate.
3685
+ * Who generates the voice: `elevenlabs` or `inworld`, whom we speak to on your behalf. A voice is one provider's, and is spoken only by that provider's models.
3659
3686
  */
3660
- export type SpeechProvider = 'elevenlabs';
3687
+ export type SpeechProvider = 'elevenlabs' | 'inworld';
3661
3688
  export type VoiceSample = {
3662
3689
  model: string;
3663
3690
  ready: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.22.1",
3
+ "version": "0.23.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",