@lumavox/server 0.23.1 → 0.25.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.
@@ -880,9 +880,9 @@ export type TranscribeAssetRequest = {
880
880
  */
881
881
  asset_id: string;
882
882
  /**
883
- * One of: scribe_v2.
883
+ * `scribe_v2` (ElevenLabs, the default) or `inworld-stt-1` (Inworld, which takes no `num_speakers` or `tag_audio_events` and names no `language_code`).
884
884
  */
885
- model?: 'scribe_v2';
885
+ model?: 'scribe_v2' | 'inworld-stt-1';
886
886
  /**
887
887
  * ISO-639-1 or -639-3 code. Omit it and the language is detected automatically. Set it when you already know -- detection is very good and not free of mistakes, and a wrong guess costs the whole transcript.
888
888
  *
@@ -894,11 +894,11 @@ export type TranscribeAssetRequest = {
894
894
  */
895
895
  diarize?: boolean;
896
896
  /**
897
- * The most speakers to look for, when `diarize` is on. Ignored otherwise. Setting it when you know the number improves the labelling; leaving it out lets the provider decide.
897
+ * The most speakers to look for, when `diarize` is on. Ignored otherwise. Setting it when you know the number improves the labelling; leaving it out lets the provider decide. Not with `inworld-stt-1`, which is a 422.
898
898
  */
899
899
  num_speakers?: number | null;
900
900
  /**
901
- * Mark laughter, applause and similar in the transcript, as `(laughter)`-style entries with `type: audio_event`.
901
+ * Mark laughter, applause and similar in the transcript, as `(laughter)`-style entries with `type: audio_event`. Not with `inworld-stt-1`, which is a 422.
902
902
  */
903
903
  tag_audio_events?: boolean;
904
904
  /**
@@ -2002,9 +2002,9 @@ export type AgentSttInfo = {
2002
2002
  */
2003
2003
  mark_spoken: boolean | null;
2004
2004
  /**
2005
- * Transcription model for this agent's spoken turns. Unset or null means the platform's default model, and follows it if that default ever changes.
2005
+ * Transcription model for this agent's spoken turns: `scribe_v2` (ElevenLabs) or `inworld-stt-1` (Inworld), each heard as the person speaks. A `model` on `user_audio.start` overrides it for one recording. Unset or null means the platform's default model, `scribe_v2`, and follows it if that default ever changes.
2006
2006
  */
2007
- model: 'scribe_v2' | null;
2007
+ model: 'scribe_v2' | 'inworld-stt-1' | null;
2008
2008
  /**
2009
2009
  * Hz of the PCM a client sends on `/v1/agent/stream`. One of 8000, 16000, 22050, 24000, 44100.
2010
2010
  *
@@ -2519,9 +2519,9 @@ export type AgentStt = {
2519
2519
  */
2520
2520
  mark_spoken?: boolean | null;
2521
2521
  /**
2522
- * Transcription model for this agent's spoken turns. Unset or null means the platform's default model, and follows it if that default ever changes.
2522
+ * Transcription model for this agent's spoken turns: `scribe_v2` (ElevenLabs) or `inworld-stt-1` (Inworld), each heard as the person speaks. A `model` on `user_audio.start` overrides it for one recording. Unset or null means the platform's default model, `scribe_v2`, and follows it if that default ever changes.
2523
2523
  */
2524
- model?: 'scribe_v2' | null;
2524
+ model?: 'scribe_v2' | 'inworld-stt-1' | null;
2525
2525
  /**
2526
2526
  * Hz of the PCM a client sends on `/v1/agent/stream`. One of 8000, 16000, 22050, 24000, 44100.
2527
2527
  *
@@ -3770,6 +3770,7 @@ export type VoiceUpload = {
3770
3770
  * `true` confirms you have the right to clone this voice; the upload is refused without it.
3771
3771
  */
3772
3772
  consent?: boolean;
3773
+ provider?: SpeechProvider & unknown;
3773
3774
  };
3774
3775
  export type VoiceDesignResult = {
3775
3776
  previews: Array<VoiceDesignPreview>;
@@ -8310,13 +8311,22 @@ export type TranscribeData = {
8310
8311
  * Return newline-delimited JSON instead of one body. Requires WAV or raw PCM.
8311
8312
  */
8312
8313
  stream?: boolean;
8313
- model?: 'scribe_v2';
8314
+ /**
8315
+ * `scribe_v2` (ElevenLabs) or `inworld-stt-1` (Inworld: up to 16 MB a file here, and no `num_speakers` or `tag_audio_events`).
8316
+ */
8317
+ model?: 'scribe_v2' | 'inworld-stt-1';
8314
8318
  /**
8315
8319
  * The language spoken, as an ISO 639-1 or 639-3 code; unset detects it.
8316
8320
  */
8317
8321
  language?: string;
8318
8322
  diarize?: boolean;
8323
+ /**
8324
+ * Not with `inworld-stt-1`, which is a 422.
8325
+ */
8319
8326
  num_speakers?: number;
8327
+ /**
8328
+ * Not with `inworld-stt-1`, which is a 422.
8329
+ */
8320
8330
  tag_audio_events?: boolean;
8321
8331
  /**
8322
8332
  * Return each word and its timing as `words`.
@@ -8345,7 +8355,7 @@ export type TranscribeErrors = {
8345
8355
  */
8346
8356
  403: ErrorResponse;
8347
8357
  /**
8348
- * The file is larger than 25 MB
8358
+ * The file is larger than 25 MB, or 16 MB for `inworld-stt-1`
8349
8359
  */
8350
8360
  413: ErrorResponse;
8351
8361
  /**
@@ -8365,7 +8375,7 @@ export type TranscribeErrors = {
8365
8375
  */
8366
8376
  502: ErrorResponse;
8367
8377
  /**
8368
- * Transcription is not configured on this platform
8378
+ * Transcription is not configured on this platform, or not for the model asked for
8369
8379
  */
8370
8380
  503: ErrorResponse;
8371
8381
  };
@@ -8449,7 +8459,7 @@ export type CreateVoiceErrors = {
8449
8459
  */
8450
8460
  429: ErrorResponse;
8451
8461
  /**
8452
- * Object storage, or the worker, is unavailable
8462
+ * Object storage, the worker, or the provider asked for is unavailable
8453
8463
  */
8454
8464
  503: ErrorResponse;
8455
8465
  };
@@ -8597,7 +8607,7 @@ export type SaveDesignedVoiceErrors = {
8597
8607
  */
8598
8608
  502: ErrorResponse;
8599
8609
  /**
8600
- * Object storage, or the worker, is unavailable
8610
+ * Object storage, the worker, or the provider asked for is unavailable
8601
8611
  */
8602
8612
  503: ErrorResponse;
8603
8613
  };
@@ -8777,7 +8787,7 @@ export type ResampleVoiceErrors = {
8777
8787
  */
8778
8788
  429: ErrorResponse;
8779
8789
  /**
8780
- * Object storage, or the worker, is unavailable
8790
+ * Object storage, the worker, or the provider asked for is unavailable
8781
8791
  */
8782
8792
  503: ErrorResponse;
8783
8793
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.23.1",
3
+ "version": "0.25.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",