voice-router-dev 0.8.2 → 0.8.3
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 +211 -0
- package/dist/constants.d.mts +33 -3
- package/dist/constants.d.ts +33 -3
- package/dist/constants.js +14 -1
- package/dist/constants.mjs +13 -1
- package/dist/{field-configs-DN2_WrYr.d.mts → field-configs-t_lVCkE5.d.mts} +1194 -1194
- package/dist/{field-configs-DN2_WrYr.d.ts → field-configs-t_lVCkE5.d.ts} +1194 -1194
- package/dist/field-configs.d.mts +1 -1
- package/dist/field-configs.d.ts +1 -1
- package/dist/field-configs.js +8 -8
- package/dist/field-configs.mjs +8 -8
- package/dist/index.d.mts +651 -1628
- package/dist/index.d.ts +651 -1628
- package/dist/index.js +203 -51
- package/dist/index.mjs +200 -51
- package/dist/{provider-metadata-BnkedpXm.d.mts → provider-metadata-MDUUEuqF.d.mts} +4 -4
- package/dist/{provider-metadata-DbsSGAO7.d.ts → provider-metadata-_gUWlRXS.d.ts} +4 -4
- package/dist/provider-metadata.d.mts +1 -1
- package/dist/provider-metadata.d.ts +1 -1
- package/dist/{speechToTextChunkResponseModel-DExUFZT3.d.ts → speechToTextChunkResponseModel-DjL2ncnf.d.ts} +1147 -10
- package/dist/{speechToTextChunkResponseModel-3IUnJXKx.d.mts → speechToTextChunkResponseModel-DvIT4xai.d.mts} +1147 -10
- package/dist/webhooks.d.mts +234 -215
- package/dist/webhooks.d.ts +234 -215
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,217 @@ 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.1] - 2026-04-05
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
#### Unified Error Normalization Across All Providers
|
|
13
|
+
|
|
14
|
+
HTTP errors from all 8 providers now return semantic error codes and the actual provider error message instead of axios internals.
|
|
15
|
+
|
|
16
|
+
**Before:**
|
|
17
|
+
```typescript
|
|
18
|
+
{
|
|
19
|
+
code: "ERR_BAD_REQUEST", // axios internal code
|
|
20
|
+
message: "Request failed with status code 400", // generic axios message
|
|
21
|
+
statusCode: 400,
|
|
22
|
+
details: { responseData: { error: "audio_url is required" } } // real message buried
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**After:**
|
|
27
|
+
```typescript
|
|
28
|
+
{
|
|
29
|
+
code: "INVALID_INPUT", // semantic error code
|
|
30
|
+
message: "audio_url is required", // actual provider message surfaced
|
|
31
|
+
statusCode: 400,
|
|
32
|
+
details: { responseData: { error: "audio_url is required" } } // still preserved
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Error codes are now mapped from HTTP status:
|
|
37
|
+
|
|
38
|
+
| HTTP Status | Error Code |
|
|
39
|
+
|-------------|------------|
|
|
40
|
+
| 400, 404, 422 | `INVALID_INPUT` |
|
|
41
|
+
| 401, 403 | `AUTHENTICATION_ERROR` |
|
|
42
|
+
| 408 | `CONNECTION_TIMEOUT` |
|
|
43
|
+
| 429 | `RATE_LIMIT` |
|
|
44
|
+
| 5xx | `SERVER_ERROR` |
|
|
45
|
+
|
|
46
|
+
Provider error messages are extracted from all response body shapes:
|
|
47
|
+
|
|
48
|
+
| Provider | Error body shape | Extracted field |
|
|
49
|
+
|----------|-----------------|-----------------|
|
|
50
|
+
| AssemblyAI | `{ error: "string" }` | `error` |
|
|
51
|
+
| OpenAI | `{ error: { message: "..." } }` | `error.message` |
|
|
52
|
+
| Gladia, Azure, Soniox, Deepgram | `{ message: "..." }` | `message` |
|
|
53
|
+
| Speechmatics | `{ error: "string" }` | `error` |
|
|
54
|
+
| Deepgram legacy | `{ err_msg: "..." }` | `err_msg` |
|
|
55
|
+
| ElevenLabs | `{ detail: { message: "..." } }` | `detail.message` |
|
|
56
|
+
|
|
57
|
+
**New exports:**
|
|
58
|
+
|
|
59
|
+
| Export | Description |
|
|
60
|
+
|--------|-------------|
|
|
61
|
+
| `AUTHENTICATION_ERROR` | New error code for 401/403 |
|
|
62
|
+
| `RATE_LIMIT` | New error code for 429 |
|
|
63
|
+
| `SERVER_ERROR` | New error code for 5xx |
|
|
64
|
+
| `httpStatusToErrorCode()` | Map HTTP status → semantic error code |
|
|
65
|
+
| `extractProviderMessage()` | Extract real error message from any provider's response body |
|
|
66
|
+
|
|
67
|
+
**No breaking changes.** The `details` object is unchanged — consumers that already read `details.responseData` continue to work. The `code` field now contains our taxonomy codes instead of axios codes, which is what consumers should have been getting all along. Any adapter that passes an explicit `code` to `createErrorResponse()` (e.g. `TRANSCRIPTION_ERROR` from polling) still takes priority.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## [0.8.4] - 2026-03-21
|
|
72
|
+
|
|
73
|
+
### Added
|
|
74
|
+
|
|
75
|
+
#### Speechmatics Webhook Callbacks + Polling
|
|
76
|
+
|
|
77
|
+
Speechmatics `transcribe()` now supports the same `webhookUrl` pattern as Gladia, AssemblyAI, and Deepgram:
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
// With webhook: returns immediately, callback delivers result
|
|
81
|
+
const result = await adapter.transcribe(audio, {
|
|
82
|
+
language: 'en',
|
|
83
|
+
webhookUrl: 'https://myapp.com/webhook/speechmatics'
|
|
84
|
+
})
|
|
85
|
+
console.log(result.data.id) // Job ID returned immediately
|
|
86
|
+
|
|
87
|
+
// Without webhook: polls until complete (new default)
|
|
88
|
+
const result = await adapter.transcribe(audio, { language: 'en' })
|
|
89
|
+
console.log(result.data.text) // Full transcript after polling
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The webhook URL is wired to Speechmatics' per-job `notification_config` with `transcript` content type. Without a webhook, `transcribe()` now polls via `pollForCompletion()` instead of returning a queued job ID.
|
|
93
|
+
|
|
94
|
+
#### Azure STT Webhook Management + Polling
|
|
95
|
+
|
|
96
|
+
Azure uses subscription-wide webhooks (not per-job). New helper methods to manage them:
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
// Register a webhook for transcription events (one-time setup)
|
|
100
|
+
const webhook = await adapter.registerWebhook('https://myapp.com/webhook/azure', {
|
|
101
|
+
displayName: 'My App Webhook',
|
|
102
|
+
events: {
|
|
103
|
+
transcriptionCompletion: true,
|
|
104
|
+
transcriptionFailed: true
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
// List registered webhooks
|
|
109
|
+
const webhooks = await adapter.listWebhooks()
|
|
110
|
+
|
|
111
|
+
// Unregister a webhook
|
|
112
|
+
await adapter.unregisterWebhook(webhook.self?.split('/').pop()!)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Azure `transcribe()` now polls via `pollForCompletion()` instead of returning immediately with a queued status.
|
|
116
|
+
|
|
117
|
+
**New exports:**
|
|
118
|
+
|
|
119
|
+
| Export | Description |
|
|
120
|
+
|--------|-------------|
|
|
121
|
+
| `webHooksCreate` | Azure API: create subscription-wide webhook |
|
|
122
|
+
| `webHooksDelete` | Azure API: delete webhook by ID |
|
|
123
|
+
| `webHooksList` | Azure API: list registered webhooks |
|
|
124
|
+
| `WebHook` | Azure webhook type |
|
|
125
|
+
| `WebHookEvents` | Azure webhook event filter type |
|
|
126
|
+
|
|
127
|
+
#### Typed Webhook Payloads for Azure & Speechmatics
|
|
128
|
+
|
|
129
|
+
`ProviderWebhookPayloadMap` now has concrete types instead of `unknown`:
|
|
130
|
+
|
|
131
|
+
| Provider | Before | After |
|
|
132
|
+
|----------|--------|-------|
|
|
133
|
+
| `azure-stt` | `unknown` | `AzureWebhookPayload` |
|
|
134
|
+
| `speechmatics` | `unknown` | `SpeechmaticsWebhookPayload` (`RetrieveTranscriptResponse`) |
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
import type { UnifiedWebhookEvent } from 'voice-router-dev/webhooks'
|
|
138
|
+
|
|
139
|
+
// event.raw is now fully typed
|
|
140
|
+
const event: UnifiedWebhookEvent<'speechmatics'> = handler.parse(payload)
|
|
141
|
+
event.raw.results // ✅ Typed as RetrieveTranscriptResponse
|
|
142
|
+
|
|
143
|
+
const azureEvent: UnifiedWebhookEvent<'azure-stt'> = handler.parse(payload)
|
|
144
|
+
azureEvent.raw.action // ✅ Typed as string
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Webhook + polling support summary (updated):**
|
|
148
|
+
|
|
149
|
+
| Provider | webhookUrl wired | Auto-poll | API webhook model |
|
|
150
|
+
|----------|-----------------|-----------|-------------------|
|
|
151
|
+
| Gladia | ✅ `callback_config.url` | ✅ `pollForCompletion` | Per-job |
|
|
152
|
+
| AssemblyAI | ✅ `webhook_url` | ✅ `pollForCompletion` | Per-job |
|
|
153
|
+
| Deepgram | ✅ `params.callback` | N/A (sync) | Per-request |
|
|
154
|
+
| **Speechmatics** | ✅ `notification_config` | ✅ `pollForCompletion` | Per-job |
|
|
155
|
+
| **Azure STT** | ✅ `registerWebhook()` | ✅ `pollForCompletion` | Subscription-wide |
|
|
156
|
+
| ElevenLabs | N/A (sync) | N/A (sync) | N/A |
|
|
157
|
+
| OpenAI | N/A (sync) | N/A (sync) | N/A |
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## [0.8.3] - 2026-03-19
|
|
162
|
+
|
|
163
|
+
### Added
|
|
164
|
+
|
|
165
|
+
#### AssemblyAI Regional Endpoints (EU Data Residency)
|
|
166
|
+
|
|
167
|
+
Region support for AssemblyAI, matching the pattern used by Deepgram, Speechmatics, and Soniox:
|
|
168
|
+
|
|
169
|
+
```typescript
|
|
170
|
+
import { createAssemblyAIAdapter, AssemblyAIRegion } from 'voice-router-dev'
|
|
171
|
+
|
|
172
|
+
const adapter = createAssemblyAIAdapter({
|
|
173
|
+
apiKey: process.env.ASSEMBLYAI_API_KEY,
|
|
174
|
+
region: AssemblyAIRegion.eu // All data stays in the EU
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
// Dynamic region switching
|
|
178
|
+
adapter.setRegion(AssemblyAIRegion.us)
|
|
179
|
+
console.log(adapter.getRegion())
|
|
180
|
+
// { api: "https://api.assemblyai.com", websocket: "wss://streaming.assemblyai.com/v3/ws" }
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
| Region | REST API | Streaming |
|
|
184
|
+
|--------|----------|-----------|
|
|
185
|
+
| `us` (default) | api.assemblyai.com | streaming.assemblyai.com |
|
|
186
|
+
| `eu` | api.eu.assemblyai.com | streaming.eu.assemblyai.com |
|
|
187
|
+
|
|
188
|
+
**New exports:**
|
|
189
|
+
|
|
190
|
+
| Export | Entry Point |
|
|
191
|
+
|--------|-------------|
|
|
192
|
+
| `AssemblyAIRegion` | `voice-router-dev/constants` |
|
|
193
|
+
| `AssemblyAIRegionType` | `voice-router-dev/constants` |
|
|
194
|
+
| `AssemblyAIConfig` | `voice-router-dev` |
|
|
195
|
+
|
|
196
|
+
**Priority:** `baseUrl`/`wsBaseUrl` > `region` > default (US)
|
|
197
|
+
|
|
198
|
+
**Region support summary (updated):**
|
|
199
|
+
|
|
200
|
+
| Provider | Regions | Dynamic Switch |
|
|
201
|
+
|----------|---------|----------------|
|
|
202
|
+
| **Deepgram** | `global`, `eu` | `setRegion()` |
|
|
203
|
+
| **AssemblyAI** | `us`, `eu` | `setRegion()` |
|
|
204
|
+
| **Speechmatics** | `eu1`, `eu2`\*, `us1`, `us2`\*, `au1` | `setRegion()` |
|
|
205
|
+
| **Soniox** | `us`, `eu`, `jp` | `setRegion()` |
|
|
206
|
+
| **Gladia** | `us-west`, `eu-west` | Per-request |
|
|
207
|
+
| **ElevenLabs** | `global`, `us`, `eu`, `in` | Adapter init |
|
|
208
|
+
| **Azure** | Via `speechConfig` | Reinitialize |
|
|
209
|
+
| **OpenAI** | N/A | N/A |
|
|
210
|
+
|
|
211
|
+
\* Enterprise only
|
|
212
|
+
|
|
213
|
+
### Fixed
|
|
214
|
+
|
|
215
|
+
- Suppress `noShadowRestrictedNames` biome errors during orval generation of `src/generated/`
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
8
219
|
## [0.8.2] - 2026-03-15
|
|
9
220
|
|
|
10
221
|
### Fixed
|
package/dist/constants.d.mts
CHANGED
|
@@ -331,7 +331,7 @@ declare const DeepgramArchitectureLanguages: {
|
|
|
331
331
|
readonly base: readonly ["bg", "ca", "cs", "da", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-AR", "es-ES", "es-LATAM", "es-MX", "es-US", "et", "fi", "fr", "fr-BE", "fr-ca", "fr-CA", "fr-CH", "fr-FR", "hi", "hi-Latn", "hu", "id", "id-ID", "it", "ja", "ko", "lt", "lv", "ms", "ms-MY", "ms-SG", "nl", "no", "pl", "pt", "pt-BR", "pt-PT", "ro", "ro-MD", "ru", "sk", "sv", "ta", "taq", "th", "th-TH", "tr", "uk", "vi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-HK", "zh-TW"];
|
|
332
332
|
readonly nova: readonly ["en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-LATAM", "hi-Latn"];
|
|
333
333
|
readonly "nova-2": readonly ["bg", "ca", "cs", "da", "da-DK", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-CA", "en-GB", "en-IE", "en-IN", "en-MY", "en-NZ", "en-PH", "en-US", "en-ZA", "es", "es-419", "es-AR", "es-ES", "es-MX", "es-US", "et", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "hi", "hi-Latn", "hu", "id", "it", "it-IT", "ja", "ja-JP", "ko", "ko-KR", "lt", "lv", "ms", "ms-MY", "multi", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-PT", "ro", "ru", "ru-RU", "sk", "sv", "sv-SE", "th", "th-TH", "tr", "tr-TR", "uk", "vi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-HK", "zh-TW"];
|
|
334
|
-
readonly "nova-3": readonly ["ar", "ar-AE", "ar-DZ", "ar-EG", "ar-IQ", "ar-IR", "ar-JO", "ar-KW", "ar-LB", "ar-MA", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SY", "ar-TD", "ar-TN", "be", "be-BY", "bg", "bn", "bn-IN", "bs", "bs-BA", "ca", "cs", "da", "da-DK", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-CA", "en-GB", "en-IE", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-AR", "es-ES", "es-MX", "es-US", "et", "fa", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "he", "hi", "hr", "hr-HR", "hu", "id", "id-ID", "it", "it-IT", "ja", "ja-JP", "kn", "kn-IN", "ko", "ko-KR", "lt", "lv", "mk", "mk-MK", "mr", "mr-IN", "ms", "multi", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-PT", "ro", "ru", "ru-Latn", "ru-RU", "sk", "sl", "sl-SL", "sr", "sr-RS", "sv", "sv-SE", "ta", "ta-IN", "te", "te-IN", "th", "th-TH", "tl", "tr", "tr-TR", "uk", "ur", "vi", "zh-HK"];
|
|
334
|
+
readonly "nova-3": readonly ["ar", "ar-AE", "ar-DZ", "ar-EG", "ar-IQ", "ar-IR", "ar-JO", "ar-KW", "ar-LB", "ar-MA", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SY", "ar-TD", "ar-TN", "be", "be-BY", "bg", "bn", "bn-IN", "bs", "bs-BA", "ca", "cs", "da", "da-DK", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-CA", "en-GB", "en-IE", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-AR", "es-ES", "es-MX", "es-US", "et", "fa", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "he", "hi", "hr", "hr-HR", "hu", "id", "id-ID", "it", "it-IT", "ja", "ja-JP", "kn", "kn-IN", "ko", "ko-KR", "lt", "lv", "mk", "mk-MK", "mr", "mr-IN", "ms", "multi", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-PT", "ro", "ru", "ru-Latn", "ru-RU", "sk", "sl", "sl-SL", "sr", "sr-RS", "sv", "sv-SE", "ta", "ta-IN", "te", "te-IN", "th", "th-TH", "tl", "tr", "tr-TR", "uk", "ur", "vi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-HK", "zh-TW"];
|
|
335
335
|
readonly polaris: readonly ["da", "de", "en", "en-IN", "en-US", "es", "es-419", "es-LATAM", "fr", "hi", "it", "ja", "ko", "nl", "no", "pl", "pt", "pt-BR", "pt-PT", "sv", "ta", "taq"];
|
|
336
336
|
readonly unknown: readonly ["da", "da-DK", "sv", "sv-SE"];
|
|
337
337
|
readonly whisper: readonly ["af", "am", "ar", "as", "az", "ba", "be", "bg", "bn", "bo", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-LATAM", "et", "eu", "fa", "fi", "fo", "fr", "fr-CA", "gl", "gu", "ha", "haw", "he", "hi", "hi-Latn", "hr", "ht", "hu", "hy", "id", "id-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", "pt-BR", "pt-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", "zh-CN", "zh-TW"];
|
|
@@ -2994,6 +2994,34 @@ declare const AssemblyAIStatus: {
|
|
|
2994
2994
|
readonly completed: "completed";
|
|
2995
2995
|
readonly error: "error";
|
|
2996
2996
|
};
|
|
2997
|
+
/**
|
|
2998
|
+
* AssemblyAI regional endpoints for data residency
|
|
2999
|
+
*
|
|
3000
|
+
* | Region | REST API | Streaming |
|
|
3001
|
+
* |--------|----------|-----------|
|
|
3002
|
+
* | US (default) | api.assemblyai.com | streaming.assemblyai.com |
|
|
3003
|
+
* | EU | api.eu.assemblyai.com | streaming.eu.assemblyai.com |
|
|
3004
|
+
*
|
|
3005
|
+
* The EU endpoint guarantees audio and transcription data never leaves the EU.
|
|
3006
|
+
*
|
|
3007
|
+
* @example
|
|
3008
|
+
* ```typescript
|
|
3009
|
+
* import { AssemblyAIRegion } from 'voice-router-dev/constants'
|
|
3010
|
+
*
|
|
3011
|
+
* const adapter = createAssemblyAIAdapter({
|
|
3012
|
+
* apiKey: process.env.ASSEMBLYAI_API_KEY,
|
|
3013
|
+
* region: AssemblyAIRegion.eu
|
|
3014
|
+
* })
|
|
3015
|
+
* ```
|
|
3016
|
+
*
|
|
3017
|
+
* @see https://www.assemblyai.com/docs/getting-started/cloud-endpoints - Official docs
|
|
3018
|
+
*/
|
|
3019
|
+
declare const AssemblyAIRegion: {
|
|
3020
|
+
/** United States (default) */
|
|
3021
|
+
readonly us: "us";
|
|
3022
|
+
/** European Union — data never leaves the EU */
|
|
3023
|
+
readonly eu: "eu";
|
|
3024
|
+
};
|
|
2997
3025
|
/**
|
|
2998
3026
|
* Gladia job status values for filtering
|
|
2999
3027
|
*
|
|
@@ -3098,6 +3126,8 @@ type AssemblyAISpeechModelType = (typeof AssemblyAISpeechModel)[keyof typeof Ass
|
|
|
3098
3126
|
type AssemblyAISampleRateType = (typeof AssemblyAISampleRate)[keyof typeof AssemblyAISampleRate];
|
|
3099
3127
|
/** AssemblyAI status type derived from const object */
|
|
3100
3128
|
type AssemblyAIStatusType = (typeof AssemblyAIStatus)[keyof typeof AssemblyAIStatus];
|
|
3129
|
+
/** AssemblyAI region type derived from const object */
|
|
3130
|
+
type AssemblyAIRegionType = (typeof AssemblyAIRegion)[keyof typeof AssemblyAIRegion];
|
|
3101
3131
|
/** Gladia status type derived from const object */
|
|
3102
3132
|
type GladiaStatusType = (typeof GladiaStatus)[keyof typeof GladiaStatus];
|
|
3103
3133
|
/** Azure status type derived from const object */
|
|
@@ -3381,7 +3411,7 @@ declare const OpenAIModel: {
|
|
|
3381
3411
|
readonly "whisper-1": "whisper-1";
|
|
3382
3412
|
};
|
|
3383
3413
|
declare const OpenAIModelCodes: readonly ["gpt-4o-mini-realtime-preview", "gpt-4o-mini-realtime-preview-2024-12-17", "gpt-4o-mini-transcribe", "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", "gpt-4o-realtime-preview-2024-12-17", "gpt-4o-realtime-preview-2025-06-03", "gpt-4o-transcribe", "gpt-4o-transcribe-diarize", "gpt-audio-mini", "gpt-audio-mini-2025-10-06", "gpt-audio-mini-2025-12-15", "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", "gpt-realtime-mini-2025-10-06", "gpt-realtime-mini-2025-12-15", "whisper-1"];
|
|
3384
|
-
declare const OpenAIModelLabels: Record<"gpt-4o-mini-
|
|
3414
|
+
declare const OpenAIModelLabels: Record<"gpt-4o-mini-transcribe" | "gpt-4o-mini-transcribe-2025-12-15" | "gpt-4o-transcribe" | "gpt-4o-transcribe-diarize" | "whisper-1" | "gpt-4o-mini-realtime-preview" | "gpt-4o-mini-realtime-preview-2024-12-17" | "gpt-4o-realtime-preview" | "gpt-4o-realtime-preview-2024-10-01" | "gpt-4o-realtime-preview-2024-12-17" | "gpt-4o-realtime-preview-2025-06-03" | "gpt-audio-mini" | "gpt-audio-mini-2025-10-06" | "gpt-audio-mini-2025-12-15" | "gpt-realtime" | "gpt-realtime-2025-08-28" | "gpt-realtime-mini" | "gpt-realtime-mini-2025-10-06" | "gpt-realtime-mini-2025-12-15", string>;
|
|
3385
3415
|
/**
|
|
3386
3416
|
* OpenAI Realtime API models (streaming)
|
|
3387
3417
|
* @see scripts/generate-openai-models.js
|
|
@@ -3561,4 +3591,4 @@ declare const OpenAILanguage: {
|
|
|
3561
3591
|
/** OpenAI language type */
|
|
3562
3592
|
type OpenAILanguageType = (typeof OpenAILanguageCodes)[number];
|
|
3563
3593
|
|
|
3564
|
-
export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAILanguage, type AssemblyAILanguageType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType, AssemblyAIStatus, type AssemblyAIStatusType, AssemblyAITranscriptionModel, type AssemblyAITranscriptionModelType, AzureLocale, type AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, type AzureLocaleType, AzureLocales, AzureStatus, type AzureStatusType, type DeepgramArchitecture, DeepgramArchitectureLanguages, DeepgramArchitectures, DeepgramCallbackMethod, type DeepgramCallbackMethodType, DeepgramEncoding, type DeepgramEncodingType, DeepgramIntentMode, type DeepgramIntentModeType, DeepgramLanguage, type DeepgramLanguageCode, DeepgramLanguageCodes, type DeepgramLanguageCode as DeepgramLanguageType, DeepgramModel, type DeepgramModelCode, DeepgramModelCodes, DeepgramModelLabels, type DeepgramModelCode as DeepgramModelType, type DeepgramMultilingualArchitecture, DeepgramMultilingualArchitectures, DeepgramRedact, type DeepgramRedactType, DeepgramRegion, type DeepgramRegionType, DeepgramSampleRate, type DeepgramSampleRateType, DeepgramStatus, type DeepgramStatusType, DeepgramTTSContainer, type DeepgramTTSContainerType, DeepgramTTSEncoding, type DeepgramTTSEncodingType, DeepgramTTSModel, type DeepgramTTSModelType, DeepgramTTSSampleRate, type DeepgramTTSSampleRateType, DeepgramTopicMode, type DeepgramTopicModeType, ElevenLabsAudioFormat, type ElevenLabsAudioFormatType, ElevenLabsLanguage, type ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, type ElevenLabsLanguageType, ElevenLabsLanguages, ElevenLabsModel, type ElevenLabsModelCode, ElevenLabsModelCodes, ElevenLabsModelLabels, type ElevenLabsModelType, ElevenLabsRealtimeModel, type ElevenLabsRealtimeModelCode, ElevenLabsRealtimeModelCodes, type ElevenLabsRealtimeModelType, ElevenLabsRegion, type ElevenLabsRegionType, GladiaBitDepth, type GladiaBitDepthType, GladiaEncoding, type GladiaEncodingType, GladiaLanguage, type GladiaLanguageType, GladiaModel, type GladiaModelType, GladiaRegion, type GladiaRegionType, GladiaSampleRate, type GladiaSampleRateType, GladiaStatus, type GladiaStatusType, GladiaTranslationLanguage, type GladiaTranslationLanguageType, OpenAILanguage, OpenAILanguageCodes, type OpenAILanguageType, OpenAIModel, type OpenAIModelCode, OpenAIModelCodes, OpenAIModelLabels, type OpenAIModelType, OpenAIRealtimeAudioFormat, type OpenAIRealtimeAudioFormatType, OpenAIRealtimeModel, type OpenAIRealtimeModelCode, OpenAIRealtimeModelCodes, type OpenAIRealtimeModelType, OpenAIRealtimeTranscriptionModel, type OpenAIRealtimeTranscriptionModelType, OpenAIRealtimeTurnDetection, type OpenAIRealtimeTurnDetectionType, OpenAIResponseFormat, type OpenAIResponseFormatType, type OpenAITranscriptionModelCode, SonioxAsyncModel, type SonioxAsyncModelCode, SonioxAsyncModelCodes, SonioxLanguage, type SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, type SonioxLanguageType, SonioxLanguages, SonioxModel, type SonioxModelCode, SonioxModelCodes, SonioxModelLabels, SonioxModels, SonioxRealtimeModel, type SonioxRealtimeModelCode, SonioxRealtimeModelCodes, SonioxRegion, type SonioxRegionType, SpeechmaticsLanguage, type SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, type SpeechmaticsLanguageType, SpeechmaticsLanguages, SpeechmaticsOperatingPoint, type SpeechmaticsOperatingPointType, SpeechmaticsRegion, type SpeechmaticsRegionType };
|
|
3594
|
+
export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAILanguage, type AssemblyAILanguageType, AssemblyAIRegion, type AssemblyAIRegionType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType, AssemblyAIStatus, type AssemblyAIStatusType, AssemblyAITranscriptionModel, type AssemblyAITranscriptionModelType, AzureLocale, type AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, type AzureLocaleType, AzureLocales, AzureStatus, type AzureStatusType, type DeepgramArchitecture, DeepgramArchitectureLanguages, DeepgramArchitectures, DeepgramCallbackMethod, type DeepgramCallbackMethodType, DeepgramEncoding, type DeepgramEncodingType, DeepgramIntentMode, type DeepgramIntentModeType, DeepgramLanguage, type DeepgramLanguageCode, DeepgramLanguageCodes, type DeepgramLanguageCode as DeepgramLanguageType, DeepgramModel, type DeepgramModelCode, DeepgramModelCodes, DeepgramModelLabels, type DeepgramModelCode as DeepgramModelType, type DeepgramMultilingualArchitecture, DeepgramMultilingualArchitectures, DeepgramRedact, type DeepgramRedactType, DeepgramRegion, type DeepgramRegionType, DeepgramSampleRate, type DeepgramSampleRateType, DeepgramStatus, type DeepgramStatusType, DeepgramTTSContainer, type DeepgramTTSContainerType, DeepgramTTSEncoding, type DeepgramTTSEncodingType, DeepgramTTSModel, type DeepgramTTSModelType, DeepgramTTSSampleRate, type DeepgramTTSSampleRateType, DeepgramTopicMode, type DeepgramTopicModeType, ElevenLabsAudioFormat, type ElevenLabsAudioFormatType, ElevenLabsLanguage, type ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, type ElevenLabsLanguageType, ElevenLabsLanguages, ElevenLabsModel, type ElevenLabsModelCode, ElevenLabsModelCodes, ElevenLabsModelLabels, type ElevenLabsModelType, ElevenLabsRealtimeModel, type ElevenLabsRealtimeModelCode, ElevenLabsRealtimeModelCodes, type ElevenLabsRealtimeModelType, ElevenLabsRegion, type ElevenLabsRegionType, GladiaBitDepth, type GladiaBitDepthType, GladiaEncoding, type GladiaEncodingType, GladiaLanguage, type GladiaLanguageType, GladiaModel, type GladiaModelType, GladiaRegion, type GladiaRegionType, GladiaSampleRate, type GladiaSampleRateType, GladiaStatus, type GladiaStatusType, GladiaTranslationLanguage, type GladiaTranslationLanguageType, OpenAILanguage, OpenAILanguageCodes, type OpenAILanguageType, OpenAIModel, type OpenAIModelCode, OpenAIModelCodes, OpenAIModelLabels, type OpenAIModelType, OpenAIRealtimeAudioFormat, type OpenAIRealtimeAudioFormatType, OpenAIRealtimeModel, type OpenAIRealtimeModelCode, OpenAIRealtimeModelCodes, type OpenAIRealtimeModelType, OpenAIRealtimeTranscriptionModel, type OpenAIRealtimeTranscriptionModelType, OpenAIRealtimeTurnDetection, type OpenAIRealtimeTurnDetectionType, OpenAIResponseFormat, type OpenAIResponseFormatType, type OpenAITranscriptionModelCode, SonioxAsyncModel, type SonioxAsyncModelCode, SonioxAsyncModelCodes, SonioxLanguage, type SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, type SonioxLanguageType, SonioxLanguages, SonioxModel, type SonioxModelCode, SonioxModelCodes, SonioxModelLabels, SonioxModels, SonioxRealtimeModel, type SonioxRealtimeModelCode, SonioxRealtimeModelCodes, SonioxRegion, type SonioxRegionType, SpeechmaticsLanguage, type SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, type SpeechmaticsLanguageType, SpeechmaticsLanguages, SpeechmaticsOperatingPoint, type SpeechmaticsOperatingPointType, SpeechmaticsRegion, type SpeechmaticsRegionType };
|
package/dist/constants.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ declare const DeepgramArchitectureLanguages: {
|
|
|
331
331
|
readonly base: readonly ["bg", "ca", "cs", "da", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-AR", "es-ES", "es-LATAM", "es-MX", "es-US", "et", "fi", "fr", "fr-BE", "fr-ca", "fr-CA", "fr-CH", "fr-FR", "hi", "hi-Latn", "hu", "id", "id-ID", "it", "ja", "ko", "lt", "lv", "ms", "ms-MY", "ms-SG", "nl", "no", "pl", "pt", "pt-BR", "pt-PT", "ro", "ro-MD", "ru", "sk", "sv", "ta", "taq", "th", "th-TH", "tr", "uk", "vi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-HK", "zh-TW"];
|
|
332
332
|
readonly nova: readonly ["en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-LATAM", "hi-Latn"];
|
|
333
333
|
readonly "nova-2": readonly ["bg", "ca", "cs", "da", "da-DK", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-CA", "en-GB", "en-IE", "en-IN", "en-MY", "en-NZ", "en-PH", "en-US", "en-ZA", "es", "es-419", "es-AR", "es-ES", "es-MX", "es-US", "et", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "hi", "hi-Latn", "hu", "id", "it", "it-IT", "ja", "ja-JP", "ko", "ko-KR", "lt", "lv", "ms", "ms-MY", "multi", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-PT", "ro", "ru", "ru-RU", "sk", "sv", "sv-SE", "th", "th-TH", "tr", "tr-TR", "uk", "vi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-HK", "zh-TW"];
|
|
334
|
-
readonly "nova-3": readonly ["ar", "ar-AE", "ar-DZ", "ar-EG", "ar-IQ", "ar-IR", "ar-JO", "ar-KW", "ar-LB", "ar-MA", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SY", "ar-TD", "ar-TN", "be", "be-BY", "bg", "bn", "bn-IN", "bs", "bs-BA", "ca", "cs", "da", "da-DK", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-CA", "en-GB", "en-IE", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-AR", "es-ES", "es-MX", "es-US", "et", "fa", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "he", "hi", "hr", "hr-HR", "hu", "id", "id-ID", "it", "it-IT", "ja", "ja-JP", "kn", "kn-IN", "ko", "ko-KR", "lt", "lv", "mk", "mk-MK", "mr", "mr-IN", "ms", "multi", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-PT", "ro", "ru", "ru-Latn", "ru-RU", "sk", "sl", "sl-SL", "sr", "sr-RS", "sv", "sv-SE", "ta", "ta-IN", "te", "te-IN", "th", "th-TH", "tl", "tr", "tr-TR", "uk", "ur", "vi", "zh-HK"];
|
|
334
|
+
readonly "nova-3": readonly ["ar", "ar-AE", "ar-DZ", "ar-EG", "ar-IQ", "ar-IR", "ar-JO", "ar-KW", "ar-LB", "ar-MA", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SY", "ar-TD", "ar-TN", "be", "be-BY", "bg", "bn", "bn-IN", "bs", "bs-BA", "ca", "cs", "da", "da-DK", "de", "de-AT", "de-CH", "de-DE", "el", "en", "en-AU", "en-CA", "en-GB", "en-IE", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-AR", "es-ES", "es-MX", "es-US", "et", "fa", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "he", "hi", "hr", "hr-HR", "hu", "id", "id-ID", "it", "it-IT", "ja", "ja-JP", "kn", "kn-IN", "ko", "ko-KR", "lt", "lv", "mk", "mk-MK", "mr", "mr-IN", "ms", "multi", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-PT", "ro", "ru", "ru-Latn", "ru-RU", "sk", "sl", "sl-SL", "sr", "sr-RS", "sv", "sv-SE", "ta", "ta-IN", "te", "te-IN", "th", "th-TH", "tl", "tr", "tr-TR", "uk", "ur", "vi", "zh", "zh-CN", "zh-Hans", "zh-Hant", "zh-HK", "zh-TW"];
|
|
335
335
|
readonly polaris: readonly ["da", "de", "en", "en-IN", "en-US", "es", "es-419", "es-LATAM", "fr", "hi", "it", "ja", "ko", "nl", "no", "pl", "pt", "pt-BR", "pt-PT", "sv", "ta", "taq"];
|
|
336
336
|
readonly unknown: readonly ["da", "da-DK", "sv", "sv-SE"];
|
|
337
337
|
readonly whisper: readonly ["af", "am", "ar", "as", "az", "ba", "be", "bg", "bn", "bo", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "en-AU", "en-GB", "en-IN", "en-NZ", "en-US", "es", "es-419", "es-LATAM", "et", "eu", "fa", "fi", "fo", "fr", "fr-CA", "gl", "gu", "ha", "haw", "he", "hi", "hi-Latn", "hr", "ht", "hu", "hy", "id", "id-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", "pt-BR", "pt-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", "zh-CN", "zh-TW"];
|
|
@@ -2994,6 +2994,34 @@ declare const AssemblyAIStatus: {
|
|
|
2994
2994
|
readonly completed: "completed";
|
|
2995
2995
|
readonly error: "error";
|
|
2996
2996
|
};
|
|
2997
|
+
/**
|
|
2998
|
+
* AssemblyAI regional endpoints for data residency
|
|
2999
|
+
*
|
|
3000
|
+
* | Region | REST API | Streaming |
|
|
3001
|
+
* |--------|----------|-----------|
|
|
3002
|
+
* | US (default) | api.assemblyai.com | streaming.assemblyai.com |
|
|
3003
|
+
* | EU | api.eu.assemblyai.com | streaming.eu.assemblyai.com |
|
|
3004
|
+
*
|
|
3005
|
+
* The EU endpoint guarantees audio and transcription data never leaves the EU.
|
|
3006
|
+
*
|
|
3007
|
+
* @example
|
|
3008
|
+
* ```typescript
|
|
3009
|
+
* import { AssemblyAIRegion } from 'voice-router-dev/constants'
|
|
3010
|
+
*
|
|
3011
|
+
* const adapter = createAssemblyAIAdapter({
|
|
3012
|
+
* apiKey: process.env.ASSEMBLYAI_API_KEY,
|
|
3013
|
+
* region: AssemblyAIRegion.eu
|
|
3014
|
+
* })
|
|
3015
|
+
* ```
|
|
3016
|
+
*
|
|
3017
|
+
* @see https://www.assemblyai.com/docs/getting-started/cloud-endpoints - Official docs
|
|
3018
|
+
*/
|
|
3019
|
+
declare const AssemblyAIRegion: {
|
|
3020
|
+
/** United States (default) */
|
|
3021
|
+
readonly us: "us";
|
|
3022
|
+
/** European Union — data never leaves the EU */
|
|
3023
|
+
readonly eu: "eu";
|
|
3024
|
+
};
|
|
2997
3025
|
/**
|
|
2998
3026
|
* Gladia job status values for filtering
|
|
2999
3027
|
*
|
|
@@ -3098,6 +3126,8 @@ type AssemblyAISpeechModelType = (typeof AssemblyAISpeechModel)[keyof typeof Ass
|
|
|
3098
3126
|
type AssemblyAISampleRateType = (typeof AssemblyAISampleRate)[keyof typeof AssemblyAISampleRate];
|
|
3099
3127
|
/** AssemblyAI status type derived from const object */
|
|
3100
3128
|
type AssemblyAIStatusType = (typeof AssemblyAIStatus)[keyof typeof AssemblyAIStatus];
|
|
3129
|
+
/** AssemblyAI region type derived from const object */
|
|
3130
|
+
type AssemblyAIRegionType = (typeof AssemblyAIRegion)[keyof typeof AssemblyAIRegion];
|
|
3101
3131
|
/** Gladia status type derived from const object */
|
|
3102
3132
|
type GladiaStatusType = (typeof GladiaStatus)[keyof typeof GladiaStatus];
|
|
3103
3133
|
/** Azure status type derived from const object */
|
|
@@ -3381,7 +3411,7 @@ declare const OpenAIModel: {
|
|
|
3381
3411
|
readonly "whisper-1": "whisper-1";
|
|
3382
3412
|
};
|
|
3383
3413
|
declare const OpenAIModelCodes: readonly ["gpt-4o-mini-realtime-preview", "gpt-4o-mini-realtime-preview-2024-12-17", "gpt-4o-mini-transcribe", "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", "gpt-4o-realtime-preview-2024-12-17", "gpt-4o-realtime-preview-2025-06-03", "gpt-4o-transcribe", "gpt-4o-transcribe-diarize", "gpt-audio-mini", "gpt-audio-mini-2025-10-06", "gpt-audio-mini-2025-12-15", "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", "gpt-realtime-mini-2025-10-06", "gpt-realtime-mini-2025-12-15", "whisper-1"];
|
|
3384
|
-
declare const OpenAIModelLabels: Record<"gpt-4o-mini-
|
|
3414
|
+
declare const OpenAIModelLabels: Record<"gpt-4o-mini-transcribe" | "gpt-4o-mini-transcribe-2025-12-15" | "gpt-4o-transcribe" | "gpt-4o-transcribe-diarize" | "whisper-1" | "gpt-4o-mini-realtime-preview" | "gpt-4o-mini-realtime-preview-2024-12-17" | "gpt-4o-realtime-preview" | "gpt-4o-realtime-preview-2024-10-01" | "gpt-4o-realtime-preview-2024-12-17" | "gpt-4o-realtime-preview-2025-06-03" | "gpt-audio-mini" | "gpt-audio-mini-2025-10-06" | "gpt-audio-mini-2025-12-15" | "gpt-realtime" | "gpt-realtime-2025-08-28" | "gpt-realtime-mini" | "gpt-realtime-mini-2025-10-06" | "gpt-realtime-mini-2025-12-15", string>;
|
|
3385
3415
|
/**
|
|
3386
3416
|
* OpenAI Realtime API models (streaming)
|
|
3387
3417
|
* @see scripts/generate-openai-models.js
|
|
@@ -3561,4 +3591,4 @@ declare const OpenAILanguage: {
|
|
|
3561
3591
|
/** OpenAI language type */
|
|
3562
3592
|
type OpenAILanguageType = (typeof OpenAILanguageCodes)[number];
|
|
3563
3593
|
|
|
3564
|
-
export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAILanguage, type AssemblyAILanguageType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType, AssemblyAIStatus, type AssemblyAIStatusType, AssemblyAITranscriptionModel, type AssemblyAITranscriptionModelType, AzureLocale, type AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, type AzureLocaleType, AzureLocales, AzureStatus, type AzureStatusType, type DeepgramArchitecture, DeepgramArchitectureLanguages, DeepgramArchitectures, DeepgramCallbackMethod, type DeepgramCallbackMethodType, DeepgramEncoding, type DeepgramEncodingType, DeepgramIntentMode, type DeepgramIntentModeType, DeepgramLanguage, type DeepgramLanguageCode, DeepgramLanguageCodes, type DeepgramLanguageCode as DeepgramLanguageType, DeepgramModel, type DeepgramModelCode, DeepgramModelCodes, DeepgramModelLabels, type DeepgramModelCode as DeepgramModelType, type DeepgramMultilingualArchitecture, DeepgramMultilingualArchitectures, DeepgramRedact, type DeepgramRedactType, DeepgramRegion, type DeepgramRegionType, DeepgramSampleRate, type DeepgramSampleRateType, DeepgramStatus, type DeepgramStatusType, DeepgramTTSContainer, type DeepgramTTSContainerType, DeepgramTTSEncoding, type DeepgramTTSEncodingType, DeepgramTTSModel, type DeepgramTTSModelType, DeepgramTTSSampleRate, type DeepgramTTSSampleRateType, DeepgramTopicMode, type DeepgramTopicModeType, ElevenLabsAudioFormat, type ElevenLabsAudioFormatType, ElevenLabsLanguage, type ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, type ElevenLabsLanguageType, ElevenLabsLanguages, ElevenLabsModel, type ElevenLabsModelCode, ElevenLabsModelCodes, ElevenLabsModelLabels, type ElevenLabsModelType, ElevenLabsRealtimeModel, type ElevenLabsRealtimeModelCode, ElevenLabsRealtimeModelCodes, type ElevenLabsRealtimeModelType, ElevenLabsRegion, type ElevenLabsRegionType, GladiaBitDepth, type GladiaBitDepthType, GladiaEncoding, type GladiaEncodingType, GladiaLanguage, type GladiaLanguageType, GladiaModel, type GladiaModelType, GladiaRegion, type GladiaRegionType, GladiaSampleRate, type GladiaSampleRateType, GladiaStatus, type GladiaStatusType, GladiaTranslationLanguage, type GladiaTranslationLanguageType, OpenAILanguage, OpenAILanguageCodes, type OpenAILanguageType, OpenAIModel, type OpenAIModelCode, OpenAIModelCodes, OpenAIModelLabels, type OpenAIModelType, OpenAIRealtimeAudioFormat, type OpenAIRealtimeAudioFormatType, OpenAIRealtimeModel, type OpenAIRealtimeModelCode, OpenAIRealtimeModelCodes, type OpenAIRealtimeModelType, OpenAIRealtimeTranscriptionModel, type OpenAIRealtimeTranscriptionModelType, OpenAIRealtimeTurnDetection, type OpenAIRealtimeTurnDetectionType, OpenAIResponseFormat, type OpenAIResponseFormatType, type OpenAITranscriptionModelCode, SonioxAsyncModel, type SonioxAsyncModelCode, SonioxAsyncModelCodes, SonioxLanguage, type SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, type SonioxLanguageType, SonioxLanguages, SonioxModel, type SonioxModelCode, SonioxModelCodes, SonioxModelLabels, SonioxModels, SonioxRealtimeModel, type SonioxRealtimeModelCode, SonioxRealtimeModelCodes, SonioxRegion, type SonioxRegionType, SpeechmaticsLanguage, type SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, type SpeechmaticsLanguageType, SpeechmaticsLanguages, SpeechmaticsOperatingPoint, type SpeechmaticsOperatingPointType, SpeechmaticsRegion, type SpeechmaticsRegionType };
|
|
3594
|
+
export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAILanguage, type AssemblyAILanguageType, AssemblyAIRegion, type AssemblyAIRegionType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType, AssemblyAIStatus, type AssemblyAIStatusType, AssemblyAITranscriptionModel, type AssemblyAITranscriptionModelType, AzureLocale, type AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, type AzureLocaleType, AzureLocales, AzureStatus, type AzureStatusType, type DeepgramArchitecture, DeepgramArchitectureLanguages, DeepgramArchitectures, DeepgramCallbackMethod, type DeepgramCallbackMethodType, DeepgramEncoding, type DeepgramEncodingType, DeepgramIntentMode, type DeepgramIntentModeType, DeepgramLanguage, type DeepgramLanguageCode, DeepgramLanguageCodes, type DeepgramLanguageCode as DeepgramLanguageType, DeepgramModel, type DeepgramModelCode, DeepgramModelCodes, DeepgramModelLabels, type DeepgramModelCode as DeepgramModelType, type DeepgramMultilingualArchitecture, DeepgramMultilingualArchitectures, DeepgramRedact, type DeepgramRedactType, DeepgramRegion, type DeepgramRegionType, DeepgramSampleRate, type DeepgramSampleRateType, DeepgramStatus, type DeepgramStatusType, DeepgramTTSContainer, type DeepgramTTSContainerType, DeepgramTTSEncoding, type DeepgramTTSEncodingType, DeepgramTTSModel, type DeepgramTTSModelType, DeepgramTTSSampleRate, type DeepgramTTSSampleRateType, DeepgramTopicMode, type DeepgramTopicModeType, ElevenLabsAudioFormat, type ElevenLabsAudioFormatType, ElevenLabsLanguage, type ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, type ElevenLabsLanguageType, ElevenLabsLanguages, ElevenLabsModel, type ElevenLabsModelCode, ElevenLabsModelCodes, ElevenLabsModelLabels, type ElevenLabsModelType, ElevenLabsRealtimeModel, type ElevenLabsRealtimeModelCode, ElevenLabsRealtimeModelCodes, type ElevenLabsRealtimeModelType, ElevenLabsRegion, type ElevenLabsRegionType, GladiaBitDepth, type GladiaBitDepthType, GladiaEncoding, type GladiaEncodingType, GladiaLanguage, type GladiaLanguageType, GladiaModel, type GladiaModelType, GladiaRegion, type GladiaRegionType, GladiaSampleRate, type GladiaSampleRateType, GladiaStatus, type GladiaStatusType, GladiaTranslationLanguage, type GladiaTranslationLanguageType, OpenAILanguage, OpenAILanguageCodes, type OpenAILanguageType, OpenAIModel, type OpenAIModelCode, OpenAIModelCodes, OpenAIModelLabels, type OpenAIModelType, OpenAIRealtimeAudioFormat, type OpenAIRealtimeAudioFormatType, OpenAIRealtimeModel, type OpenAIRealtimeModelCode, OpenAIRealtimeModelCodes, type OpenAIRealtimeModelType, OpenAIRealtimeTranscriptionModel, type OpenAIRealtimeTranscriptionModelType, OpenAIRealtimeTurnDetection, type OpenAIRealtimeTurnDetectionType, OpenAIResponseFormat, type OpenAIResponseFormatType, type OpenAITranscriptionModelCode, SonioxAsyncModel, type SonioxAsyncModelCode, SonioxAsyncModelCodes, SonioxLanguage, type SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, type SonioxLanguageType, SonioxLanguages, SonioxModel, type SonioxModelCode, SonioxModelCodes, SonioxModelLabels, SonioxModels, SonioxRealtimeModel, type SonioxRealtimeModelCode, SonioxRealtimeModelCodes, SonioxRegion, type SonioxRegionType, SpeechmaticsLanguage, type SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, type SpeechmaticsLanguageType, SpeechmaticsLanguages, SpeechmaticsOperatingPoint, type SpeechmaticsOperatingPointType, SpeechmaticsRegion, type SpeechmaticsRegionType };
|
package/dist/constants.js
CHANGED
|
@@ -23,6 +23,7 @@ var constants_exports = {};
|
|
|
23
23
|
__export(constants_exports, {
|
|
24
24
|
AssemblyAIEncoding: () => AssemblyAIEncoding,
|
|
25
25
|
AssemblyAILanguage: () => AssemblyAILanguage,
|
|
26
|
+
AssemblyAIRegion: () => AssemblyAIRegion,
|
|
26
27
|
AssemblyAISampleRate: () => AssemblyAISampleRate,
|
|
27
28
|
AssemblyAISpeechModel: () => AssemblyAISpeechModel,
|
|
28
29
|
AssemblyAIStatus: () => AssemblyAIStatus,
|
|
@@ -934,7 +935,12 @@ var DeepgramArchitectureLanguages = {
|
|
|
934
935
|
"uk",
|
|
935
936
|
"ur",
|
|
936
937
|
"vi",
|
|
937
|
-
"zh
|
|
938
|
+
"zh",
|
|
939
|
+
"zh-CN",
|
|
940
|
+
"zh-Hans",
|
|
941
|
+
"zh-Hant",
|
|
942
|
+
"zh-HK",
|
|
943
|
+
"zh-TW"
|
|
938
944
|
],
|
|
939
945
|
"polaris": [
|
|
940
946
|
"da",
|
|
@@ -3382,6 +3388,12 @@ var AssemblyAISampleRate = {
|
|
|
3382
3388
|
rate48000: 48e3
|
|
3383
3389
|
};
|
|
3384
3390
|
var AssemblyAIStatus = TranscriptStatus;
|
|
3391
|
+
var AssemblyAIRegion = {
|
|
3392
|
+
/** United States (default) */
|
|
3393
|
+
us: "us",
|
|
3394
|
+
/** European Union — data never leaves the EU */
|
|
3395
|
+
eu: "eu"
|
|
3396
|
+
};
|
|
3385
3397
|
var GladiaStatus = TranscriptionControllerListV2StatusItem;
|
|
3386
3398
|
var AzureStatus = Status;
|
|
3387
3399
|
var DeepgramStatus = ManageV1FilterStatusParameter;
|
|
@@ -3492,6 +3504,7 @@ var OpenAILanguage = {
|
|
|
3492
3504
|
0 && (module.exports = {
|
|
3493
3505
|
AssemblyAIEncoding,
|
|
3494
3506
|
AssemblyAILanguage,
|
|
3507
|
+
AssemblyAIRegion,
|
|
3495
3508
|
AssemblyAISampleRate,
|
|
3496
3509
|
AssemblyAISpeechModel,
|
|
3497
3510
|
AssemblyAIStatus,
|
package/dist/constants.mjs
CHANGED
|
@@ -830,7 +830,12 @@ var DeepgramArchitectureLanguages = {
|
|
|
830
830
|
"uk",
|
|
831
831
|
"ur",
|
|
832
832
|
"vi",
|
|
833
|
-
"zh
|
|
833
|
+
"zh",
|
|
834
|
+
"zh-CN",
|
|
835
|
+
"zh-Hans",
|
|
836
|
+
"zh-Hant",
|
|
837
|
+
"zh-HK",
|
|
838
|
+
"zh-TW"
|
|
834
839
|
],
|
|
835
840
|
"polaris": [
|
|
836
841
|
"da",
|
|
@@ -3278,6 +3283,12 @@ var AssemblyAISampleRate = {
|
|
|
3278
3283
|
rate48000: 48e3
|
|
3279
3284
|
};
|
|
3280
3285
|
var AssemblyAIStatus = TranscriptStatus;
|
|
3286
|
+
var AssemblyAIRegion = {
|
|
3287
|
+
/** United States (default) */
|
|
3288
|
+
us: "us",
|
|
3289
|
+
/** European Union — data never leaves the EU */
|
|
3290
|
+
eu: "eu"
|
|
3291
|
+
};
|
|
3281
3292
|
var GladiaStatus = TranscriptionControllerListV2StatusItem;
|
|
3282
3293
|
var AzureStatus = Status;
|
|
3283
3294
|
var DeepgramStatus = ManageV1FilterStatusParameter;
|
|
@@ -3387,6 +3398,7 @@ var OpenAILanguage = {
|
|
|
3387
3398
|
export {
|
|
3388
3399
|
AssemblyAIEncoding,
|
|
3389
3400
|
AssemblyAILanguage,
|
|
3401
|
+
AssemblyAIRegion,
|
|
3390
3402
|
AssemblyAISampleRate,
|
|
3391
3403
|
AssemblyAISpeechModel,
|
|
3392
3404
|
AssemblyAIStatus,
|