voice-router-dev 0.3.0 → 0.3.2

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.
@@ -0,0 +1,515 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * Gladia Control API
5
+ * OpenAPI spec version: 1.0
6
+ */
7
+ /**
8
+ * Specify the language in which it will be pronounced when sound comparison occurs. Default to transcription language.
9
+ */
10
+ type TranscriptionLanguageCodeEnum = (typeof TranscriptionLanguageCodeEnum)[keyof typeof TranscriptionLanguageCodeEnum];
11
+ declare const TranscriptionLanguageCodeEnum: {
12
+ readonly af: "af";
13
+ readonly am: "am";
14
+ readonly ar: "ar";
15
+ readonly as: "as";
16
+ readonly az: "az";
17
+ readonly ba: "ba";
18
+ readonly be: "be";
19
+ readonly bg: "bg";
20
+ readonly bn: "bn";
21
+ readonly bo: "bo";
22
+ readonly br: "br";
23
+ readonly bs: "bs";
24
+ readonly ca: "ca";
25
+ readonly cs: "cs";
26
+ readonly cy: "cy";
27
+ readonly da: "da";
28
+ readonly de: "de";
29
+ readonly el: "el";
30
+ readonly en: "en";
31
+ readonly es: "es";
32
+ readonly et: "et";
33
+ readonly eu: "eu";
34
+ readonly fa: "fa";
35
+ readonly fi: "fi";
36
+ readonly fo: "fo";
37
+ readonly fr: "fr";
38
+ readonly gl: "gl";
39
+ readonly gu: "gu";
40
+ readonly ha: "ha";
41
+ readonly haw: "haw";
42
+ readonly he: "he";
43
+ readonly hi: "hi";
44
+ readonly hr: "hr";
45
+ readonly ht: "ht";
46
+ readonly hu: "hu";
47
+ readonly hy: "hy";
48
+ readonly id: "id";
49
+ readonly is: "is";
50
+ readonly it: "it";
51
+ readonly ja: "ja";
52
+ readonly jw: "jw";
53
+ readonly ka: "ka";
54
+ readonly kk: "kk";
55
+ readonly km: "km";
56
+ readonly kn: "kn";
57
+ readonly ko: "ko";
58
+ readonly la: "la";
59
+ readonly lb: "lb";
60
+ readonly ln: "ln";
61
+ readonly lo: "lo";
62
+ readonly lt: "lt";
63
+ readonly lv: "lv";
64
+ readonly mg: "mg";
65
+ readonly mi: "mi";
66
+ readonly mk: "mk";
67
+ readonly ml: "ml";
68
+ readonly mn: "mn";
69
+ readonly mr: "mr";
70
+ readonly ms: "ms";
71
+ readonly mt: "mt";
72
+ readonly my: "my";
73
+ readonly ne: "ne";
74
+ readonly nl: "nl";
75
+ readonly nn: "nn";
76
+ readonly no: "no";
77
+ readonly oc: "oc";
78
+ readonly pa: "pa";
79
+ readonly pl: "pl";
80
+ readonly ps: "ps";
81
+ readonly pt: "pt";
82
+ readonly ro: "ro";
83
+ readonly ru: "ru";
84
+ readonly sa: "sa";
85
+ readonly sd: "sd";
86
+ readonly si: "si";
87
+ readonly sk: "sk";
88
+ readonly sl: "sl";
89
+ readonly sn: "sn";
90
+ readonly so: "so";
91
+ readonly sq: "sq";
92
+ readonly sr: "sr";
93
+ readonly su: "su";
94
+ readonly sv: "sv";
95
+ readonly sw: "sw";
96
+ readonly ta: "ta";
97
+ readonly te: "te";
98
+ readonly tg: "tg";
99
+ readonly th: "th";
100
+ readonly tk: "tk";
101
+ readonly tl: "tl";
102
+ readonly tr: "tr";
103
+ readonly tt: "tt";
104
+ readonly uk: "uk";
105
+ readonly ur: "ur";
106
+ readonly uz: "uz";
107
+ readonly vi: "vi";
108
+ readonly yi: "yi";
109
+ readonly yo: "yo";
110
+ readonly zh: "zh";
111
+ };
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
+ /**
120
+ * Target language in `iso639-1` format you want the transcription translated to
121
+ */
122
+ type TranslationLanguageCodeEnum = (typeof TranslationLanguageCodeEnum)[keyof typeof TranslationLanguageCodeEnum];
123
+ declare const TranslationLanguageCodeEnum: {
124
+ readonly af: "af";
125
+ readonly am: "am";
126
+ readonly ar: "ar";
127
+ readonly as: "as";
128
+ readonly az: "az";
129
+ readonly ba: "ba";
130
+ readonly be: "be";
131
+ readonly bg: "bg";
132
+ readonly bn: "bn";
133
+ readonly bo: "bo";
134
+ readonly br: "br";
135
+ readonly bs: "bs";
136
+ readonly ca: "ca";
137
+ readonly cs: "cs";
138
+ readonly cy: "cy";
139
+ readonly da: "da";
140
+ readonly de: "de";
141
+ readonly el: "el";
142
+ readonly en: "en";
143
+ readonly es: "es";
144
+ readonly et: "et";
145
+ readonly eu: "eu";
146
+ readonly fa: "fa";
147
+ readonly fi: "fi";
148
+ readonly fo: "fo";
149
+ readonly fr: "fr";
150
+ readonly gl: "gl";
151
+ readonly gu: "gu";
152
+ readonly ha: "ha";
153
+ readonly haw: "haw";
154
+ readonly he: "he";
155
+ readonly hi: "hi";
156
+ readonly hr: "hr";
157
+ readonly ht: "ht";
158
+ readonly hu: "hu";
159
+ readonly hy: "hy";
160
+ readonly id: "id";
161
+ readonly is: "is";
162
+ readonly it: "it";
163
+ readonly ja: "ja";
164
+ readonly jw: "jw";
165
+ readonly ka: "ka";
166
+ readonly kk: "kk";
167
+ readonly km: "km";
168
+ readonly kn: "kn";
169
+ readonly ko: "ko";
170
+ readonly la: "la";
171
+ readonly lb: "lb";
172
+ readonly ln: "ln";
173
+ readonly lo: "lo";
174
+ readonly lt: "lt";
175
+ readonly lv: "lv";
176
+ readonly mg: "mg";
177
+ readonly mi: "mi";
178
+ readonly mk: "mk";
179
+ readonly ml: "ml";
180
+ readonly mn: "mn";
181
+ readonly mr: "mr";
182
+ readonly ms: "ms";
183
+ readonly mt: "mt";
184
+ readonly my: "my";
185
+ readonly ne: "ne";
186
+ readonly nl: "nl";
187
+ readonly nn: "nn";
188
+ readonly no: "no";
189
+ readonly oc: "oc";
190
+ readonly pa: "pa";
191
+ readonly pl: "pl";
192
+ readonly ps: "ps";
193
+ readonly pt: "pt";
194
+ readonly ro: "ro";
195
+ readonly ru: "ru";
196
+ readonly sa: "sa";
197
+ readonly sd: "sd";
198
+ readonly si: "si";
199
+ readonly sk: "sk";
200
+ readonly sl: "sl";
201
+ readonly sn: "sn";
202
+ readonly so: "so";
203
+ readonly sq: "sq";
204
+ readonly sr: "sr";
205
+ readonly su: "su";
206
+ readonly sv: "sv";
207
+ readonly sw: "sw";
208
+ readonly ta: "ta";
209
+ readonly te: "te";
210
+ readonly tg: "tg";
211
+ readonly th: "th";
212
+ readonly tk: "tk";
213
+ readonly tl: "tl";
214
+ readonly tr: "tr";
215
+ readonly tt: "tt";
216
+ readonly uk: "uk";
217
+ readonly ur: "ur";
218
+ readonly uz: "uz";
219
+ readonly vi: "vi";
220
+ readonly wo: "wo";
221
+ readonly yi: "yi";
222
+ readonly yo: "yo";
223
+ readonly zh: "zh";
224
+ };
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
+ /**
453
+ * AssemblyAI audio encoding formats
454
+ *
455
+ * @example
456
+ * ```typescript
457
+ * import { AssemblyAIEncoding } from 'voice-router-dev/constants'
458
+ *
459
+ * { encoding: AssemblyAIEncoding.pcmS16le }
460
+ * ```
461
+ */
462
+ declare const AssemblyAIEncoding: {
463
+ /** PCM signed 16-bit little-endian (recommended) */
464
+ readonly pcmS16le: "pcm_s16le";
465
+ /** μ-law (telephony) */
466
+ readonly pcmMulaw: "pcm_mulaw";
467
+ };
468
+ /**
469
+ * AssemblyAI streaming speech models
470
+ *
471
+ * @example
472
+ * ```typescript
473
+ * import { AssemblyAISpeechModel } from 'voice-router-dev/constants'
474
+ *
475
+ * { speechModel: AssemblyAISpeechModel.multilingual }
476
+ * ```
477
+ */
478
+ declare const AssemblyAISpeechModel: {
479
+ /** Optimized for English */
480
+ readonly english: "universal-streaming-english";
481
+ /** Supports 20+ languages */
482
+ readonly multilingual: "universal-streaming-multilingual";
483
+ };
484
+ /**
485
+ * AssemblyAI supported sample rates
486
+ *
487
+ * **Note:** This const is NOT type-checked against a generated type.
488
+ * AssemblyAI's SDK accepts any `number` for sampleRate.
489
+ * These values are from AssemblyAI documentation for convenience.
490
+ *
491
+ * @example
492
+ * ```typescript
493
+ * import { AssemblyAISampleRate } from 'voice-router-dev/constants'
494
+ *
495
+ * { sampleRate: AssemblyAISampleRate.rate16000 }
496
+ * ```
497
+ */
498
+ declare const AssemblyAISampleRate: {
499
+ readonly rate8000: 8000;
500
+ readonly rate16000: 16000;
501
+ readonly rate22050: 22050;
502
+ readonly rate44100: 44100;
503
+ readonly rate48000: 48000;
504
+ };
505
+ /** Deepgram model type derived from const object */
506
+ type DeepgramModelType = (typeof DeepgramModel)[keyof typeof DeepgramModel];
507
+
508
+ /** AssemblyAI encoding type derived from const object */
509
+ type AssemblyAIEncodingType = (typeof AssemblyAIEncoding)[keyof typeof AssemblyAIEncoding];
510
+ /** AssemblyAI speech model type derived from const object */
511
+ type AssemblyAISpeechModelType = (typeof AssemblyAISpeechModel)[keyof typeof AssemblyAISpeechModel];
512
+ /** AssemblyAI sample rate type derived from const object */
513
+ type AssemblyAISampleRateType = (typeof AssemblyAISampleRate)[keyof typeof AssemblyAISampleRate];
514
+
515
+ export { AssemblyAIEncoding, type AssemblyAIEncodingType, AssemblyAISampleRate, type AssemblyAISampleRateType, AssemblyAISpeechModel, type AssemblyAISpeechModelType, ListenV1EncodingParameter as DeepgramEncoding, DeepgramModel, type DeepgramModelType, ListenV1RedactParameterOneOfItem as DeepgramRedact, ListenV1RedactParameterOneOfItem as DeepgramRedactType, SharedCustomTopicModeParameter as DeepgramTopicMode, SharedCustomTopicModeParameter as DeepgramTopicModeType, StreamingSupportedBitDepthEnum as GladiaBitDepth, StreamingSupportedEncodingEnum as GladiaEncoding, TranscriptionLanguageCodeEnum as GladiaLanguage, StreamingSupportedModels as GladiaModel, StreamingSupportedSampleRateEnum as GladiaSampleRate, TranslationLanguageCodeEnum as GladiaTranslationLanguage };