voice-router-dev 0.9.5 → 0.9.7

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/CHANGELOG.md CHANGED
@@ -5,6 +5,72 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.9.6] - 2026-06-01
9
+
10
+ ### Fixed
11
+
12
+ #### Speechmatics Batch File Upload Multipart Body
13
+
14
+ Fixed `SpeechmaticsAdapter.transcribe()` for the file-input branch so `POST /v2/jobs` is sent as a real `multipart/form-data` body with a boundary. The previous implementation built a plain object `{ config, data_file }` and set the `Content-Type: multipart/form-data` header on the axios request; axios then serialized the object as JSON and Speechmatics rejected the request with `"Content-Type must be multipart/form-data"`, so no job was ever created (`transcription_id: null`). The adapter now constructs a `FormData` (normalizing `Buffer` to `Blob` for Node) and lets axios derive `Content-Type` with the boundary. URL input (`fetch_data`) was unaffected.
15
+
16
+ ## [0.9.5] - 2026-06-01
17
+
18
+ ### Added
19
+
20
+ #### Provider Update Checker
21
+
22
+ New `pnpm providers:check-updates` tool that fetches every tracked upstream — provider specs, npm SDK declaration files, remote-content URLs — and reports drift against the recorded baselines in `specs/.checksums.json`. Use `--write` to baseline. Exit code is `0` when clean, `2` when changes are detected, `1` on error — suitable for CI scheduling. Companion: `pnpm openapi:check-consumed` (exit `2` if any post-fix spec on disk differs from the recorded `consumedSha256`).
23
+
24
+ #### Consumed-Spec Checksum Tracking
25
+
26
+ `specs/.checksums.json` now records `consumedSha256` (and `consumedAt`, `fixedBy`) alongside the raw upstream `sha256` for every non-manual spec. The consumed checksum is the hash of the spec file *after* `fix-*-spec.js` runs — i.e. the exact bytes orval reads — so the file records both "what we downloaded from upstream" and "what codegen was built from", closing the gap for the five fixed specs (assemblyai, deepgram, openai, speechmatics, elevenlabs). `pnpm openapi:record-consumed` writes the field and is wired into `openapi:generate` immediately after `openapi:fix-specs`.
27
+
28
+ #### Hand-Maintained Generated File Restores
29
+
30
+ `scripts/fix-generated.js` now restores four files under `src/generated/` that have no generator and were being wiped by `openapi:clean`: `soniox/sdk-types.ts`, `soniox/streaming-response-types.ts`, `elevenlabs/streaming-response-types.ts`, and `deepgram/streaming-response-types.ts`. Canonical sources are tracked under `specs/` and registered as `manual` entries in the spec manifest with `dependsOnUpstreams` links so the checker flags them for review when the relevant SDK changes.
31
+
32
+ #### Shared Spec Manifest
33
+
34
+ Extracted `SPEC_SOURCES` and `PROVIDERS` definitions into `scripts/provider-upstream-manifest.js`, shared by `sync-specs.js` and the new checker. Also exports `canonicalizeForHash` and `stableStringify`.
35
+
36
+ ### Changed
37
+
38
+ #### ElevenLabs Language List (public API change)
39
+
40
+ `ElevenLabsLanguageCodes`, `ElevenLabsLanguages`, `ElevenLabsLanguageLabels`, and `ElevenLabsLanguage` now contain **80 entries** (was 99). ElevenLabs removed 19 languages from Scribe coverage: `la`, `mi`, `br`, `eu`, `sq`, `si`, `yi`, `fo`, `ht`, `tk`, `sa`, `bo`, `tl`, `mg`, `tt`, `haw`, `ba`, `su`, `nn`. The curated list now lives in tracked `specs/elevenlabs-languages.json` instead of being inlined in the generator script.
41
+
42
+ #### Upstream Specs Synced + Regenerated
43
+
44
+ All eight upstream specs were re-synced and the full provider type set regenerated. Notable: OpenAI realtime model union now includes the latest `gpt-realtime-2`, `gpt-realtime-mini-*`, `gpt-audio-1.5`, `gpt-audio-mini-*` variants; new schema files for transcript metadata (AssemblyAI), reasoning (OpenAI), usage logs and TTS (Soniox), and audio-filtering / speaker-input (Speechmatics).
45
+
46
+ #### Soniox Generate Step Ordering
47
+
48
+ `openapi:generate` and `openapi:generate:soniox` now run `sync-soniox-models` before `sync-soniox-streaming`. The streaming generator reads from `src/generated/soniox/models.ts` to enrich realtime model metadata, and the previous order caused `ENOENT` on a from-scratch rebuild.
49
+
50
+ ### Fixed
51
+
52
+ #### Canonical Hashing for Non-Deterministic Upstreams
53
+
54
+ Spec hashing now canonicalizes JSON content (parse + stable-key stringify) and masks ISO-8601 timestamps before producing the SHA. Without this, providers that reorder keys per request or embed the current server time in `example` fields (e.g. Gladia) reported a "changed" spec on every check, drowning real upstream signal.
55
+
56
+ #### Relative Redirect Handling
57
+
58
+ `sync-specs.js` and `check-provider-updates.js` now resolve relative `Location` headers against the request URL via `new URL(location, requestUrl)`, drain the redirect body, and cap at 10 hops. The prior code passed the raw `Location` value into `http.get()`, which threw `Invalid URL` and crashed the script on the first relative redirect (e.g. ElevenLabs docs).
59
+
60
+ #### NPM Tarball Declaration File Lookup
61
+
62
+ `normalizeTarPath` now strips a leading `./` so declaration paths resolved from `package.json` `exports.types` (`./dist/index.d.cts`) match tarball entries (`package/dist/index.d.cts`). Previously every SDK declaration hash silently failed with `File not found in npm tarball: ./dist/...`, defeating SDK-drift detection.
63
+
64
+ #### sync-specs Preserves Consumed Fields
65
+
66
+ `sync-specs.js` now spreads the existing checksums entry when rewriting it, so `consumedSha256` / `consumedAt` / `fixedBy` survive a re-sync. Previously they were silently wiped each time.
67
+
68
+ ### Internal
69
+
70
+ #### Dropped Noisy Upstream
71
+
72
+ Removed `deepgramModelsApi` from `providerUpstreams`. Its `/v1/models` response carries per-request fields that vary even after JSON canonicalization, so any baseline would report drift every run. Real Deepgram changes are still surfaced via the `@deepgram/sdk` npm baseline and the `deepgram-openapi.yml` spec.
73
+
8
74
  ## [0.9.4] - 2026-04-28
9
75
 
10
76
  ### Changed
