@lumavox/server 0.23.1 → 0.24.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
  *
@@ -8310,13 +8310,22 @@ export type TranscribeData = {
8310
8310
  * Return newline-delimited JSON instead of one body. Requires WAV or raw PCM.
8311
8311
  */
8312
8312
  stream?: boolean;
8313
- model?: 'scribe_v2';
8313
+ /**
8314
+ * `scribe_v2` (ElevenLabs) or `inworld-stt-1` (Inworld: up to 16 MB a file here, and no `num_speakers` or `tag_audio_events`).
8315
+ */
8316
+ model?: 'scribe_v2' | 'inworld-stt-1';
8314
8317
  /**
8315
8318
  * The language spoken, as an ISO 639-1 or 639-3 code; unset detects it.
8316
8319
  */
8317
8320
  language?: string;
8318
8321
  diarize?: boolean;
8322
+ /**
8323
+ * Not with `inworld-stt-1`, which is a 422.
8324
+ */
8319
8325
  num_speakers?: number;
8326
+ /**
8327
+ * Not with `inworld-stt-1`, which is a 422.
8328
+ */
8320
8329
  tag_audio_events?: boolean;
8321
8330
  /**
8322
8331
  * Return each word and its timing as `words`.
@@ -8345,7 +8354,7 @@ export type TranscribeErrors = {
8345
8354
  */
8346
8355
  403: ErrorResponse;
8347
8356
  /**
8348
- * The file is larger than 25 MB
8357
+ * The file is larger than 25 MB, or 16 MB for `inworld-stt-1`
8349
8358
  */
8350
8359
  413: ErrorResponse;
8351
8360
  /**
@@ -8365,7 +8374,7 @@ export type TranscribeErrors = {
8365
8374
  */
8366
8375
  502: ErrorResponse;
8367
8376
  /**
8368
- * Transcription is not configured on this platform
8377
+ * Transcription is not configured on this platform, or not for the model asked for
8369
8378
  */
8370
8379
  503: ErrorResponse;
8371
8380
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.23.1",
3
+ "version": "0.24.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",