voice-router-dev 0.3.1 → 0.3.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 +321 -0
- package/dist/constants.d.mts +292 -246
- package/dist/constants.d.ts +292 -246
- package/dist/constants.js +51 -9
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +48 -9
- package/dist/constants.mjs.map +1 -1
- package/dist/index.d.mts +811 -198
- package/dist/index.d.ts +811 -198
- package/dist/index.js +417 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +417 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/constants.d.mts
CHANGED
|
@@ -1,14 +1,199 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Browser-safe constants for speech-to-text providers
|
|
3
|
+
*
|
|
4
|
+
* This module exports only plain const objects - no Node.js dependencies.
|
|
5
|
+
* Safe to use in browsers, Cloudflare Workers, and other edge environments.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Browser-safe import (no node:crypto or other Node.js deps)
|
|
10
|
+
* import { DeepgramModel, GladiaEncoding } from 'voice-router-dev/constants'
|
|
11
|
+
*
|
|
12
|
+
* const model = DeepgramModel["nova-3"]
|
|
13
|
+
* const encoding = GladiaEncoding["wav/pcm"]
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Deepgram audio encoding formats
|
|
20
|
+
*
|
|
21
|
+
* Values: `linear16`, `flac`, `mulaw`, `amr-nb`, `amr-wb`, `opus`, `speex`, `g729`, `mp3`, `vorbis`, `webm`, `mp4`, `m4a`, `aac`, `wav`, `aiff`, `mpeg`
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import { DeepgramEncoding } from 'voice-router-dev/constants'
|
|
26
|
+
*
|
|
27
|
+
* { encoding: DeepgramEncoding.linear16 }
|
|
28
|
+
* { encoding: DeepgramEncoding.opus }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const DeepgramEncoding: {
|
|
32
|
+
readonly linear16: "linear16";
|
|
33
|
+
readonly flac: "flac";
|
|
34
|
+
readonly mulaw: "mulaw";
|
|
35
|
+
readonly opus: "opus";
|
|
36
|
+
readonly speex: "speex";
|
|
37
|
+
readonly g729: "g729";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Deepgram redaction options for PII removal
|
|
41
|
+
*
|
|
42
|
+
* Values: `pci`, `numbers`, `ssn`, `pii`
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import { DeepgramRedact } from 'voice-router-dev/constants'
|
|
47
|
+
*
|
|
48
|
+
* { redact: [DeepgramRedact.pii, DeepgramRedact.ssn] }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare const DeepgramRedact: {
|
|
52
|
+
readonly pci: "pci";
|
|
53
|
+
readonly pii: "pii";
|
|
54
|
+
readonly numbers: "numbers";
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Deepgram topic detection modes
|
|
58
|
+
*
|
|
59
|
+
* Values: `extended`, `strict`
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* import { DeepgramTopicMode } from 'voice-router-dev/constants'
|
|
64
|
+
*
|
|
65
|
+
* { customTopicMode: DeepgramTopicMode.extended }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
declare const DeepgramTopicMode: {
|
|
69
|
+
readonly extended: "extended";
|
|
70
|
+
readonly strict: "strict";
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Deepgram transcription models
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* import { DeepgramModel } from 'voice-router-dev/constants'
|
|
78
|
+
*
|
|
79
|
+
* { model: DeepgramModel["nova-3"] }
|
|
80
|
+
* { model: DeepgramModel["nova-2-medical"] }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
declare const DeepgramModel: {
|
|
84
|
+
readonly "nova-3": "nova-3";
|
|
85
|
+
readonly "nova-3-general": "nova-3-general";
|
|
86
|
+
readonly "nova-3-medical": "nova-3-medical";
|
|
87
|
+
readonly "nova-2": "nova-2";
|
|
88
|
+
readonly "nova-2-general": "nova-2-general";
|
|
89
|
+
readonly "nova-2-meeting": "nova-2-meeting";
|
|
90
|
+
readonly "nova-2-finance": "nova-2-finance";
|
|
91
|
+
readonly "nova-2-conversationalai": "nova-2-conversationalai";
|
|
92
|
+
readonly "nova-2-voicemail": "nova-2-voicemail";
|
|
93
|
+
readonly "nova-2-video": "nova-2-video";
|
|
94
|
+
readonly "nova-2-medical": "nova-2-medical";
|
|
95
|
+
readonly "nova-2-drivethru": "nova-2-drivethru";
|
|
96
|
+
readonly "nova-2-automotive": "nova-2-automotive";
|
|
97
|
+
readonly nova: "nova";
|
|
98
|
+
readonly "nova-general": "nova-general";
|
|
99
|
+
readonly "nova-phonecall": "nova-phonecall";
|
|
100
|
+
readonly "nova-medical": "nova-medical";
|
|
101
|
+
readonly enhanced: "enhanced";
|
|
102
|
+
readonly "enhanced-general": "enhanced-general";
|
|
103
|
+
readonly "enhanced-meeting": "enhanced-meeting";
|
|
104
|
+
readonly "enhanced-phonecall": "enhanced-phonecall";
|
|
105
|
+
readonly "enhanced-finance": "enhanced-finance";
|
|
106
|
+
readonly base: "base";
|
|
107
|
+
readonly meeting: "meeting";
|
|
108
|
+
readonly phonecall: "phonecall";
|
|
109
|
+
readonly finance: "finance";
|
|
110
|
+
readonly conversationalai: "conversationalai";
|
|
111
|
+
readonly voicemail: "voicemail";
|
|
112
|
+
readonly video: "video";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Gladia audio encoding formats for streaming
|
|
116
|
+
*
|
|
117
|
+
* Values: `wav/pcm`, `wav/alaw`, `wav/ulaw`
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```typescript
|
|
121
|
+
* import { GladiaEncoding } from 'voice-router-dev/constants'
|
|
122
|
+
*
|
|
123
|
+
* { encoding: GladiaEncoding["wav/pcm"] }
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
declare const GladiaEncoding: {
|
|
127
|
+
readonly "wav/pcm": "wav/pcm";
|
|
128
|
+
readonly "wav/alaw": "wav/alaw";
|
|
129
|
+
readonly "wav/ulaw": "wav/ulaw";
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Gladia supported sample rates (Hz)
|
|
133
|
+
*
|
|
134
|
+
* Values: `8000`, `16000`, `32000`, `44100`, `48000`
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```typescript
|
|
138
|
+
* import { GladiaSampleRate } from 'voice-router-dev/constants'
|
|
139
|
+
*
|
|
140
|
+
* { sampleRate: GladiaSampleRate.NUMBER_16000 }
|
|
141
|
+
* ```
|
|
6
142
|
*/
|
|
143
|
+
declare const GladiaSampleRate: {
|
|
144
|
+
readonly NUMBER_8000: 8000;
|
|
145
|
+
readonly NUMBER_16000: 16000;
|
|
146
|
+
readonly NUMBER_32000: 32000;
|
|
147
|
+
readonly NUMBER_44100: 44100;
|
|
148
|
+
readonly NUMBER_48000: 48000;
|
|
149
|
+
};
|
|
7
150
|
/**
|
|
8
|
-
*
|
|
151
|
+
* Gladia supported bit depths
|
|
152
|
+
*
|
|
153
|
+
* Values: `8`, `16`, `24`, `32`
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* import { GladiaBitDepth } from 'voice-router-dev/constants'
|
|
158
|
+
*
|
|
159
|
+
* { bitDepth: GladiaBitDepth.NUMBER_16 }
|
|
160
|
+
* ```
|
|
9
161
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
162
|
+
declare const GladiaBitDepth: {
|
|
163
|
+
readonly NUMBER_8: 8;
|
|
164
|
+
readonly NUMBER_16: 16;
|
|
165
|
+
readonly NUMBER_24: 24;
|
|
166
|
+
readonly NUMBER_32: 32;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Gladia transcription models
|
|
170
|
+
*
|
|
171
|
+
* Values: `fast`, `accurate`
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* import { GladiaModel } from 'voice-router-dev/constants'
|
|
176
|
+
*
|
|
177
|
+
* { model: GladiaModel.accurate }
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
declare const GladiaModel: {
|
|
181
|
+
readonly "solaria-1": "solaria-1";
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Gladia transcription language codes (100+ languages)
|
|
185
|
+
*
|
|
186
|
+
* Common values: `en`, `es`, `fr`, `de`, `it`, `pt`, `nl`, `ja`, `ko`, `zh`, `ar`, `hi`, `ru`
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* import { GladiaLanguage } from 'voice-router-dev/constants'
|
|
191
|
+
*
|
|
192
|
+
* { language: GladiaLanguage.en }
|
|
193
|
+
* { language: GladiaLanguage.es }
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
declare const GladiaLanguage: {
|
|
12
197
|
readonly af: "af";
|
|
13
198
|
readonly am: "am";
|
|
14
199
|
readonly ar: "ar";
|
|
@@ -109,18 +294,19 @@ declare const TranscriptionLanguageCodeEnum: {
|
|
|
109
294
|
readonly yo: "yo";
|
|
110
295
|
readonly zh: "zh";
|
|
111
296
|
};
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Generated by orval v7.9.0 🍺
|
|
115
|
-
* Do not edit manually.
|
|
116
|
-
* Gladia Control API
|
|
117
|
-
* OpenAPI spec version: 1.0
|
|
118
|
-
*/
|
|
119
297
|
/**
|
|
120
|
-
*
|
|
298
|
+
* Gladia translation target language codes
|
|
299
|
+
*
|
|
300
|
+
* Common values: `en`, `es`, `fr`, `de`, `it`, `pt`, `nl`, `ja`, `ko`, `zh`, `ar`, `hi`, `ru`
|
|
301
|
+
*
|
|
302
|
+
* @example
|
|
303
|
+
* ```typescript
|
|
304
|
+
* import { GladiaTranslationLanguage } from 'voice-router-dev/constants'
|
|
305
|
+
*
|
|
306
|
+
* { targetLanguages: [GladiaTranslationLanguage.fr, GladiaTranslationLanguage.es] }
|
|
307
|
+
* ```
|
|
121
308
|
*/
|
|
122
|
-
|
|
123
|
-
declare const TranslationLanguageCodeEnum: {
|
|
309
|
+
declare const GladiaTranslationLanguage: {
|
|
124
310
|
readonly af: "af";
|
|
125
311
|
readonly am: "am";
|
|
126
312
|
readonly ar: "ar";
|
|
@@ -222,233 +408,6 @@ declare const TranslationLanguageCodeEnum: {
|
|
|
222
408
|
readonly yo: "yo";
|
|
223
409
|
readonly zh: "zh";
|
|
224
410
|
};
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Generated by orval v7.9.0 🍺
|
|
228
|
-
* Do not edit manually.
|
|
229
|
-
* Gladia Control API
|
|
230
|
-
* OpenAPI spec version: 1.0
|
|
231
|
-
*/
|
|
232
|
-
/**
|
|
233
|
-
* The model used to process the audio. "solaria-1" is used by default.
|
|
234
|
-
*/
|
|
235
|
-
type StreamingSupportedModels = (typeof StreamingSupportedModels)[keyof typeof StreamingSupportedModels];
|
|
236
|
-
declare const StreamingSupportedModels: {
|
|
237
|
-
readonly "solaria-1": "solaria-1";
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Generated by orval v7.9.0 🍺
|
|
242
|
-
* Do not edit manually.
|
|
243
|
-
* Deepgram API Specification
|
|
244
|
-
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
245
|
-
|
|
246
|
-
* OpenAPI spec version: 1.0.0
|
|
247
|
-
*/
|
|
248
|
-
/**
|
|
249
|
-
* SharedCustomTopicModeParameter type definition
|
|
250
|
-
*/
|
|
251
|
-
/**
|
|
252
|
-
* SharedCustomTopicModeParameter type definition
|
|
253
|
-
*/
|
|
254
|
-
/**
|
|
255
|
-
* SharedCustomTopicModeParameter type definition
|
|
256
|
-
*/
|
|
257
|
-
/**
|
|
258
|
-
* SharedCustomTopicModeParameter type definition
|
|
259
|
-
*/
|
|
260
|
-
/**
|
|
261
|
-
* SharedCustomTopicModeParameter type definition
|
|
262
|
-
*/
|
|
263
|
-
/**
|
|
264
|
-
* SharedCustomTopicModeParameter type definition
|
|
265
|
-
*/
|
|
266
|
-
/**
|
|
267
|
-
* SharedCustomTopicModeParameter type definition
|
|
268
|
-
*/
|
|
269
|
-
/**
|
|
270
|
-
* SharedCustomTopicModeParameter type definition
|
|
271
|
-
*/
|
|
272
|
-
type SharedCustomTopicModeParameter = typeof SharedCustomTopicModeParameter[keyof typeof SharedCustomTopicModeParameter];
|
|
273
|
-
declare const SharedCustomTopicModeParameter: {
|
|
274
|
-
readonly extended: "extended";
|
|
275
|
-
readonly strict: "strict";
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Generated by orval v7.9.0 🍺
|
|
280
|
-
* Do not edit manually.
|
|
281
|
-
* Deepgram API Specification
|
|
282
|
-
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
283
|
-
|
|
284
|
-
* OpenAPI spec version: 1.0.0
|
|
285
|
-
*/
|
|
286
|
-
/**
|
|
287
|
-
* ListenV1EncodingParameter type definition
|
|
288
|
-
*/
|
|
289
|
-
/**
|
|
290
|
-
* ListenV1EncodingParameter type definition
|
|
291
|
-
*/
|
|
292
|
-
/**
|
|
293
|
-
* ListenV1EncodingParameter type definition
|
|
294
|
-
*/
|
|
295
|
-
/**
|
|
296
|
-
* ListenV1EncodingParameter type definition
|
|
297
|
-
*/
|
|
298
|
-
/**
|
|
299
|
-
* ListenV1EncodingParameter type definition
|
|
300
|
-
*/
|
|
301
|
-
/**
|
|
302
|
-
* ListenV1EncodingParameter type definition
|
|
303
|
-
*/
|
|
304
|
-
/**
|
|
305
|
-
* ListenV1EncodingParameter type definition
|
|
306
|
-
*/
|
|
307
|
-
/**
|
|
308
|
-
* ListenV1EncodingParameter type definition
|
|
309
|
-
*/
|
|
310
|
-
type ListenV1EncodingParameter = typeof ListenV1EncodingParameter[keyof typeof ListenV1EncodingParameter];
|
|
311
|
-
declare const ListenV1EncodingParameter: {
|
|
312
|
-
readonly linear16: "linear16";
|
|
313
|
-
readonly flac: "flac";
|
|
314
|
-
readonly mulaw: "mulaw";
|
|
315
|
-
readonly opus: "opus";
|
|
316
|
-
readonly speex: "speex";
|
|
317
|
-
readonly g729: "g729";
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Generated by orval v7.9.0 🍺
|
|
322
|
-
* Do not edit manually.
|
|
323
|
-
* Deepgram API Specification
|
|
324
|
-
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
325
|
-
|
|
326
|
-
* OpenAPI spec version: 1.0.0
|
|
327
|
-
*/
|
|
328
|
-
type ListenV1RedactParameterOneOfItem = (typeof ListenV1RedactParameterOneOfItem)[keyof typeof ListenV1RedactParameterOneOfItem];
|
|
329
|
-
declare const ListenV1RedactParameterOneOfItem: {
|
|
330
|
-
readonly pci: "pci";
|
|
331
|
-
readonly pii: "pii";
|
|
332
|
-
readonly numbers: "numbers";
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Generated by orval v7.9.0 🍺
|
|
337
|
-
* Do not edit manually.
|
|
338
|
-
* Gladia Control API
|
|
339
|
-
* OpenAPI spec version: 1.0
|
|
340
|
-
*/
|
|
341
|
-
/**
|
|
342
|
-
* The bit depth of the audio stream
|
|
343
|
-
*/
|
|
344
|
-
type StreamingSupportedBitDepthEnum = (typeof StreamingSupportedBitDepthEnum)[keyof typeof StreamingSupportedBitDepthEnum];
|
|
345
|
-
declare const StreamingSupportedBitDepthEnum: {
|
|
346
|
-
readonly NUMBER_8: 8;
|
|
347
|
-
readonly NUMBER_16: 16;
|
|
348
|
-
readonly NUMBER_24: 24;
|
|
349
|
-
readonly NUMBER_32: 32;
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Generated by orval v7.9.0 🍺
|
|
354
|
-
* Do not edit manually.
|
|
355
|
-
* Gladia Control API
|
|
356
|
-
* OpenAPI spec version: 1.0
|
|
357
|
-
*/
|
|
358
|
-
/**
|
|
359
|
-
* The encoding format of the audio stream. Supported formats:
|
|
360
|
-
- PCM: 8, 16, 24, and 32 bits
|
|
361
|
-
- A-law: 8 bits
|
|
362
|
-
- μ-law: 8 bits
|
|
363
|
-
|
|
364
|
-
Note: No need to add WAV headers to raw audio as the API supports both formats.
|
|
365
|
-
*/
|
|
366
|
-
type StreamingSupportedEncodingEnum = (typeof StreamingSupportedEncodingEnum)[keyof typeof StreamingSupportedEncodingEnum];
|
|
367
|
-
declare const StreamingSupportedEncodingEnum: {
|
|
368
|
-
readonly "wav/pcm": "wav/pcm";
|
|
369
|
-
readonly "wav/alaw": "wav/alaw";
|
|
370
|
-
readonly "wav/ulaw": "wav/ulaw";
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Generated by orval v7.9.0 🍺
|
|
375
|
-
* Do not edit manually.
|
|
376
|
-
* Gladia Control API
|
|
377
|
-
* OpenAPI spec version: 1.0
|
|
378
|
-
*/
|
|
379
|
-
/**
|
|
380
|
-
* The sample rate of the audio stream
|
|
381
|
-
*/
|
|
382
|
-
type StreamingSupportedSampleRateEnum = (typeof StreamingSupportedSampleRateEnum)[keyof typeof StreamingSupportedSampleRateEnum];
|
|
383
|
-
declare const StreamingSupportedSampleRateEnum: {
|
|
384
|
-
readonly NUMBER_8000: 8000;
|
|
385
|
-
readonly NUMBER_16000: 16000;
|
|
386
|
-
readonly NUMBER_32000: 32000;
|
|
387
|
-
readonly NUMBER_44100: 44100;
|
|
388
|
-
readonly NUMBER_48000: 48000;
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Browser-safe constants for speech-to-text providers
|
|
393
|
-
*
|
|
394
|
-
* This module exports only plain const objects - no Node.js dependencies.
|
|
395
|
-
* Safe to use in browsers, Cloudflare Workers, and other edge environments.
|
|
396
|
-
*
|
|
397
|
-
* @example
|
|
398
|
-
* ```typescript
|
|
399
|
-
* // Browser-safe import (no node:crypto or other Node.js deps)
|
|
400
|
-
* import { DeepgramModel, GladiaEncoding } from 'voice-router-dev/constants'
|
|
401
|
-
*
|
|
402
|
-
* const model = DeepgramModel["nova-3"]
|
|
403
|
-
* const encoding = GladiaEncoding["wav/pcm"]
|
|
404
|
-
* ```
|
|
405
|
-
*
|
|
406
|
-
* @packageDocumentation
|
|
407
|
-
*/
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Deepgram transcription models
|
|
411
|
-
*
|
|
412
|
-
* @example
|
|
413
|
-
* ```typescript
|
|
414
|
-
* import { DeepgramModel } from 'voice-router-dev/constants'
|
|
415
|
-
*
|
|
416
|
-
* { model: DeepgramModel["nova-3"] }
|
|
417
|
-
* { model: DeepgramModel["nova-2-medical"] }
|
|
418
|
-
* ```
|
|
419
|
-
*/
|
|
420
|
-
declare const DeepgramModel: {
|
|
421
|
-
readonly "nova-3": "nova-3";
|
|
422
|
-
readonly "nova-3-general": "nova-3-general";
|
|
423
|
-
readonly "nova-3-medical": "nova-3-medical";
|
|
424
|
-
readonly "nova-2": "nova-2";
|
|
425
|
-
readonly "nova-2-general": "nova-2-general";
|
|
426
|
-
readonly "nova-2-meeting": "nova-2-meeting";
|
|
427
|
-
readonly "nova-2-finance": "nova-2-finance";
|
|
428
|
-
readonly "nova-2-conversationalai": "nova-2-conversationalai";
|
|
429
|
-
readonly "nova-2-voicemail": "nova-2-voicemail";
|
|
430
|
-
readonly "nova-2-video": "nova-2-video";
|
|
431
|
-
readonly "nova-2-medical": "nova-2-medical";
|
|
432
|
-
readonly "nova-2-drivethru": "nova-2-drivethru";
|
|
433
|
-
readonly "nova-2-automotive": "nova-2-automotive";
|
|
434
|
-
readonly nova: "nova";
|
|
435
|
-
readonly "nova-general": "nova-general";
|
|
436
|
-
readonly "nova-phonecall": "nova-phonecall";
|
|
437
|
-
readonly "nova-medical": "nova-medical";
|
|
438
|
-
readonly enhanced: "enhanced";
|
|
439
|
-
readonly "enhanced-general": "enhanced-general";
|
|
440
|
-
readonly "enhanced-meeting": "enhanced-meeting";
|
|
441
|
-
readonly "enhanced-phonecall": "enhanced-phonecall";
|
|
442
|
-
readonly "enhanced-finance": "enhanced-finance";
|
|
443
|
-
readonly base: "base";
|
|
444
|
-
readonly meeting: "meeting";
|
|
445
|
-
readonly phonecall: "phonecall";
|
|
446
|
-
readonly finance: "finance";
|
|
447
|
-
readonly conversationalai: "conversationalai";
|
|
448
|
-
readonly voicemail: "voicemail";
|
|
449
|
-
readonly video: "video";
|
|
450
|
-
};
|
|
451
|
-
|
|
452
411
|
/**
|
|
453
412
|
* AssemblyAI audio encoding formats
|
|
454
413
|
*
|
|
@@ -502,14 +461,101 @@ declare const AssemblyAISampleRate: {
|
|
|
502
461
|
readonly rate44100: 44100;
|
|
503
462
|
readonly rate48000: 48000;
|
|
504
463
|
};
|
|
464
|
+
/**
|
|
465
|
+
* AssemblyAI transcript status values for filtering
|
|
466
|
+
*
|
|
467
|
+
* Values: `queued`, `processing`, `completed`, `error`
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* ```typescript
|
|
471
|
+
* import { AssemblyAIStatus } from 'voice-router-dev/constants'
|
|
472
|
+
*
|
|
473
|
+
* await router.listTranscripts('assemblyai', {
|
|
474
|
+
* status: AssemblyAIStatus.completed
|
|
475
|
+
* })
|
|
476
|
+
* ```
|
|
477
|
+
*/
|
|
478
|
+
declare const AssemblyAIStatus: {
|
|
479
|
+
readonly queued: "queued";
|
|
480
|
+
readonly processing: "processing";
|
|
481
|
+
readonly completed: "completed";
|
|
482
|
+
readonly error: "error";
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* Gladia job status values for filtering
|
|
486
|
+
*
|
|
487
|
+
* Values: `queued`, `processing`, `done`, `error`
|
|
488
|
+
*
|
|
489
|
+
* Note: Gladia uses `done` instead of `completed`
|
|
490
|
+
*
|
|
491
|
+
* @example
|
|
492
|
+
* ```typescript
|
|
493
|
+
* import { GladiaStatus } from 'voice-router-dev/constants'
|
|
494
|
+
*
|
|
495
|
+
* await router.listTranscripts('gladia', {
|
|
496
|
+
* status: GladiaStatus.done
|
|
497
|
+
* })
|
|
498
|
+
* ```
|
|
499
|
+
*/
|
|
500
|
+
declare const GladiaStatus: {
|
|
501
|
+
readonly queued: "queued";
|
|
502
|
+
readonly processing: "processing";
|
|
503
|
+
readonly done: "done";
|
|
504
|
+
readonly error: "error";
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Azure Speech-to-Text transcription status values for filtering
|
|
508
|
+
*
|
|
509
|
+
* Values: `NotStarted`, `Running`, `Succeeded`, `Failed`
|
|
510
|
+
*
|
|
511
|
+
* Note: Azure uses different naming than other providers
|
|
512
|
+
*
|
|
513
|
+
* @example
|
|
514
|
+
* ```typescript
|
|
515
|
+
* import { AzureStatus } from 'voice-router-dev/constants'
|
|
516
|
+
*
|
|
517
|
+
* await router.listTranscripts('azure-stt', {
|
|
518
|
+
* status: AzureStatus.Succeeded
|
|
519
|
+
* })
|
|
520
|
+
* ```
|
|
521
|
+
*/
|
|
522
|
+
declare const AzureStatus: {
|
|
523
|
+
readonly NotStarted: "NotStarted";
|
|
524
|
+
readonly Running: "Running";
|
|
525
|
+
readonly Succeeded: "Succeeded";
|
|
526
|
+
readonly Failed: "Failed";
|
|
527
|
+
};
|
|
528
|
+
/** Deepgram encoding type derived from const object */
|
|
529
|
+
type DeepgramEncodingType = (typeof DeepgramEncoding)[keyof typeof DeepgramEncoding];
|
|
530
|
+
/** Deepgram redaction type derived from const object */
|
|
531
|
+
type DeepgramRedactType = (typeof DeepgramRedact)[keyof typeof DeepgramRedact];
|
|
532
|
+
/** Deepgram topic mode type derived from const object */
|
|
533
|
+
type DeepgramTopicModeType = (typeof DeepgramTopicMode)[keyof typeof DeepgramTopicMode];
|
|
505
534
|
/** Deepgram model type derived from const object */
|
|
506
535
|
type DeepgramModelType = (typeof DeepgramModel)[keyof typeof DeepgramModel];
|
|
507
|
-
|
|
536
|
+
/** Gladia encoding type derived from const object */
|
|
537
|
+
type GladiaEncodingType = (typeof GladiaEncoding)[keyof typeof GladiaEncoding];
|
|
538
|
+
/** Gladia sample rate type derived from const object */
|
|
539
|
+
type GladiaSampleRateType = (typeof GladiaSampleRate)[keyof typeof GladiaSampleRate];
|
|
540
|
+
/** Gladia bit depth type derived from const object */
|
|
541
|
+
type GladiaBitDepthType = (typeof GladiaBitDepth)[keyof typeof GladiaBitDepth];
|
|
542
|
+
/** Gladia model type derived from const object */
|
|
543
|
+
type GladiaModelType = (typeof GladiaModel)[keyof typeof GladiaModel];
|
|
544
|
+
/** Gladia language type derived from const object */
|
|
545
|
+
type GladiaLanguageType = (typeof GladiaLanguage)[keyof typeof GladiaLanguage];
|
|
546
|
+
/** Gladia translation language type derived from const object */
|
|
547
|
+
type GladiaTranslationLanguageType = (typeof GladiaTranslationLanguage)[keyof typeof GladiaTranslationLanguage];
|
|
508
548
|
/** AssemblyAI encoding type derived from const object */
|
|
509
549
|
type AssemblyAIEncodingType = (typeof AssemblyAIEncoding)[keyof typeof AssemblyAIEncoding];
|
|
510
550
|
/** AssemblyAI speech model type derived from const object */
|
|
511
551
|
type AssemblyAISpeechModelType = (typeof AssemblyAISpeechModel)[keyof typeof AssemblyAISpeechModel];
|
|
512
552
|
/** AssemblyAI sample rate type derived from const object */
|
|
513
553
|
type AssemblyAISampleRateType = (typeof AssemblyAISampleRate)[keyof typeof AssemblyAISampleRate];
|
|
554
|
+
/** AssemblyAI status type derived from const object */
|
|
555
|
+
type AssemblyAIStatusType = (typeof AssemblyAIStatus)[keyof typeof AssemblyAIStatus];
|
|
556
|
+
/** Gladia status type derived from const object */
|
|
557
|
+
type GladiaStatusType = (typeof GladiaStatus)[keyof typeof GladiaStatus];
|
|
558
|
+
/** Azure status type derived from const object */
|
|
559
|
+
type AzureStatusType = (typeof AzureStatus)[keyof typeof AzureStatus];
|
|
514
560
|
|
|
515
|
-
export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType,
|
|
561
|
+
export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType, AssemblyAIStatus, type AssemblyAIStatusType, AzureStatus, type AzureStatusType, DeepgramEncoding, type DeepgramEncodingType, DeepgramModel, type DeepgramModelType, DeepgramRedact, type DeepgramRedactType, DeepgramTopicMode, type DeepgramTopicModeType, GladiaBitDepth, type GladiaBitDepthType, GladiaEncoding, type GladiaEncodingType, GladiaLanguage, type GladiaLanguageType, GladiaModel, type GladiaModelType, GladiaSampleRate, type GladiaSampleRateType, GladiaStatus, type GladiaStatusType, GladiaTranslationLanguage, type GladiaTranslationLanguageType };
|