@@ -644,6 +644,10 @@ declare const SonioxModels: readonly [{
644
644
  readonly id: "stt-rt-v4";
645
645
  readonly name: "Speech-to-Text Real-time v4";
646
646
  readonly mode: "real_time";
647
+ }, {
648
+ readonly id: "stt-async-v5";
649
+ readonly name: "Speech-to-Text Async v5";
650
+ readonly mode: "async";
647
651
  }, {
648
652
  readonly id: "stt-async-v4";
649
653
  readonly name: "Speech-to-Text Async v4";
@@ -687,7 +691,7 @@ declare const SonioxModels: readonly [{
687
691
  /**
688
692
  * Soniox model IDs
689
693
  */
690
- declare const SonioxModelCodes: readonly ["stt-rt-v4", "stt-async-v4", "stt-rt-preview", "stt-async-preview", "stt-rt-v3-preview", "stt-rt-preview-v2", "stt-async-preview-v1", "stt-rt-v3", "stt-async-v3"];
694
+ declare const SonioxModelCodes: readonly ["stt-rt-v4", "stt-async-v5", "stt-async-v4", "stt-rt-preview", "stt-async-preview", "stt-rt-v3-preview", "stt-rt-preview-v2", "stt-async-preview-v1", "stt-rt-v3", "stt-async-v3"];
691
695
  /**
692
696
  * Type for Soniox model codes
693
697
  */
@@ -703,7 +707,7 @@ type SonioxRealtimeModelCode = (typeof SonioxRealtimeModelCodes)[number];
703
707
  /**
704
708
  * Async/batch model IDs
705
709
  */
706
- declare const SonioxAsyncModelCodes: readonly ["stt-async-v4", "stt-async-preview", "stt-async-preview-v1", "stt-async-v3"];
710
+ declare const SonioxAsyncModelCodes: readonly ["stt-async-v5", "stt-async-v4", "stt-async-preview", "stt-async-preview-v1", "stt-async-v3"];
707
711
  /**
708
712
  * Type for Soniox async model codes
709
713
  */
@@ -728,6 +732,7 @@ declare const SonioxModelLabels: Record<SonioxModelCode, string>;
728
732
  */
729
733
  declare const SonioxModel: {
730
734
  readonly stt_rt_v4: "stt-rt-v4";
735
+ readonly stt_async_v5: "stt-async-v5";
731
736
  readonly stt_async_v4: "stt-async-v4";
732
737
  readonly stt_rt_preview: "stt-rt-preview";
733
738
  readonly stt_async_preview: "stt-async-preview";
@@ -751,6 +756,7 @@ declare const SonioxRealtimeModel: {
751
756
  * Async models only (for batch transcription)
752
757
  */
753
758
  declare const SonioxAsyncModel: {
759
+ readonly stt_async_v5: "stt-async-v5";
754
760
  readonly stt_async_v4: "stt-async-v4";
755
761
  readonly stt_async_preview: "stt-async-preview";
756
762
  readonly stt_async_preview_v1: "stt-async-preview-v1";
@@ -644,6 +644,10 @@ declare const SonioxModels: readonly [{
644
644
  readonly id: "stt-rt-v4";
645
645
  readonly name: "Speech-to-Text Real-time v4";
646
646
  readonly mode: "real_time";
647
+ }, {
648
+ readonly id: "stt-async-v5";
649
+ readonly name: "Speech-to-Text Async v5";
650
+ readonly mode: "async";
647
651
  }, {
648
652
  readonly id: "stt-async-v4";
649
653
  readonly name: "Speech-to-Text Async v4";
@@ -687,7 +691,7 @@ declare const SonioxModels: readonly [{
687
691
  /**
688
692
  * Soniox model IDs
689
693
  */
690
- declare const SonioxModelCodes: readonly ["stt-rt-v4", "stt-async-v4", "stt-rt-preview", "stt-async-preview", "stt-rt-v3-preview", "stt-rt-preview-v2", "stt-async-preview-v1", "stt-rt-v3", "stt-async-v3"];
694
+ declare const SonioxModelCodes: readonly ["stt-rt-v4", "stt-async-v5", "stt-async-v4", "stt-rt-preview", "stt-async-preview", "stt-rt-v3-preview", "stt-rt-preview-v2", "stt-async-preview-v1", "stt-rt-v3", "stt-async-v3"];
691
695
  /**
692
696
  * Type for Soniox model codes
693
697
  */
@@ -703,7 +707,7 @@ type SonioxRealtimeModelCode = (typeof SonioxRealtimeModelCodes)[number];
703
707
  /**
704
708
  * Async/batch model IDs
705
709
  */
706
- declare const SonioxAsyncModelCodes: readonly ["stt-async-v4", "stt-async-preview", "stt-async-preview-v1", "stt-async-v3"];
710
+ declare const SonioxAsyncModelCodes: readonly ["stt-async-v5", "stt-async-v4", "stt-async-preview", "stt-async-preview-v1", "stt-async-v3"];
707
711
  /**
708
712
  * Type for Soniox async model codes
709
713
  */
@@ -728,6 +732,7 @@ declare const SonioxModelLabels: Record<SonioxModelCode, string>;
728
732
  */
729
733
  declare const SonioxModel: {
730
734
  readonly stt_rt_v4: "stt-rt-v4";
735
+ readonly stt_async_v5: "stt-async-v5";
731
736
  readonly stt_async_v4: "stt-async-v4";
732
737
  readonly stt_rt_preview: "stt-rt-preview";
733
738
  readonly stt_async_preview: "stt-async-preview";
@@ -751,6 +756,7 @@ declare const SonioxRealtimeModel: {
751
756
  * Async models only (for batch transcription)
752
757
  */
753
758
  declare const SonioxAsyncModel: {
759
+ readonly stt_async_v5: "stt-async-v5";
754
760
  readonly stt_async_v4: "stt-async-v4";
755
761
  readonly stt_async_preview: "stt-async-preview";
756
762
  readonly stt_async_preview_v1: "stt-async-preview-v1";
package/dist/constants.js CHANGED
@@ -1352,6 +1352,7 @@ var SonioxLanguage = {
1352
1352
  // src/generated/soniox/models.ts
1353
1353
  var SonioxModels = [
1354
1354
  { id: "stt-rt-v4", name: "Speech-to-Text Real-time v4", mode: "real_time" },
1355
+ { id: "stt-async-v5", name: "Speech-to-Text Async v5", mode: "async" },
1355
1356
  { id: "stt-async-v4", name: "Speech-to-Text Async v4", mode: "async" },
1356
1357
  { id: "stt-rt-preview", name: "Speech-to-Text Real-time Preview", mode: "real_time", aliasOf: "stt-rt-v4" },
1357
1358
  { id: "stt-async-preview", name: "Speech-to-Text Async Preview", mode: "async", aliasOf: "stt-async-v4" },
@@ -1363,6 +1364,7 @@ var SonioxModels = [
1363
1364
  ];
1364
1365
  var SonioxModelCodes = [
1365
1366
  "stt-rt-v4",
1367
+ "stt-async-v5",
1366
1368
  "stt-async-v4",
1367
1369
  "stt-rt-preview",
1368
1370
  "stt-async-preview",
@@ -1380,6 +1382,7 @@ var SonioxRealtimeModelCodes = [
1380
1382
  "stt-rt-v3"
1381
1383
  ];
1382
1384
  var SonioxAsyncModelCodes = [
1385
+ "stt-async-v5",
1383
1386
  "stt-async-v4",
1384
1387
  "stt-async-preview",
1385
1388
  "stt-async-preview-v1",
@@ -1387,6 +1390,7 @@ var SonioxAsyncModelCodes = [
1387
1390
  ];
1388
1391
  var SonioxModelLabels = {
1389
1392
  "stt-rt-v4": "Speech-to-Text Real-time v4",
1393
+ "stt-async-v5": "Speech-to-Text Async v5",
1390
1394
  "stt-async-v4": "Speech-to-Text Async v4",
1391
1395
  "stt-rt-preview": "Speech-to-Text Real-time Preview",
1392
1396
  "stt-async-preview": "Speech-to-Text Async Preview",
@@ -1398,6 +1402,7 @@ var SonioxModelLabels = {
1398
1402
  };
1399
1403
  var SonioxModel = {
1400
1404
  stt_rt_v4: "stt-rt-v4",
1405
+ stt_async_v5: "stt-async-v5",
1401
1406
  stt_async_v4: "stt-async-v4",
1402
1407
  stt_rt_preview: "stt-rt-preview",
1403
1408
  stt_async_preview: "stt-async-preview",
@@ -1415,6 +1420,7 @@ var SonioxRealtimeModel = {
1415
1420
  stt_rt_v3: "stt-rt-v3"
1416
1421
  };
1417
1422
  var SonioxAsyncModel = {
1423
+ stt_async_v5: "stt-async-v5",
1418
1424
  stt_async_v4: "stt-async-v4",
1419
1425
  stt_async_preview: "stt-async-preview",
1420
1426
  stt_async_preview_v1: "stt-async-preview-v1",
@@ -1247,6 +1247,7 @@ var SonioxLanguage = {
1247
1247
  // src/generated/soniox/models.ts
1248
1248
  var SonioxModels = [
1249
1249
  { id: "stt-rt-v4", name: "Speech-to-Text Real-time v4", mode: "real_time" },
1250
+ { id: "stt-async-v5", name: "Speech-to-Text Async v5", mode: "async" },
1250
1251
  { id: "stt-async-v4", name: "Speech-to-Text Async v4", mode: "async" },
1251
1252
  { id: "stt-rt-preview", name: "Speech-to-Text Real-time Preview", mode: "real_time", aliasOf: "stt-rt-v4" },
1252
1253
  { id: "stt-async-preview", name: "Speech-to-Text Async Preview", mode: "async", aliasOf: "stt-async-v4" },
@@ -1258,6 +1259,7 @@ var SonioxModels = [
1258
1259
  ];
1259
1260
  var SonioxModelCodes = [
1260
1261
  "stt-rt-v4",
1262
+ "stt-async-v5",
1261
1263
  "stt-async-v4",
1262
1264
  "stt-rt-preview",
1263
1265
  "stt-async-preview",
@@ -1275,6 +1277,7 @@ var SonioxRealtimeModelCodes = [
1275
1277
  "stt-rt-v3"
1276
1278
  ];
1277
1279
  var SonioxAsyncModelCodes = [
1280
+ "stt-async-v5",
1278
1281
  "stt-async-v4",
1279
1282
  "stt-async-preview",
1280
1283
  "stt-async-preview-v1",
@@ -1282,6 +1285,7 @@ var SonioxAsyncModelCodes = [
1282
1285
  ];
1283
1286
  var SonioxModelLabels = {
1284
1287
  "stt-rt-v4": "Speech-to-Text Real-time v4",
1288
+ "stt-async-v5": "Speech-to-Text Async v5",
1285
1289
  "stt-async-v4": "Speech-to-Text Async v4",
1286
1290
  "stt-rt-preview": "Speech-to-Text Real-time Preview",
1287
1291
  "stt-async-preview": "Speech-to-Text Async Preview",
@@ -1293,6 +1297,7 @@ var SonioxModelLabels = {
1293
1297
  };
1294
1298
  var SonioxModel = {
1295
1299
  stt_rt_v4: "stt-rt-v4",
1300
+ stt_async_v5: "stt-async-v5",
1296
1301
  stt_async_v4: "stt-async-v4",
1297
1302
  stt_rt_preview: "stt-rt-preview",
1298
1303
  stt_async_preview: "stt-async-preview",
@@ -1310,6 +1315,7 @@ var SonioxRealtimeModel = {
1310
1315
  stt_rt_v3: "stt-rt-v3"
1311
1316
  };
1312
1317
  var SonioxAsyncModel = {
1318
+ stt_async_v5: "stt-async-v5",
1313
1319
  stt_async_v4: "stt-async-v4",
1314
1320
  stt_async_preview: "stt-async-preview",
1315
1321
  stt_async_preview_v1: "stt-async-preview-v1",
@@ -1,2 +1,2 @@
1
1
  import 'zod';
2
- export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, P as ProviderFieldConfigs, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields } from './field-configs-BVOZQiG3.mjs';
2
+ export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, P as ProviderFieldConfigs, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields } from './field-configs-B5rSB82C.mjs';
@@ -1,2 +1,2 @@
1
1
  import 'zod';
2
- export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, P as ProviderFieldConfigs, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields } from './field-configs-BVOZQiG3.js';
2
+ export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, P as ProviderFieldConfigs, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields } from './field-configs-B5rSB82C.js';
@@ -131,7 +131,7 @@ var FIELD_EQUIVALENCES = {
131
131
  description: "Primary transcription language or language detection",
132
132
  providers: {
133
133
  gladia: {
134
- transcription: ["detect_language", "language", "language_config"],
134
+ transcription: ["language", "language_config"],
135
135
  streaming: ["language_config"]
136
136
  },
137
137
  deepgram: {
@@ -105,7 +105,7 @@ var FIELD_EQUIVALENCES = {
105
105
  description: "Primary transcription language or language detection",
106
106
  providers: {
107
107
  gladia: {
108
- transcription: ["detect_language", "language", "language_config"],
108
+ transcription: ["language", "language_config"],
109
109
  streaming: ["language_config"]
110
110
  },
111
111
  deepgram: {
@@ -43,7 +43,7 @@ interface FieldMetadata {
43
43
  /** Nested fields for object types */
44
44
  nestedFields?: FieldMetadata[];
45
45
  }
46
- /** Gladia transcription field metadata (35 fields) */
46
+ /** Gladia transcription field metadata (34 fields) */
47
47
  declare const GLADIA_TRANSCRIPTION_FIELDS: readonly [{
48
48
  readonly name: "context_prompt";
49
49
  readonly type: "string";
@@ -73,12 +73,6 @@ declare const GLADIA_TRANSCRIPTION_FIELDS: readonly [{
73
73
  readonly min: 0;
74
74
  readonly max: 1;
75
75
  }];
76
- }, {
77
- readonly name: "detect_language";
78
- readonly type: "boolean";
79
- readonly required: true;
80
- readonly description: "**[Deprecated]** Use `language_config` instead. Detect the language from the given audio";
81
- readonly default: true;
82
76
  }, {
83
77
  readonly name: "enable_code_switching";
84
78
  readonly type: "boolean";
@@ -2406,12 +2400,6 @@ declare const PROVIDER_FIELDS: {
2406
2400
  readonly min: 0;
2407
2401
  readonly max: 1;
2408
2402
  }];
2409
- }, {
2410
- readonly name: "detect_language";
2411
- readonly type: "boolean";
2412
- readonly required: true;
2413
- readonly description: "**[Deprecated]** Use `language_config` instead. Detect the language from the given audio";
2414
- readonly default: true;
2415
2403
  }, {
2416
2404
  readonly name: "enable_code_switching";
2417
2405
  readonly type: "boolean";
@@ -43,7 +43,7 @@ interface FieldMetadata {
43
43
  /** Nested fields for object types */
44
44
  nestedFields?: FieldMetadata[];
45
45
  }
46
- /** Gladia transcription field metadata (35 fields) */
46
+ /** Gladia transcription field metadata (34 fields) */
47
47
  declare const GLADIA_TRANSCRIPTION_FIELDS: readonly [{
48
48
  readonly name: "context_prompt";
49
49
  readonly type: "string";
@@ -73,12 +73,6 @@ declare const GLADIA_TRANSCRIPTION_FIELDS: readonly [{
73
73
  readonly min: 0;
74
74
  readonly max: 1;
75
75
  }];
76
- }, {
77
- readonly name: "detect_language";
78
- readonly type: "boolean";
79
- readonly required: true;
80
- readonly description: "**[Deprecated]** Use `language_config` instead. Detect the language from the given audio";
81
- readonly default: true;
82
76
  }, {
83
77
  readonly name: "enable_code_switching";
84
78
  readonly type: "boolean";
@@ -2406,12 +2400,6 @@ declare const PROVIDER_FIELDS: {
2406
2400
  readonly min: 0;
2407
2401
  readonly max: 1;
2408
2402
  }];
2409
- }, {
2410
- readonly name: "detect_language";
2411
- readonly type: "boolean";
2412
- readonly required: true;
2413
- readonly description: "**[Deprecated]** Use `language_config` instead. Detect the language from the given audio";
2414
- readonly default: true;
2415
2403
  }, {
2416
2404
  readonly name: "enable_code_switching";
2417
2405
  readonly type: "boolean";
@@ -80,13 +80,6 @@ var GLADIA_TRANSCRIPTION_FIELDS = [
80
80
  }
81
81
  ]
82
82
  },
83
- {
84
- name: "detect_language",
85
- type: "boolean",
86
- required: true,
87
- description: "**[Deprecated]** Use `language_config` instead. Detect the language from the given audio",
88
- default: true
89
- },
90
83
  {
91
84
  name: "enable_code_switching",
92
85
  type: "boolean",
@@ -37,13 +37,6 @@ var GLADIA_TRANSCRIPTION_FIELDS = [
37
37
  }
38
38
  ]
39
39
  },
40
- {
41
- name: "detect_language",
42
- type: "boolean",
43
- required: true,
44
- description: "**[Deprecated]** Use `language_config` instead. Detect the language from the given audio",
45
- default: true
46
- },
47
40
  {
48
41
  name: "enable_code_switching",
49
42
  type: "boolean",
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { T as TranscriptionProvider, P as ProviderCapabilities, A as AudioInput
4
4
  export { k as AllLanguageCodes, o as AllProviders, a as AssemblyAICapabilities, i as AssemblyAILanguageCodes, b as AzureCapabilities, B as BatchOnlyProviderType, q as BatchOnlyProviders, C as CapabilityKeys, f as CapabilityLabels, D as DeepgramCapabilities, j as DeepgramLanguageCodes, E as ElevenLabsCapabilities, G as GladiaCapabilities, h as GladiaLanguageCodes, g as LanguageCode, L as LanguageLabels, O as OpenAICapabilities, d as ProviderCapabilitiesMap, l as ProviderDisplayNames, n as ProviderDocs, m as ProviderWebsites, c as SonioxCapabilities, S as SpeechmaticsCapabilities, e as StreamingProviderType, p as StreamingProviders } from './provider-metadata-oxzd1q6t.mjs';
5
5
  import { AssemblyAIRegionType, DeepgramRegionType, SpeechmaticsRegionType, SonioxModelCode, SonioxRegionType, ElevenLabsModelCode, ElevenLabsRegionType } from './constants.mjs';
6
6
  export { AssemblyAIEncoding, AssemblyAIEncodingType, AssemblyAILanguage, AssemblyAILanguageType, AssemblyAIRegion, AssemblyAISampleRate, AssemblyAISampleRateType, AssemblyAISpeechModel, AssemblyAISpeechModelType, AssemblyAIStatus, AssemblyAITranscriptionModel, AssemblyAITranscriptionModelType, AzureLocale, AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, AzureLocaleType, AzureLocales, DeepgramCallbackMethod, DeepgramEncoding, DeepgramIntentMode, DeepgramLanguage, DeepgramLanguageCode as DeepgramLanguageType, DeepgramModel, DeepgramModelCode as DeepgramModelType, DeepgramRedact, DeepgramRedactType, DeepgramRegion, DeepgramSampleRate, DeepgramStatus, DeepgramTTSContainer, DeepgramTTSEncoding, DeepgramTTSModel, DeepgramTTSSampleRate, DeepgramTopicMode, DeepgramTopicModeType, ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, ElevenLabsLanguages, ElevenLabsRegion, GladiaBitDepth, GladiaEncoding, GladiaLanguage, GladiaModel, GladiaRegion, GladiaSampleRate, GladiaStatus, GladiaTranslationLanguage, OpenAILanguageCodes, OpenAIModel, OpenAIRealtimeAudioFormat, OpenAIRealtimeModel, OpenAIRealtimeTranscriptionModel, OpenAIRealtimeTurnDetection, OpenAIResponseFormat, SonioxAsyncModel, SonioxAsyncModelCode, SonioxLanguage, SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, SonioxLanguageType, SonioxLanguages, SonioxModel, SonioxModelCodes, SonioxModelLabels, SonioxModels, SonioxRealtimeModel, SonioxRealtimeModelCode, SonioxRegion, SpeechmaticsLanguage, SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, SpeechmaticsLanguageType, SpeechmaticsLanguages, SpeechmaticsRegion } from './constants.mjs';
7
- export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, a as AssemblyAIZodSchemas, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, d as DeepgramZodSchemas, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, g as GladiaZodSchemas, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, o as OpenAIZodSchemas, P as ProviderFieldConfigs, b as SonioxApiZodSchemas, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, s as SonioxStreamingTypes, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, s as SonioxStreamingZodSchemas, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, Z as ZodFieldConfig, e as excludeFields, f as filterFields, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields, z as zodToFieldConfigs } from './field-configs-BVOZQiG3.mjs';
7
+ export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, a as AssemblyAIZodSchemas, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, d as DeepgramZodSchemas, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, g as GladiaZodSchemas, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, o as OpenAIZodSchemas, P as ProviderFieldConfigs, b as SonioxApiZodSchemas, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, s as SonioxStreamingTypes, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, s as SonioxStreamingZodSchemas, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, Z as ZodFieldConfig, e as excludeFields, f as filterFields, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields, z as zodToFieldConfigs } from './field-configs-B5rSB82C.mjs';
8
8
  import { RealtimeSttSession, CleanupTarget, FetchHttpClient, SonioxNodeClient, SonioxNodeClientOptions, RealtimeResult, RealtimeToken, SonioxLanguage, SonioxModel, TranslationConfig as TranslationConfig$1, SttSessionConfig, SttSessionOptions, ISonioxTranscript, ISonioxTranscription, TranscriptionContext, WaitOptions } from '@soniox/node';
9
9
  import { z } from 'zod';
10
10
  import { AxiosResponse, AxiosRequestConfig } from 'axios';
@@ -3913,6 +3913,15 @@ declare class GladiaAdapter extends BaseAdapter {
3913
3913
  * Get transcription result by ID
3914
3914
  */
3915
3915
  getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
3916
+ /**
3917
+ * Strip a Gladia language_config down to its v2-accepted shape ({languages, code_switching}).
3918
+ * Deprecated/legacy keys (notably `detect_language`, replaced by `language_config`) are
3919
+ * rejected by Gladia with HTTP 400 "Invalid parameter(s)". Because caller-supplied
3920
+ * `options.gladia` / `gladiaStreaming` objects are spread verbatim into the request, such a
3921
+ * key can ride straight through; rebuilding a fresh object drops anything outside the
3922
+ * whitelist. Returns undefined when nothing valid remains so the caller can omit the field.
3923
+ */
3924
+ private static sanitizeLanguageConfig;
3916
3925
  /**
3917
3926
  * Build Gladia transcription request from unified options
3918
3927
  */
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { T as TranscriptionProvider, P as ProviderCapabilities, A as AudioInput
4
4
  export { k as AllLanguageCodes, o as AllProviders, a as AssemblyAICapabilities, i as AssemblyAILanguageCodes, b as AzureCapabilities, B as BatchOnlyProviderType, q as BatchOnlyProviders, C as CapabilityKeys, f as CapabilityLabels, D as DeepgramCapabilities, j as DeepgramLanguageCodes, E as ElevenLabsCapabilities, G as GladiaCapabilities, h as GladiaLanguageCodes, g as LanguageCode, L as LanguageLabels, O as OpenAICapabilities, d as ProviderCapabilitiesMap, l as ProviderDisplayNames, n as ProviderDocs, m as ProviderWebsites, c as SonioxCapabilities, S as SpeechmaticsCapabilities, e as StreamingProviderType, p as StreamingProviders } from './provider-metadata-CiSA4fWP.js';
5
5
  import { AssemblyAIRegionType, DeepgramRegionType, SpeechmaticsRegionType, SonioxModelCode, SonioxRegionType, ElevenLabsModelCode, ElevenLabsRegionType } from './constants.js';
6
6
  export { AssemblyAIEncoding, AssemblyAIEncodingType, AssemblyAILanguage, AssemblyAILanguageType, AssemblyAIRegion, AssemblyAISampleRate, AssemblyAISampleRateType, AssemblyAISpeechModel, AssemblyAISpeechModelType, AssemblyAIStatus, AssemblyAITranscriptionModel, AssemblyAITranscriptionModelType, AzureLocale, AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, AzureLocaleType, AzureLocales, DeepgramCallbackMethod, DeepgramEncoding, DeepgramIntentMode, DeepgramLanguage, DeepgramLanguageCode as DeepgramLanguageType, DeepgramModel, DeepgramModelCode as DeepgramModelType, DeepgramRedact, DeepgramRedactType, DeepgramRegion, DeepgramSampleRate, DeepgramStatus, DeepgramTTSContainer, DeepgramTTSEncoding, DeepgramTTSModel, DeepgramTTSSampleRate, DeepgramTopicMode, DeepgramTopicModeType, ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, ElevenLabsLanguages, ElevenLabsRegion, GladiaBitDepth, GladiaEncoding, GladiaLanguage, GladiaModel, GladiaRegion, GladiaSampleRate, GladiaStatus, GladiaTranslationLanguage, OpenAILanguageCodes, OpenAIModel, OpenAIRealtimeAudioFormat, OpenAIRealtimeModel, OpenAIRealtimeTranscriptionModel, OpenAIRealtimeTurnDetection, OpenAIResponseFormat, SonioxAsyncModel, SonioxAsyncModelCode, SonioxLanguage, SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, SonioxLanguageType, SonioxLanguages, SonioxModel, SonioxModelCodes, SonioxModelLabels, SonioxModels, SonioxRealtimeModel, SonioxRealtimeModelCode, SonioxRegion, SpeechmaticsLanguage, SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, SpeechmaticsLanguageType, SpeechmaticsLanguages, SpeechmaticsRegion } from './constants.js';
7
- export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, a as AssemblyAIZodSchemas, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, d as DeepgramZodSchemas, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, g as GladiaZodSchemas, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, o as OpenAIZodSchemas, P as ProviderFieldConfigs, b as SonioxApiZodSchemas, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, s as SonioxStreamingTypes, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, s as SonioxStreamingZodSchemas, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, Z as ZodFieldConfig, e as excludeFields, f as filterFields, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields, z as zodToFieldConfigs } from './field-configs-BVOZQiG3.js';
7
+ export { B as AssemblyAIListFilterFieldName, L as AssemblyAIListFilterSchema, E as AssemblyAIStreamingConfig, x as AssemblyAIStreamingFieldName, J as AssemblyAIStreamingSchema, H as AssemblyAIStreamingUpdateConfig, y as AssemblyAIStreamingUpdateFieldName, K as AssemblyAIStreamingUpdateSchema, C as AssemblyAITranscriptionConfig, A as AssemblyAITranscriptionFieldName, I as AssemblyAITranscriptionSchema, a as AssemblyAIZodSchemas, R as AzureListFilterFieldName, U as AzureListFilterSchema, S as AzureTranscriptionConfig, Q as AzureTranscriptionFieldName, T as AzureTranscriptionSchema, q as DeepgramListFilterFieldName, w as DeepgramListFilterSchema, p as DeepgramStreamingFieldName, t as DeepgramStreamingOnlyConfig, v as DeepgramStreamingOnlySchema, r as DeepgramTranscriptionConfig, D as DeepgramTranscriptionFieldName, u as DeepgramTranscriptionSchema, d as DeepgramZodSchemas, Z as FieldConfig, aK as FieldConfigProvider, c as FieldOverrides, F as FieldType, i as GladiaListFilterFieldName, n as GladiaListFilterSchema, k as GladiaStreamingConfig, h as GladiaStreamingFieldName, m as GladiaStreamingSchema, j as GladiaTranscriptionConfig, G as GladiaTranscriptionFieldName, l as GladiaTranscriptionSchema, g as GladiaZodSchemas, M as OpenAITranscriptionConfig, O as OpenAITranscriptionFieldName, N as OpenAITranscriptionSchema, o as OpenAIZodSchemas, P as ProviderFieldConfigs, b as SonioxApiZodSchemas, a8 as SonioxListFilterFieldName, af as SonioxListFilterSchema, aa as SonioxStreamingConfig, a6 as SonioxStreamingFieldName, ad as SonioxStreamingSchema, s as SonioxStreamingTypes, ab as SonioxStreamingUpdateConfig, a7 as SonioxStreamingUpdateFieldName, ae as SonioxStreamingUpdateSchema, s as SonioxStreamingZodSchemas, a9 as SonioxTranscriptionConfig, a5 as SonioxTranscriptionFieldName, ac as SonioxTranscriptionSchema, Y as SpeechmaticsListFilterFieldName, a4 as SpeechmaticsListFilterSchema, $ as SpeechmaticsStreamingConfig, W as SpeechmaticsStreamingFieldName, a2 as SpeechmaticsStreamingSchema, a0 as SpeechmaticsStreamingUpdateConfig, X as SpeechmaticsStreamingUpdateFieldName, a3 as SpeechmaticsStreamingUpdateSchema, _ as SpeechmaticsTranscriptionConfig, V as SpeechmaticsTranscriptionFieldName, a1 as SpeechmaticsTranscriptionSchema, ah as StreamingFieldName, ag as TranscriptionFieldName, Z as ZodFieldConfig, e as excludeFields, f as filterFields, aM as getAllFieldConfigs, au as getAssemblyAIFieldConfigs, ar as getAssemblyAIListFilterFields, as as getAssemblyAIStreamingFields, at as getAssemblyAIStreamingUpdateFields, aq as getAssemblyAITranscriptionFields, az as getAzureFieldConfigs, ay as getAzureListFilterFields, ax as getAzureTranscriptionFields, ap as getDeepgramFieldConfigs, an as getDeepgramListFilterFields, ao as getDeepgramStreamingFields, am as getDeepgramTranscriptionFields, al as getGladiaFieldConfigs, aj as getGladiaListFilterFields, ak as getGladiaStreamingFields, ai as getGladiaTranscriptionFields, aw as getOpenAIFieldConfigs, av as getOpenAITranscriptionFields, aL as getProviderFieldConfigs, aJ as getSonioxFieldConfigs, aG as getSonioxListFilterFields, aH as getSonioxStreamingFields, aI as getSonioxStreamingUpdateFields, aF as getSonioxTranscriptionFields, aE as getSpeechmaticsFieldConfigs, aB as getSpeechmaticsListFilterFields, aC as getSpeechmaticsStreamingFields, aD as getSpeechmaticsStreamingUpdateFields, aA as getSpeechmaticsTranscriptionFields, z as zodToFieldConfigs } from './field-configs-B5rSB82C.js';
8
8
  import { RealtimeSttSession, CleanupTarget, FetchHttpClient, SonioxNodeClient, SonioxNodeClientOptions, RealtimeResult, RealtimeToken, SonioxLanguage, SonioxModel, TranslationConfig as TranslationConfig$1, SttSessionConfig, SttSessionOptions, ISonioxTranscript, ISonioxTranscription, TranscriptionContext, WaitOptions } from '@soniox/node';
9
9
  import { z } from 'zod';
10
10
  import { AxiosResponse, AxiosRequestConfig } from 'axios';
@@ -3913,6 +3913,15 @@ declare class GladiaAdapter extends BaseAdapter {
3913
3913
  * Get transcription result by ID
3914
3914
  */
3915
3915
  getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
3916
+ /**
3917
+ * Strip a Gladia language_config down to its v2-accepted shape ({languages, code_switching}).
3918
+ * Deprecated/legacy keys (notably `detect_language`, replaced by `language_config`) are
3919
+ * rejected by Gladia with HTTP 400 "Invalid parameter(s)". Because caller-supplied
3920
+ * `options.gladia` / `gladiaStreaming` objects are spread verbatim into the request, such a
3921
+ * key can ride straight through; rebuilding a fresh object drops anything outside the
3922
+ * whitelist. Returns undefined when nothing valid remains so the caller can omit the field.
3923
+ */
3924
+ private static sanitizeLanguageConfig;
3916
3925
  /**
3917
3926
  * Build Gladia transcription request from unified options
3918
3927
  */
package/dist/index.js CHANGED
@@ -986,6 +986,7 @@ var SonioxLanguage = {
986
986
  // src/generated/soniox/models.ts
987
987
  var SonioxModels = [
988
988
  { id: "stt-rt-v4", name: "Speech-to-Text Real-time v4", mode: "real_time" },
989
+ { id: "stt-async-v5", name: "Speech-to-Text Async v5", mode: "async" },
989
990
  { id: "stt-async-v4", name: "Speech-to-Text Async v4", mode: "async" },
990
991
  { id: "stt-rt-preview", name: "Speech-to-Text Real-time Preview", mode: "real_time", aliasOf: "stt-rt-v4" },
991
992
  { id: "stt-async-preview", name: "Speech-to-Text Async Preview", mode: "async", aliasOf: "stt-async-v4" },
@@ -997,6 +998,7 @@ var SonioxModels = [
997
998
  ];
998
999
  var SonioxModelCodes = [
999
1000
  "stt-rt-v4",
1001
+ "stt-async-v5",
1000
1002
  "stt-async-v4",
1001
1003
  "stt-rt-preview",
1002
1004
  "stt-async-preview",
@@ -1008,6 +1010,7 @@ var SonioxModelCodes = [
1008
1010
  ];
1009
1011
  var SonioxModelLabels = {
1010
1012
  "stt-rt-v4": "Speech-to-Text Real-time v4",
1013
+ "stt-async-v5": "Speech-to-Text Async v5",
1011
1014
  "stt-async-v4": "Speech-to-Text Async v4",
1012
1015
  "stt-rt-preview": "Speech-to-Text Real-time Preview",
1013
1016
  "stt-async-preview": "Speech-to-Text Async Preview",
@@ -1019,6 +1022,7 @@ var SonioxModelLabels = {
1019
1022
  };
1020
1023
  var SonioxModel = {
1021
1024
  stt_rt_v4: "stt-rt-v4",
1025
+ stt_async_v5: "stt-async-v5",
1022
1026
  stt_async_v4: "stt-async-v4",
1023
1027
  stt_rt_preview: "stt-rt-preview",
1024
1028
  stt_async_preview: "stt-async-preview",
@@ -1036,6 +1040,7 @@ var SonioxRealtimeModel = {
1036
1040
  stt_rt_v3: "stt-rt-v3"
1037
1041
  };
1038
1042
  var SonioxAsyncModel = {
1043
+ stt_async_v5: "stt-async-v5",
1039
1044
  stt_async_v4: "stt-async-v4",
1040
1045
  stt_async_preview: "stt-async-preview",
1041
1046
  stt_async_preview_v1: "stt-async-preview-v1",
@@ -4276,7 +4281,7 @@ var streamingControllerGetAudioV2 = (id, options) => {
4276
4281
  };
4277
4282
 
4278
4283
  // src/adapters/gladia-adapter.ts
4279
- var GladiaAdapter = class extends BaseAdapter {
4284
+ var GladiaAdapter = class _GladiaAdapter extends BaseAdapter {
4280
4285
  constructor() {
4281
4286
  super(...arguments);
4282
4287
  this.name = "gladia";
@@ -4415,6 +4420,22 @@ var GladiaAdapter = class extends BaseAdapter {
4415
4420
  return this.createErrorResponse(error);
4416
4421
  }
4417
4422
  }
4423
+ /**
4424
+ * Strip a Gladia language_config down to its v2-accepted shape ({languages, code_switching}).
4425
+ * Deprecated/legacy keys (notably `detect_language`, replaced by `language_config`) are
4426
+ * rejected by Gladia with HTTP 400 "Invalid parameter(s)". Because caller-supplied
4427
+ * `options.gladia` / `gladiaStreaming` objects are spread verbatim into the request, such a
4428
+ * key can ride straight through; rebuilding a fresh object drops anything outside the
4429
+ * whitelist. Returns undefined when nothing valid remains so the caller can omit the field.
4430
+ */
4431
+ static sanitizeLanguageConfig(config) {
4432
+ if (!config) return void 0;
4433
+ const { languages, code_switching } = config;
4434
+ const sanitized = {};
4435
+ if (languages !== void 0) sanitized.languages = languages;
4436
+ if (code_switching !== void 0) sanitized.code_switching = code_switching;
4437
+ return Object.keys(sanitized).length > 0 ? sanitized : void 0;
4438
+ }
4418
4439
  /**
4419
4440
  * Build Gladia transcription request from unified options
4420
4441
  */
@@ -4476,6 +4497,12 @@ var GladiaAdapter = class extends BaseAdapter {
4476
4497
  request.audio_to_llm_config = options.audioToLlm;
4477
4498
  }
4478
4499
  }
4500
+ const sanitizedLanguageConfig = _GladiaAdapter.sanitizeLanguageConfig(request.language_config);
4501
+ if (sanitizedLanguageConfig) {
4502
+ request.language_config = sanitizedLanguageConfig;
4503
+ } else {
4504
+ delete request.language_config;
4505
+ }
4479
4506
  return request;
4480
4507
  }
4481
4508
  /**
@@ -5115,6 +5142,14 @@ var GladiaAdapter = class extends BaseAdapter {
5115
5142
  code_switching: options?.codeSwitching ?? gladiaOpts.language_config?.code_switching
5116
5143
  };
5117
5144
  }
5145
+ const sanitizedLanguageConfig = _GladiaAdapter.sanitizeLanguageConfig(
5146
+ streamingRequest.language_config
5147
+ );
5148
+ if (sanitizedLanguageConfig) {
5149
+ streamingRequest.language_config = sanitizedLanguageConfig;
5150
+ } else {
5151
+ delete streamingRequest.language_config;
5152
+ }
5118
5153
  if (gladiaOpts.pre_processing) {
5119
5154
  streamingRequest.pre_processing = gladiaOpts.pre_processing;
5120
5155
  }
@@ -9122,11 +9157,12 @@ var SpeechmaticsAdapter = class extends BaseAdapter {
9122
9157
  requestBody = { config: JSON.stringify(jobConfig) };
9123
9158
  headers = { "Content-Type": "application/json" };
9124
9159
  } else if (audio.type === "file") {
9125
- requestBody = {
9126
- config: JSON.stringify(jobConfig),
9127
- data_file: audio.file
9128
- };
9129
- headers = { "Content-Type": "multipart/form-data" };
9160
+ const formData = new FormData();
9161
+ formData.append("config", JSON.stringify(jobConfig));
9162
+ const fileBlob = audio.file instanceof Blob ? audio.file : new Blob([audio.file]);
9163
+ formData.append("data_file", fileBlob, "audio");
9164
+ requestBody = formData;
9165
+ headers = {};
9130
9166
  } else {
9131
9167
  return {
9132
9168
  success: false,
package/dist/index.mjs CHANGED
@@ -754,6 +754,7 @@ var SonioxLanguage = {
754
754
  // src/generated/soniox/models.ts
755
755
  var SonioxModels = [
756
756
  { id: "stt-rt-v4", name: "Speech-to-Text Real-time v4", mode: "real_time" },
757
+ { id: "stt-async-v5", name: "Speech-to-Text Async v5", mode: "async" },
757
758
  { id: "stt-async-v4", name: "Speech-to-Text Async v4", mode: "async" },
758
759
  { id: "stt-rt-preview", name: "Speech-to-Text Real-time Preview", mode: "real_time", aliasOf: "stt-rt-v4" },
759
760
  { id: "stt-async-preview", name: "Speech-to-Text Async Preview", mode: "async", aliasOf: "stt-async-v4" },
@@ -765,6 +766,7 @@ var SonioxModels = [
765
766
  ];
766
767
  var SonioxModelCodes = [
767
768
  "stt-rt-v4",
769
+ "stt-async-v5",
768
770
  "stt-async-v4",
769
771
  "stt-rt-preview",
770
772
  "stt-async-preview",
@@ -776,6 +778,7 @@ var SonioxModelCodes = [
776
778
  ];
777
779
  var SonioxModelLabels = {
778
780
  "stt-rt-v4": "Speech-to-Text Real-time v4",
781
+ "stt-async-v5": "Speech-to-Text Async v5",
779
782
  "stt-async-v4": "Speech-to-Text Async v4",
780
783
  "stt-rt-preview": "Speech-to-Text Real-time Preview",
781
784
  "stt-async-preview": "Speech-to-Text Async Preview",
@@ -787,6 +790,7 @@ var SonioxModelLabels = {
787
790
  };
788
791
  var SonioxModel = {
789
792
  stt_rt_v4: "stt-rt-v4",
793
+ stt_async_v5: "stt-async-v5",
790
794
  stt_async_v4: "stt-async-v4",
791
795
  stt_rt_preview: "stt-rt-preview",
792
796
  stt_async_preview: "stt-async-preview",
@@ -804,6 +808,7 @@ var SonioxRealtimeModel = {
804
808
  stt_rt_v3: "stt-rt-v3"
805
809
  };
806
810
  var SonioxAsyncModel = {
811
+ stt_async_v5: "stt-async-v5",
807
812
  stt_async_v4: "stt-async-v4",
808
813
  stt_async_preview: "stt-async-preview",
809
814
  stt_async_preview_v1: "stt-async-preview-v1",
@@ -4044,7 +4049,7 @@ var streamingControllerGetAudioV2 = (id, options) => {
4044
4049
  };
4045
4050
 
4046
4051
  // src/adapters/gladia-adapter.ts
4047
- var GladiaAdapter = class extends BaseAdapter {
4052
+ var GladiaAdapter = class _GladiaAdapter extends BaseAdapter {
4048
4053
  constructor() {
4049
4054
  super(...arguments);
4050
4055
  this.name = "gladia";
@@ -4183,6 +4188,22 @@ var GladiaAdapter = class extends BaseAdapter {
4183
4188
  return this.createErrorResponse(error);
4184
4189
  }
4185
4190
  }
4191
+ /**
4192
+ * Strip a Gladia language_config down to its v2-accepted shape ({languages, code_switching}).
4193
+ * Deprecated/legacy keys (notably `detect_language`, replaced by `language_config`) are
4194
+ * rejected by Gladia with HTTP 400 "Invalid parameter(s)". Because caller-supplied
4195
+ * `options.gladia` / `gladiaStreaming` objects are spread verbatim into the request, such a
4196
+ * key can ride straight through; rebuilding a fresh object drops anything outside the
4197
+ * whitelist. Returns undefined when nothing valid remains so the caller can omit the field.
4198
+ */
4199
+ static sanitizeLanguageConfig(config) {
4200
+ if (!config) return void 0;
4201
+ const { languages, code_switching } = config;
4202
+ const sanitized = {};
4203
+ if (languages !== void 0) sanitized.languages = languages;
4204
+ if (code_switching !== void 0) sanitized.code_switching = code_switching;
4205
+ return Object.keys(sanitized).length > 0 ? sanitized : void 0;
4206
+ }
4186
4207
  /**
4187
4208
  * Build Gladia transcription request from unified options
4188
4209
  */
@@ -4244,6 +4265,12 @@ var GladiaAdapter = class extends BaseAdapter {
4244
4265
  request.audio_to_llm_config = options.audioToLlm;
4245
4266
  }
4246
4267
  }
4268
+ const sanitizedLanguageConfig = _GladiaAdapter.sanitizeLanguageConfig(request.language_config);
4269
+ if (sanitizedLanguageConfig) {
4270
+ request.language_config = sanitizedLanguageConfig;
4271
+ } else {
4272
+ delete request.language_config;
4273
+ }
4247
4274
  return request;
4248
4275
  }
4249
4276
  /**
@@ -4883,6 +4910,14 @@ var GladiaAdapter = class extends BaseAdapter {
4883
4910
  code_switching: options?.codeSwitching ?? gladiaOpts.language_config?.code_switching
4884
4911
  };
4885
4912
  }
4913
+ const sanitizedLanguageConfig = _GladiaAdapter.sanitizeLanguageConfig(
4914
+ streamingRequest.language_config
4915
+ );
4916
+ if (sanitizedLanguageConfig) {
4917
+ streamingRequest.language_config = sanitizedLanguageConfig;
4918
+ } else {
4919
+ delete streamingRequest.language_config;
4920
+ }
4886
4921
  if (gladiaOpts.pre_processing) {
4887
4922
  streamingRequest.pre_processing = gladiaOpts.pre_processing;
4888
4923
  }
@@ -8890,11 +8925,12 @@ var SpeechmaticsAdapter = class extends BaseAdapter {
8890
8925
  requestBody = { config: JSON.stringify(jobConfig) };
8891
8926
  headers = { "Content-Type": "application/json" };
8892
8927
  } else if (audio.type === "file") {
8893
- requestBody = {
8894
- config: JSON.stringify(jobConfig),
8895
- data_file: audio.file
8896
- };
8897
- headers = { "Content-Type": "multipart/form-data" };
8928
+ const formData = new FormData();
8929
+ formData.append("config", JSON.stringify(jobConfig));
8930
+ const fileBlob = audio.file instanceof Blob ? audio.file : new Blob([audio.file]);
8931
+ formData.append("data_file", fileBlob, "audio");
8932
+ requestBody = formData;
8933
+ headers = {};
8898
8934
  } else {
8899
8935
  return {
8900
8936
  success: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voice-router-dev",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "Universal speech-to-text router for Gladia, AssemblyAI, Deepgram, Azure, OpenAI Whisper, Speechmatics, Soniox, and ElevenLabs",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3199,12 +3199,12 @@ declare const createTranscriptBody: z.ZodObject<{
3199
3199
  }, "strip", z.ZodTypeAny, {
3200
3200
  fallback_language: string;
3201
3201
  code_switching_confidence_threshold: number;
3202
- expected_languages?: string[] | undefined;
3203
3202
  code_switching?: boolean | undefined;
3203
+ expected_languages?: string[] | undefined;
3204
3204
  }, {
3205
+ code_switching?: boolean | undefined;
3205
3206
  expected_languages?: string[] | undefined;
3206
3207
  fallback_language?: string | undefined;
3207
- code_switching?: boolean | undefined;
3208
3208
  code_switching_confidence_threshold?: number | undefined;
3209
3209
  }>>;
3210
3210
  multichannel: z.ZodOptional<z.ZodBoolean>;
@@ -3443,8 +3443,8 @@ declare const createTranscriptBody: z.ZodObject<{
3443
3443
  language_detection_options?: {
3444
3444
  fallback_language: string;
3445
3445
  code_switching_confidence_threshold: number;
3446
- expected_languages?: string[] | undefined;
3447
3446
  code_switching?: boolean | undefined;
3447
+ expected_languages?: string[] | undefined;
3448
3448
  } | undefined;
3449
3449
  multichannel?: boolean | undefined;
3450
3450
  redact_pii?: boolean | undefined;
@@ -3526,9 +3526,9 @@ declare const createTranscriptBody: z.ZodObject<{
3526
3526
  language_confidence_threshold?: number | undefined;
3527
3527
  language_detection?: boolean | undefined;
3528
3528
  language_detection_options?: {
3529
+ code_switching?: boolean | undefined;
3529
3530
  expected_languages?: string[] | undefined;
3530
3531
  fallback_language?: string | undefined;
3531
- code_switching?: boolean | undefined;
3532
3532
  code_switching_confidence_threshold?: number | undefined;
3533
3533
  } | undefined;
3534
3534
  multichannel?: boolean | undefined;
@@ -3911,12 +3911,12 @@ declare const createTranscriptResponse: z.ZodObject<{
3911
3911
  }, "strip", z.ZodTypeAny, {
3912
3912
  fallback_language: string;
3913
3913
  code_switching_confidence_threshold: number;
3914
- expected_languages?: string[] | undefined;
3915
3914
  code_switching?: boolean | undefined;
3915
+ expected_languages?: string[] | undefined;
3916
3916
  }, {
3917
+ code_switching?: boolean | undefined;
3917
3918
  expected_languages?: string[] | undefined;
3918
3919
  fallback_language?: string | undefined;
3919
- code_switching?: boolean | undefined;
3920
3920
  code_switching_confidence_threshold?: number | undefined;
3921
3921
  }>>;
3922
3922
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -4564,8 +4564,8 @@ declare const createTranscriptResponse: z.ZodObject<{
4564
4564
  language_detection_options?: {
4565
4565
  fallback_language: string;
4566
4566
  code_switching_confidence_threshold: number;
4567
- expected_languages?: string[] | undefined;
4568
4567
  code_switching?: boolean | undefined;
4568
+ expected_languages?: string[] | undefined;
4569
4569
  } | undefined;
4570
4570
  multichannel?: boolean | null | undefined;
4571
4571
  redact_pii_audio?: boolean | null | undefined;
@@ -4806,9 +4806,9 @@ declare const createTranscriptResponse: z.ZodObject<{
4806
4806
  language_codes?: ("af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bn" | "bo" | "br" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fa" | "fi" | "fo" | "fr" | "gl" | "gu" | "ha" | "haw" | "he" | "hi" | "hr" | "ht" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "jw" | "ka" | "kk" | "km" | "kn" | "ko" | "la" | "lb" | "ln" | "lo" | "lt" | "lv" | "mg" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "ne" | "nl" | "nn" | "no" | "oc" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "sa" | "sd" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "tk" | "tl" | "tr" | "tt" | "uk" | "ur" | "uz" | "vi" | "yi" | "yo" | "zh" | "en_au" | "en_uk" | "en_us")[] | null | undefined;
4807
4807
  language_detection?: boolean | null | undefined;
4808
4808
  language_detection_options?: {
4809
+ code_switching?: boolean | undefined;
4809
4810
  expected_languages?: string[] | undefined;
4810
4811
  fallback_language?: string | undefined;
4811
- code_switching?: boolean | undefined;
4812
4812
  code_switching_confidence_threshold?: number | undefined;
4813
4813
  } | undefined;
4814
4814
  multichannel?: boolean | null | undefined;
@@ -5391,12 +5391,12 @@ declare const getTranscriptResponse: z.ZodObject<{
5391
5391
  }, "strip", z.ZodTypeAny, {
5392
5392
  fallback_language: string;
5393
5393
  code_switching_confidence_threshold: number;
5394
- expected_languages?: string[] | undefined;
5395
5394
  code_switching?: boolean | undefined;
5395
+ expected_languages?: string[] | undefined;
5396
5396
  }, {
5397
+ code_switching?: boolean | undefined;
5397
5398
  expected_languages?: string[] | undefined;
5398
5399
  fallback_language?: string | undefined;
5399
- code_switching?: boolean | undefined;
5400
5400
  code_switching_confidence_threshold?: number | undefined;
5401
5401
  }>>;
5402
5402
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -6044,8 +6044,8 @@ declare const getTranscriptResponse: z.ZodObject<{
6044
6044
  language_detection_options?: {
6045
6045
  fallback_language: string;
6046
6046
  code_switching_confidence_threshold: number;
6047
- expected_languages?: string[] | undefined;
6048
6047
  code_switching?: boolean | undefined;
6048
+ expected_languages?: string[] | undefined;
6049
6049
  } | undefined;
6050
6050
  multichannel?: boolean | null | undefined;
6051
6051
  redact_pii_audio?: boolean | null | undefined;
@@ -6286,9 +6286,9 @@ declare const getTranscriptResponse: z.ZodObject<{
6286
6286
  language_codes?: ("af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bn" | "bo" | "br" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fa" | "fi" | "fo" | "fr" | "gl" | "gu" | "ha" | "haw" | "he" | "hi" | "hr" | "ht" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "jw" | "ka" | "kk" | "km" | "kn" | "ko" | "la" | "lb" | "ln" | "lo" | "lt" | "lv" | "mg" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "ne" | "nl" | "nn" | "no" | "oc" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "sa" | "sd" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "tk" | "tl" | "tr" | "tt" | "uk" | "ur" | "uz" | "vi" | "yi" | "yo" | "zh" | "en_au" | "en_uk" | "en_us")[] | null | undefined;
6287
6287
  language_detection?: boolean | null | undefined;
6288
6288
  language_detection_options?: {
6289
+ code_switching?: boolean | undefined;
6289
6290
  expected_languages?: string[] | undefined;
6290
6291
  fallback_language?: string | undefined;
6291
- code_switching?: boolean | undefined;
6292
6292
  code_switching_confidence_threshold?: number | undefined;
6293
6293
  } | undefined;
6294
6294
  multichannel?: boolean | null | undefined;
@@ -6747,12 +6747,12 @@ declare const deleteTranscriptResponse: z.ZodObject<{
6747
6747
  }, "strip", z.ZodTypeAny, {
6748
6748
  fallback_language: string;
6749
6749
  code_switching_confidence_threshold: number;
6750
- expected_languages?: string[] | undefined;
6751
6750
  code_switching?: boolean | undefined;
6751
+ expected_languages?: string[] | undefined;
6752
6752
  }, {
6753
+ code_switching?: boolean | undefined;
6753
6754
  expected_languages?: string[] | undefined;
6754
6755
  fallback_language?: string | undefined;
6755
- code_switching?: boolean | undefined;
6756
6756
  code_switching_confidence_threshold?: number | undefined;
6757
6757
  }>>;
6758
6758
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -7400,8 +7400,8 @@ declare const deleteTranscriptResponse: z.ZodObject<{
7400
7400
  language_detection_options?: {
7401
7401
  fallback_language: string;
7402
7402
  code_switching_confidence_threshold: number;
7403
- expected_languages?: string[] | undefined;
7404
7403
  code_switching?: boolean | undefined;
7404
+ expected_languages?: string[] | undefined;
7405
7405
  } | undefined;
7406
7406
  multichannel?: boolean | null | undefined;
7407
7407
  redact_pii_audio?: boolean | null | undefined;
@@ -7642,9 +7642,9 @@ declare const deleteTranscriptResponse: z.ZodObject<{
7642
7642
  language_codes?: ("af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bn" | "bo" | "br" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fa" | "fi" | "fo" | "fr" | "gl" | "gu" | "ha" | "haw" | "he" | "hi" | "hr" | "ht" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "jw" | "ka" | "kk" | "km" | "kn" | "ko" | "la" | "lb" | "ln" | "lo" | "lt" | "lv" | "mg" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "ne" | "nl" | "nn" | "no" | "oc" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "sa" | "sd" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "tk" | "tl" | "tr" | "tt" | "uk" | "ur" | "uz" | "vi" | "yi" | "yo" | "zh" | "en_au" | "en_uk" | "en_us")[] | null | undefined;
7643
7643
  language_detection?: boolean | null | undefined;
7644
7644
  language_detection_options?: {
7645
+ code_switching?: boolean | undefined;
7645
7646
  expected_languages?: string[] | undefined;
7646
7647
  fallback_language?: string | undefined;
7647
- code_switching?: boolean | undefined;
7648
7648
  code_switching_confidence_threshold?: number | undefined;
7649
7649
  } | undefined;
7650
7650
  multichannel?: boolean | null | undefined;
@@ -44537,12 +44537,12 @@ declare const AssemblyAITranscriptionSchema: z.ZodObject<{
44537
44537
  }, "strip", z.ZodTypeAny, {
44538
44538
  fallback_language: string;
44539
44539
  code_switching_confidence_threshold: number;
44540
- expected_languages?: string[] | undefined;
44541
44540
  code_switching?: boolean | undefined;
44541
+ expected_languages?: string[] | undefined;
44542
44542
  }, {
44543
+ code_switching?: boolean | undefined;
44543
44544
  expected_languages?: string[] | undefined;
44544
44545
  fallback_language?: string | undefined;
44545
- code_switching?: boolean | undefined;
44546
44546
  code_switching_confidence_threshold?: number | undefined;
44547
44547
  }>>;
44548
44548
  multichannel: z.ZodOptional<z.ZodBoolean>;
@@ -44781,8 +44781,8 @@ declare const AssemblyAITranscriptionSchema: z.ZodObject<{
44781
44781
  language_detection_options?: {
44782
44782
  fallback_language: string;
44783
44783
  code_switching_confidence_threshold: number;
44784
- expected_languages?: string[] | undefined;
44785
44784
  code_switching?: boolean | undefined;
44785
+ expected_languages?: string[] | undefined;
44786
44786
  } | undefined;
44787
44787
  multichannel?: boolean | undefined;
44788
44788
  redact_pii?: boolean | undefined;
@@ -44864,9 +44864,9 @@ declare const AssemblyAITranscriptionSchema: z.ZodObject<{
44864
44864
  language_confidence_threshold?: number | undefined;
44865
44865
  language_detection?: boolean | undefined;
44866
44866
  language_detection_options?: {
44867
+ code_switching?: boolean | undefined;
44867
44868
  expected_languages?: string[] | undefined;
44868
44869
  fallback_language?: string | undefined;
44869
- code_switching?: boolean | undefined;
44870
44870
  code_switching_confidence_threshold?: number | undefined;
44871
44871
  } | undefined;
44872
44872
  multichannel?: boolean | undefined;
@@ -3199,12 +3199,12 @@ declare const createTranscriptBody: z.ZodObject<{
3199
3199
  }, "strip", z.ZodTypeAny, {
3200
3200
  fallback_language: string;
3201
3201
  code_switching_confidence_threshold: number;
3202
- expected_languages?: string[] | undefined;
3203
3202
  code_switching?: boolean | undefined;
3203
+ expected_languages?: string[] | undefined;
3204
3204
  }, {
3205
+ code_switching?: boolean | undefined;
3205
3206
  expected_languages?: string[] | undefined;
3206
3207
  fallback_language?: string | undefined;
3207
- code_switching?: boolean | undefined;
3208
3208
  code_switching_confidence_threshold?: number | undefined;
3209
3209
  }>>;
3210
3210
  multichannel: z.ZodOptional<z.ZodBoolean>;
@@ -3443,8 +3443,8 @@ declare const createTranscriptBody: z.ZodObject<{
3443
3443
  language_detection_options?: {
3444
3444
  fallback_language: string;
3445
3445
  code_switching_confidence_threshold: number;
3446
- expected_languages?: string[] | undefined;
3447
3446
  code_switching?: boolean | undefined;
3447
+ expected_languages?: string[] | undefined;
3448
3448
  } | undefined;
3449
3449
  multichannel?: boolean | undefined;
3450
3450
  redact_pii?: boolean | undefined;
@@ -3526,9 +3526,9 @@ declare const createTranscriptBody: z.ZodObject<{
3526
3526
  language_confidence_threshold?: number | undefined;
3527
3527
  language_detection?: boolean | undefined;
3528
3528
  language_detection_options?: {
3529
+ code_switching?: boolean | undefined;
3529
3530
  expected_languages?: string[] | undefined;
3530
3531
  fallback_language?: string | undefined;
3531
- code_switching?: boolean | undefined;
3532
3532
  code_switching_confidence_threshold?: number | undefined;
3533
3533
  } | undefined;
3534
3534
  multichannel?: boolean | undefined;
@@ -3911,12 +3911,12 @@ declare const createTranscriptResponse: z.ZodObject<{
3911
3911
  }, "strip", z.ZodTypeAny, {
3912
3912
  fallback_language: string;
3913
3913
  code_switching_confidence_threshold: number;
3914
- expected_languages?: string[] | undefined;
3915
3914
  code_switching?: boolean | undefined;
3915
+ expected_languages?: string[] | undefined;
3916
3916
  }, {
3917
+ code_switching?: boolean | undefined;
3917
3918
  expected_languages?: string[] | undefined;
3918
3919
  fallback_language?: string | undefined;
3919
- code_switching?: boolean | undefined;
3920
3920
  code_switching_confidence_threshold?: number | undefined;
3921
3921
  }>>;
3922
3922
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -4564,8 +4564,8 @@ declare const createTranscriptResponse: z.ZodObject<{
4564
4564
  language_detection_options?: {
4565
4565
  fallback_language: string;
4566
4566
  code_switching_confidence_threshold: number;
4567
- expected_languages?: string[] | undefined;
4568
4567
  code_switching?: boolean | undefined;
4568
+ expected_languages?: string[] | undefined;
4569
4569
  } | undefined;
4570
4570
  multichannel?: boolean | null | undefined;
4571
4571
  redact_pii_audio?: boolean | null | undefined;
@@ -4806,9 +4806,9 @@ declare const createTranscriptResponse: z.ZodObject<{
4806
4806
  language_codes?: ("af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bn" | "bo" | "br" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fa" | "fi" | "fo" | "fr" | "gl" | "gu" | "ha" | "haw" | "he" | "hi" | "hr" | "ht" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "jw" | "ka" | "kk" | "km" | "kn" | "ko" | "la" | "lb" | "ln" | "lo" | "lt" | "lv" | "mg" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "ne" | "nl" | "nn" | "no" | "oc" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "sa" | "sd" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "tk" | "tl" | "tr" | "tt" | "uk" | "ur" | "uz" | "vi" | "yi" | "yo" | "zh" | "en_au" | "en_uk" | "en_us")[] | null | undefined;
4807
4807
  language_detection?: boolean | null | undefined;
4808
4808
  language_detection_options?: {
4809
+ code_switching?: boolean | undefined;
4809
4810
  expected_languages?: string[] | undefined;
4810
4811
  fallback_language?: string | undefined;
4811
- code_switching?: boolean | undefined;
4812
4812
  code_switching_confidence_threshold?: number | undefined;
4813
4813
  } | undefined;
4814
4814
  multichannel?: boolean | null | undefined;
@@ -5391,12 +5391,12 @@ declare const getTranscriptResponse: z.ZodObject<{
5391
5391
  }, "strip", z.ZodTypeAny, {
5392
5392
  fallback_language: string;
5393
5393
  code_switching_confidence_threshold: number;
5394
- expected_languages?: string[] | undefined;
5395
5394
  code_switching?: boolean | undefined;
5395
+ expected_languages?: string[] | undefined;
5396
5396
  }, {
5397
+ code_switching?: boolean | undefined;
5397
5398
  expected_languages?: string[] | undefined;
5398
5399
  fallback_language?: string | undefined;
5399
- code_switching?: boolean | undefined;
5400
5400
  code_switching_confidence_threshold?: number | undefined;
5401
5401
  }>>;
5402
5402
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -6044,8 +6044,8 @@ declare const getTranscriptResponse: z.ZodObject<{
6044
6044
  language_detection_options?: {
6045
6045
  fallback_language: string;
6046
6046
  code_switching_confidence_threshold: number;
6047
- expected_languages?: string[] | undefined;
6048
6047
  code_switching?: boolean | undefined;
6048
+ expected_languages?: string[] | undefined;
6049
6049
  } | undefined;
6050
6050
  multichannel?: boolean | null | undefined;
6051
6051
  redact_pii_audio?: boolean | null | undefined;
@@ -6286,9 +6286,9 @@ declare const getTranscriptResponse: z.ZodObject<{
6286
6286
  language_codes?: ("af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bn" | "bo" | "br" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fa" | "fi" | "fo" | "fr" | "gl" | "gu" | "ha" | "haw" | "he" | "hi" | "hr" | "ht" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "jw" | "ka" | "kk" | "km" | "kn" | "ko" | "la" | "lb" | "ln" | "lo" | "lt" | "lv" | "mg" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "ne" | "nl" | "nn" | "no" | "oc" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "sa" | "sd" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "tk" | "tl" | "tr" | "tt" | "uk" | "ur" | "uz" | "vi" | "yi" | "yo" | "zh" | "en_au" | "en_uk" | "en_us")[] | null | undefined;
6287
6287
  language_detection?: boolean | null | undefined;
6288
6288
  language_detection_options?: {
6289
+ code_switching?: boolean | undefined;
6289
6290
  expected_languages?: string[] | undefined;
6290
6291
  fallback_language?: string | undefined;
6291
- code_switching?: boolean | undefined;
6292
6292
  code_switching_confidence_threshold?: number | undefined;
6293
6293
  } | undefined;
6294
6294
  multichannel?: boolean | null | undefined;
@@ -6747,12 +6747,12 @@ declare const deleteTranscriptResponse: z.ZodObject<{
6747
6747
  }, "strip", z.ZodTypeAny, {
6748
6748
  fallback_language: string;
6749
6749
  code_switching_confidence_threshold: number;
6750
- expected_languages?: string[] | undefined;
6751
6750
  code_switching?: boolean | undefined;
6751
+ expected_languages?: string[] | undefined;
6752
6752
  }, {
6753
+ code_switching?: boolean | undefined;
6753
6754
  expected_languages?: string[] | undefined;
6754
6755
  fallback_language?: string | undefined;
6755
- code_switching?: boolean | undefined;
6756
6756
  code_switching_confidence_threshold?: number | undefined;
6757
6757
  }>>;
6758
6758
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -7400,8 +7400,8 @@ declare const deleteTranscriptResponse: z.ZodObject<{
7400
7400
  language_detection_options?: {
7401
7401
  fallback_language: string;
7402
7402
  code_switching_confidence_threshold: number;
7403
- expected_languages?: string[] | undefined;
7404
7403
  code_switching?: boolean | undefined;
7404
+ expected_languages?: string[] | undefined;
7405
7405
  } | undefined;
7406
7406
  multichannel?: boolean | null | undefined;
7407
7407
  redact_pii_audio?: boolean | null | undefined;
@@ -7642,9 +7642,9 @@ declare const deleteTranscriptResponse: z.ZodObject<{
7642
7642
  language_codes?: ("af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bn" | "bo" | "br" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fa" | "fi" | "fo" | "fr" | "gl" | "gu" | "ha" | "haw" | "he" | "hi" | "hr" | "ht" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "jw" | "ka" | "kk" | "km" | "kn" | "ko" | "la" | "lb" | "ln" | "lo" | "lt" | "lv" | "mg" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "ne" | "nl" | "nn" | "no" | "oc" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "sa" | "sd" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "tk" | "tl" | "tr" | "tt" | "uk" | "ur" | "uz" | "vi" | "yi" | "yo" | "zh" | "en_au" | "en_uk" | "en_us")[] | null | undefined;
7643
7643
  language_detection?: boolean | null | undefined;
7644
7644
  language_detection_options?: {
7645
+ code_switching?: boolean | undefined;
7645
7646
  expected_languages?: string[] | undefined;
7646
7647
  fallback_language?: string | undefined;
7647
- code_switching?: boolean | undefined;
7648
7648
  code_switching_confidence_threshold?: number | undefined;
7649
7649
  } | undefined;
7650
7650
  multichannel?: boolean | null | undefined;
@@ -44537,12 +44537,12 @@ declare const AssemblyAITranscriptionSchema: z.ZodObject<{
44537
44537
  }, "strip", z.ZodTypeAny, {
44538
44538
  fallback_language: string;
44539
44539
  code_switching_confidence_threshold: number;
44540
- expected_languages?: string[] | undefined;
44541
44540
  code_switching?: boolean | undefined;
44541
+ expected_languages?: string[] | undefined;
44542
44542
  }, {
44543
+ code_switching?: boolean | undefined;
44543
44544
  expected_languages?: string[] | undefined;
44544
44545
  fallback_language?: string | undefined;
44545
- code_switching?: boolean | undefined;
44546
44546
  code_switching_confidence_threshold?: number | undefined;
44547
44547
  }>>;
44548
44548
  multichannel: z.ZodOptional<z.ZodBoolean>;
@@ -44781,8 +44781,8 @@ declare const AssemblyAITranscriptionSchema: z.ZodObject<{
44781
44781
  language_detection_options?: {
44782
44782
  fallback_language: string;
44783
44783
  code_switching_confidence_threshold: number;
44784
- expected_languages?: string[] | undefined;
44785
44784
  code_switching?: boolean | undefined;
44785
+ expected_languages?: string[] | undefined;
44786
44786
  } | undefined;
44787
44787
  multichannel?: boolean | undefined;
44788
44788
  redact_pii?: boolean | undefined;
@@ -44864,9 +44864,9 @@ declare const AssemblyAITranscriptionSchema: z.ZodObject<{
44864
44864
  language_confidence_threshold?: number | undefined;
44865
44865
  language_detection?: boolean | undefined;
44866
44866
  language_detection_options?: {
44867
+ code_switching?: boolean | undefined;
44867
44868
  expected_languages?: string[] | undefined;
44868
44869
  fallback_language?: string | undefined;
44869
- code_switching?: boolean | undefined;
44870
44870
  code_switching_confidence_threshold?: number | undefined;
44871
44871
  } | undefined;
44872
44872
  multichannel?: boolean | undefined;