voice-router-dev 0.8.0 → 0.8.1
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 +162 -0
- package/README.md +21 -2
- package/dist/constants.d.mts +577 -7
- package/dist/constants.d.ts +577 -7
- package/dist/constants.js +493 -1
- package/dist/constants.mjs +482 -1
- package/dist/{field-configs-CDeDcDz_.d.mts → field-configs-CDVygOte.d.mts} +5817 -5817
- package/dist/{field-configs-CDeDcDz_.d.ts → field-configs-CDVygOte.d.ts} +5817 -5817
- package/dist/field-configs.d.mts +1 -1
- package/dist/field-configs.d.ts +1 -1
- package/dist/index.d.mts +3558 -1757
- package/dist/index.d.ts +3558 -1757
- package/dist/index.js +1466 -91
- package/dist/index.mjs +1458 -91
- package/dist/{provider-metadata-BHbouRC9.d.mts → provider-metadata-BnkedpXm.d.mts} +34 -4
- package/dist/{provider-metadata-Dsk2PVud.d.ts → provider-metadata-DbsSGAO7.d.ts} +34 -4
- package/dist/provider-metadata.d.mts +2 -2
- package/dist/provider-metadata.d.ts +2 -2
- package/dist/provider-metadata.js +349 -6
- package/dist/provider-metadata.mjs +345 -6
- package/dist/{transcriptWebhookNotification-D1iE2_a4.d.ts → transcriptWebhookNotification-BJk1CEF5.d.ts} +712 -9
- package/dist/{transcriptWebhookNotification-Cz9RsK5D.d.mts → transcriptWebhookNotification-CNFpns9f.d.mts} +712 -9
- package/dist/webhooks.d.mts +102 -5
- package/dist/webhooks.d.ts +102 -5
- package/dist/webhooks.js +342 -39
- package/dist/webhooks.mjs +340 -39
- package/package.json +11 -5
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", "fi", "fr", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "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", "tl", "tr", "tr-TR", "uk", "vi"];
|
|
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"];
|
|
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"];
|
|
@@ -640,6 +640,10 @@ declare const SonioxLanguage: {
|
|
|
640
640
|
* Derived from GetModelsResponse in OpenAPI spec
|
|
641
641
|
*/
|
|
642
642
|
declare const SonioxModels: readonly [{
|
|
643
|
+
readonly id: "stt-rt-v4";
|
|
644
|
+
readonly name: "Speech-to-Text Real-time v4";
|
|
645
|
+
readonly mode: "real_time";
|
|
646
|
+
}, {
|
|
643
647
|
readonly id: "stt-rt-v3";
|
|
644
648
|
readonly name: "Speech-to-Text Real-time v3";
|
|
645
649
|
readonly mode: "real_time";
|
|
@@ -680,7 +684,7 @@ declare const SonioxModels: readonly [{
|
|
|
680
684
|
/**
|
|
681
685
|
* Soniox model IDs
|
|
682
686
|
*/
|
|
683
|
-
declare const SonioxModelCodes: readonly ["stt-rt-v3", "stt-async-v4", "stt-async-v3", "stt-rt-preview", "stt-async-preview", "stt-rt-v3-preview", "stt-rt-preview-v2", "stt-async-preview-v1"];
|
|
687
|
+
declare const SonioxModelCodes: readonly ["stt-rt-v4", "stt-rt-v3", "stt-async-v4", "stt-async-v3", "stt-rt-preview", "stt-async-preview", "stt-rt-v3-preview", "stt-rt-preview-v2", "stt-async-preview-v1"];
|
|
684
688
|
/**
|
|
685
689
|
* Type for Soniox model codes
|
|
686
690
|
*/
|
|
@@ -688,7 +692,7 @@ type SonioxModelCode = (typeof SonioxModelCodes)[number];
|
|
|
688
692
|
/**
|
|
689
693
|
* Real-time streaming model IDs
|
|
690
694
|
*/
|
|
691
|
-
declare const SonioxRealtimeModelCodes: readonly ["stt-rt-v3", "stt-rt-preview", "stt-rt-v3-preview", "stt-rt-preview-v2"];
|
|
695
|
+
declare const SonioxRealtimeModelCodes: readonly ["stt-rt-v4", "stt-rt-v3", "stt-rt-preview", "stt-rt-v3-preview", "stt-rt-preview-v2"];
|
|
692
696
|
/**
|
|
693
697
|
* Type for Soniox real-time model codes
|
|
694
698
|
*/
|
|
@@ -720,6 +724,7 @@ declare const SonioxModelLabels: Record<SonioxModelCode, string>;
|
|
|
720
724
|
* ```
|
|
721
725
|
*/
|
|
722
726
|
declare const SonioxModel: {
|
|
727
|
+
readonly stt_rt_v4: "stt-rt-v4";
|
|
723
728
|
readonly stt_rt_v3: "stt-rt-v3";
|
|
724
729
|
readonly stt_async_v4: "stt-async-v4";
|
|
725
730
|
readonly stt_async_v3: "stt-async-v3";
|
|
@@ -733,6 +738,7 @@ declare const SonioxModel: {
|
|
|
733
738
|
* Real-time models only (for streaming)
|
|
734
739
|
*/
|
|
735
740
|
declare const SonioxRealtimeModel: {
|
|
741
|
+
readonly stt_rt_v4: "stt-rt-v4";
|
|
736
742
|
readonly stt_rt_v3: "stt-rt-v3";
|
|
737
743
|
readonly stt_rt_preview: "stt-rt-preview";
|
|
738
744
|
readonly stt_rt_v3_preview: "stt-rt-v3-preview";
|
|
@@ -768,6 +774,9 @@ declare const SpeechmaticsLanguages: readonly [{
|
|
|
768
774
|
}, {
|
|
769
775
|
readonly code: "ar";
|
|
770
776
|
readonly name: "Arabic";
|
|
777
|
+
}, {
|
|
778
|
+
readonly code: "ar_en";
|
|
779
|
+
readonly name: "Arabic / English";
|
|
771
780
|
}, {
|
|
772
781
|
readonly code: "ba";
|
|
773
782
|
readonly name: "Bashkir";
|
|
@@ -952,7 +961,7 @@ declare const SpeechmaticsLanguages: readonly [{
|
|
|
952
961
|
/**
|
|
953
962
|
* Speechmatics supported language codes
|
|
954
963
|
*/
|
|
955
|
-
declare const SpeechmaticsLanguageCodes: readonly ["auto", "ar", "ba", "be", "bg", "bn", "ca", "cmn", "cmn_en", "cmn_en_ms_ta", "cs", "cy", "da", "de", "el", "en", "en_ms", "en_ta", "eo", "es", "et", "eu", "fa", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hu", "ia", "id", "it", "ja", "ko", "lt", "lv", "mn", "mr", "ms", "mt", "nl", "nn", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "sw", "ta", "th", "tl", "tr", "ug", "uk", "ur", "vi", "yue"];
|
|
964
|
+
declare const SpeechmaticsLanguageCodes: readonly ["auto", "ar", "ar_en", "ba", "be", "bg", "bn", "ca", "cmn", "cmn_en", "cmn_en_ms_ta", "cs", "cy", "da", "de", "el", "en", "en_ms", "en_ta", "eo", "es", "et", "eu", "fa", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hu", "ia", "id", "it", "ja", "ko", "lt", "lv", "mn", "mr", "ms", "mt", "nl", "nn", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "sw", "ta", "th", "tl", "tr", "ug", "uk", "ur", "vi", "yue"];
|
|
956
965
|
/**
|
|
957
966
|
* Type for Speechmatics language codes
|
|
958
967
|
*/
|
|
@@ -979,6 +988,7 @@ declare const SpeechmaticsLanguageLabels: Record<SpeechmaticsLanguageCode, strin
|
|
|
979
988
|
declare const SpeechmaticsLanguage: {
|
|
980
989
|
readonly auto: "auto";
|
|
981
990
|
readonly ar: "ar";
|
|
991
|
+
readonly ar_en: "ar_en";
|
|
982
992
|
readonly ba: "ba";
|
|
983
993
|
readonly be: "be";
|
|
984
994
|
readonly bg: "bg";
|
|
@@ -1442,9 +1452,15 @@ declare const AzureLocales: readonly [{
|
|
|
1442
1452
|
}, {
|
|
1443
1453
|
readonly code: "sq-AL";
|
|
1444
1454
|
readonly name: "Albanian (Albania)";
|
|
1455
|
+
}, {
|
|
1456
|
+
readonly code: "sr-ME";
|
|
1457
|
+
readonly name: "Serbian (ME)";
|
|
1445
1458
|
}, {
|
|
1446
1459
|
readonly code: "sr-RS";
|
|
1447
1460
|
readonly name: "Serbian (Serbia)";
|
|
1461
|
+
}, {
|
|
1462
|
+
readonly code: "sr-XK";
|
|
1463
|
+
readonly name: "Serbian (XK)";
|
|
1448
1464
|
}, {
|
|
1449
1465
|
readonly code: "su-ID";
|
|
1450
1466
|
readonly name: "Sundanese (Indonesia)";
|
|
@@ -1518,7 +1534,7 @@ declare const AzureLocales: readonly [{
|
|
|
1518
1534
|
/**
|
|
1519
1535
|
* Azure Speech-to-Text supported locale codes (BCP-47)
|
|
1520
1536
|
*/
|
|
1521
|
-
declare const AzureLocaleCodes: readonly ["af-ZA", "am-ET", "ar-AE", "ar-BH", "ar-DZ", "ar-EG", "ar-IL", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-YE", "as-IN", "az-AZ", "be-BY", "bg-BG", "bn-BD", "bn-IN", "bs-BA", "ca-ES", "cs-CZ", "cy-GB", "da-DK", "de-AT", "de-CH", "de-DE", "el-GR", "en-AU", "en-CA", "en-GB", "en-GH", "en-HK", "en-IE", "en-IN", "en-KE", "en-NG", "en-NZ", "en-PH", "en-SG", "en-TZ", "en-US", "en-ZA", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EC", "es-ES", "es-GQ", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PE", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et-EE", "eu-ES", "fa-IR", "fi-FI", "fil-PH", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "ga-IE", "gl-ES", "gu-IN", "he-IL", "hi-IN", "hr-HR", "hu-HU", "hy-AM", "id-ID", "is-IS", "it-CH", "it-IT", "ja-JP", "jv-ID", "ka-GE", "kk-KZ", "km-KH", "kn-IN", "ko-KR", "lo-LA", "lt-LT", "lv-LV", "mi-NZ", "mk-MK", "ml-IN", "mn-MN", "mr-IN", "ms-MY", "mt-MT", "my-MM", "nan-CN", "nb-NO", "ne-NP", "nl-BE", "nl-NL", "or-IN", "pa-IN", "pl-PL", "ps-AF", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "si-LK", "sk-SK", "sl-SI", "so-SO", "sq-AL", "sr-RS", "su-ID", "sv-SE", "sw-KE", "sw-TZ", "ta-IN", "ta-LK", "ta-MY", "ta-SG", "te-IN", "th-TH", "tr-TR", "uk-UA", "ur-IN", "ur-PK", "uz-UZ", "vi-VN", "wuu-CN", "yue-CN", "zh-CN", "zh-HK", "zh-SG", "zh-TW", "zu-ZA"];
|
|
1537
|
+
declare const AzureLocaleCodes: readonly ["af-ZA", "am-ET", "ar-AE", "ar-BH", "ar-DZ", "ar-EG", "ar-IL", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-YE", "as-IN", "az-AZ", "be-BY", "bg-BG", "bn-BD", "bn-IN", "bs-BA", "ca-ES", "cs-CZ", "cy-GB", "da-DK", "de-AT", "de-CH", "de-DE", "el-GR", "en-AU", "en-CA", "en-GB", "en-GH", "en-HK", "en-IE", "en-IN", "en-KE", "en-NG", "en-NZ", "en-PH", "en-SG", "en-TZ", "en-US", "en-ZA", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EC", "es-ES", "es-GQ", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PE", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et-EE", "eu-ES", "fa-IR", "fi-FI", "fil-PH", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "ga-IE", "gl-ES", "gu-IN", "he-IL", "hi-IN", "hr-HR", "hu-HU", "hy-AM", "id-ID", "is-IS", "it-CH", "it-IT", "ja-JP", "jv-ID", "ka-GE", "kk-KZ", "km-KH", "kn-IN", "ko-KR", "lo-LA", "lt-LT", "lv-LV", "mi-NZ", "mk-MK", "ml-IN", "mn-MN", "mr-IN", "ms-MY", "mt-MT", "my-MM", "nan-CN", "nb-NO", "ne-NP", "nl-BE", "nl-NL", "or-IN", "pa-IN", "pl-PL", "ps-AF", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "si-LK", "sk-SK", "sl-SI", "so-SO", "sq-AL", "sr-ME", "sr-RS", "sr-XK", "su-ID", "sv-SE", "sw-KE", "sw-TZ", "ta-IN", "ta-LK", "ta-MY", "ta-SG", "te-IN", "th-TH", "tr-TR", "uk-UA", "ur-IN", "ur-PK", "uz-UZ", "vi-VN", "wuu-CN", "yue-CN", "zh-CN", "zh-HK", "zh-SG", "zh-TW", "zu-ZA"];
|
|
1522
1538
|
/**
|
|
1523
1539
|
* Type for Azure locale codes
|
|
1524
1540
|
*/
|
|
@@ -1671,7 +1687,9 @@ declare const AzureLocale: {
|
|
|
1671
1687
|
readonly "sl-SI": "sl-SI";
|
|
1672
1688
|
readonly "so-SO": "so-SO";
|
|
1673
1689
|
readonly "sq-AL": "sq-AL";
|
|
1690
|
+
readonly "sr-ME": "sr-ME";
|
|
1674
1691
|
readonly "sr-RS": "sr-RS";
|
|
1692
|
+
readonly "sr-XK": "sr-XK";
|
|
1675
1693
|
readonly "su-ID": "su-ID";
|
|
1676
1694
|
readonly "sv-SE": "sv-SE";
|
|
1677
1695
|
readonly "sw-KE": "sw-KE";
|
|
@@ -1697,6 +1715,497 @@ declare const AzureLocale: {
|
|
|
1697
1715
|
readonly "zu-ZA": "zu-ZA";
|
|
1698
1716
|
};
|
|
1699
1717
|
|
|
1718
|
+
/**
|
|
1719
|
+
* Generated by scripts/generate-elevenlabs-languages.js - DO NOT EDIT MANUALLY
|
|
1720
|
+
*
|
|
1721
|
+
* ElevenLabs ScribeV2 supported languages (99 ISO 639-1/639-3 codes)
|
|
1722
|
+
* Run 'pnpm openapi:sync-elevenlabs-languages' to regenerate.
|
|
1723
|
+
*
|
|
1724
|
+
* @generated
|
|
1725
|
+
* @see https://elevenlabs.io/docs/capabilities/speech-to-text#supported-languages
|
|
1726
|
+
*/
|
|
1727
|
+
/**
|
|
1728
|
+
* ElevenLabs supported language metadata
|
|
1729
|
+
*/
|
|
1730
|
+
declare const ElevenLabsLanguages: readonly [{
|
|
1731
|
+
readonly code: "en";
|
|
1732
|
+
readonly name: "English";
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly code: "zh";
|
|
1735
|
+
readonly name: "Chinese";
|
|
1736
|
+
}, {
|
|
1737
|
+
readonly code: "de";
|
|
1738
|
+
readonly name: "German";
|
|
1739
|
+
}, {
|
|
1740
|
+
readonly code: "es";
|
|
1741
|
+
readonly name: "Spanish";
|
|
1742
|
+
}, {
|
|
1743
|
+
readonly code: "ru";
|
|
1744
|
+
readonly name: "Russian";
|
|
1745
|
+
}, {
|
|
1746
|
+
readonly code: "ko";
|
|
1747
|
+
readonly name: "Korean";
|
|
1748
|
+
}, {
|
|
1749
|
+
readonly code: "fr";
|
|
1750
|
+
readonly name: "French";
|
|
1751
|
+
}, {
|
|
1752
|
+
readonly code: "ja";
|
|
1753
|
+
readonly name: "Japanese";
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly code: "pt";
|
|
1756
|
+
readonly name: "Portuguese";
|
|
1757
|
+
}, {
|
|
1758
|
+
readonly code: "tr";
|
|
1759
|
+
readonly name: "Turkish";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly code: "pl";
|
|
1762
|
+
readonly name: "Polish";
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly code: "ca";
|
|
1765
|
+
readonly name: "Catalan";
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly code: "nl";
|
|
1768
|
+
readonly name: "Dutch";
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly code: "ar";
|
|
1771
|
+
readonly name: "Arabic";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly code: "sv";
|
|
1774
|
+
readonly name: "Swedish";
|
|
1775
|
+
}, {
|
|
1776
|
+
readonly code: "it";
|
|
1777
|
+
readonly name: "Italian";
|
|
1778
|
+
}, {
|
|
1779
|
+
readonly code: "id";
|
|
1780
|
+
readonly name: "Indonesian";
|
|
1781
|
+
}, {
|
|
1782
|
+
readonly code: "hi";
|
|
1783
|
+
readonly name: "Hindi";
|
|
1784
|
+
}, {
|
|
1785
|
+
readonly code: "fi";
|
|
1786
|
+
readonly name: "Finnish";
|
|
1787
|
+
}, {
|
|
1788
|
+
readonly code: "vi";
|
|
1789
|
+
readonly name: "Vietnamese";
|
|
1790
|
+
}, {
|
|
1791
|
+
readonly code: "he";
|
|
1792
|
+
readonly name: "Hebrew";
|
|
1793
|
+
}, {
|
|
1794
|
+
readonly code: "uk";
|
|
1795
|
+
readonly name: "Ukrainian";
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly code: "el";
|
|
1798
|
+
readonly name: "Greek";
|
|
1799
|
+
}, {
|
|
1800
|
+
readonly code: "ms";
|
|
1801
|
+
readonly name: "Malay";
|
|
1802
|
+
}, {
|
|
1803
|
+
readonly code: "cs";
|
|
1804
|
+
readonly name: "Czech";
|
|
1805
|
+
}, {
|
|
1806
|
+
readonly code: "ro";
|
|
1807
|
+
readonly name: "Romanian";
|
|
1808
|
+
}, {
|
|
1809
|
+
readonly code: "da";
|
|
1810
|
+
readonly name: "Danish";
|
|
1811
|
+
}, {
|
|
1812
|
+
readonly code: "hu";
|
|
1813
|
+
readonly name: "Hungarian";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly code: "ta";
|
|
1816
|
+
readonly name: "Tamil";
|
|
1817
|
+
}, {
|
|
1818
|
+
readonly code: "no";
|
|
1819
|
+
readonly name: "Norwegian";
|
|
1820
|
+
}, {
|
|
1821
|
+
readonly code: "th";
|
|
1822
|
+
readonly name: "Thai";
|
|
1823
|
+
}, {
|
|
1824
|
+
readonly code: "ur";
|
|
1825
|
+
readonly name: "Urdu";
|
|
1826
|
+
}, {
|
|
1827
|
+
readonly code: "hr";
|
|
1828
|
+
readonly name: "Croatian";
|
|
1829
|
+
}, {
|
|
1830
|
+
readonly code: "bg";
|
|
1831
|
+
readonly name: "Bulgarian";
|
|
1832
|
+
}, {
|
|
1833
|
+
readonly code: "lt";
|
|
1834
|
+
readonly name: "Lithuanian";
|
|
1835
|
+
}, {
|
|
1836
|
+
readonly code: "la";
|
|
1837
|
+
readonly name: "Latin";
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly code: "mi";
|
|
1840
|
+
readonly name: "Maori";
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly code: "ml";
|
|
1843
|
+
readonly name: "Malayalam";
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly code: "cy";
|
|
1846
|
+
readonly name: "Welsh";
|
|
1847
|
+
}, {
|
|
1848
|
+
readonly code: "sk";
|
|
1849
|
+
readonly name: "Slovak";
|
|
1850
|
+
}, {
|
|
1851
|
+
readonly code: "te";
|
|
1852
|
+
readonly name: "Telugu";
|
|
1853
|
+
}, {
|
|
1854
|
+
readonly code: "fa";
|
|
1855
|
+
readonly name: "Persian";
|
|
1856
|
+
}, {
|
|
1857
|
+
readonly code: "lv";
|
|
1858
|
+
readonly name: "Latvian";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly code: "bn";
|
|
1861
|
+
readonly name: "Bengali";
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly code: "sr";
|
|
1864
|
+
readonly name: "Serbian";
|
|
1865
|
+
}, {
|
|
1866
|
+
readonly code: "az";
|
|
1867
|
+
readonly name: "Azerbaijani";
|
|
1868
|
+
}, {
|
|
1869
|
+
readonly code: "sl";
|
|
1870
|
+
readonly name: "Slovenian";
|
|
1871
|
+
}, {
|
|
1872
|
+
readonly code: "kn";
|
|
1873
|
+
readonly name: "Kannada";
|
|
1874
|
+
}, {
|
|
1875
|
+
readonly code: "et";
|
|
1876
|
+
readonly name: "Estonian";
|
|
1877
|
+
}, {
|
|
1878
|
+
readonly code: "mk";
|
|
1879
|
+
readonly name: "Macedonian";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly code: "br";
|
|
1882
|
+
readonly name: "Breton";
|
|
1883
|
+
}, {
|
|
1884
|
+
readonly code: "eu";
|
|
1885
|
+
readonly name: "Basque";
|
|
1886
|
+
}, {
|
|
1887
|
+
readonly code: "is";
|
|
1888
|
+
readonly name: "Icelandic";
|
|
1889
|
+
}, {
|
|
1890
|
+
readonly code: "hy";
|
|
1891
|
+
readonly name: "Armenian";
|
|
1892
|
+
}, {
|
|
1893
|
+
readonly code: "ne";
|
|
1894
|
+
readonly name: "Nepali";
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly code: "mn";
|
|
1897
|
+
readonly name: "Mongolian";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly code: "bs";
|
|
1900
|
+
readonly name: "Bosnian";
|
|
1901
|
+
}, {
|
|
1902
|
+
readonly code: "kk";
|
|
1903
|
+
readonly name: "Kazakh";
|
|
1904
|
+
}, {
|
|
1905
|
+
readonly code: "sq";
|
|
1906
|
+
readonly name: "Albanian";
|
|
1907
|
+
}, {
|
|
1908
|
+
readonly code: "sw";
|
|
1909
|
+
readonly name: "Swahili";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly code: "gl";
|
|
1912
|
+
readonly name: "Galician";
|
|
1913
|
+
}, {
|
|
1914
|
+
readonly code: "mr";
|
|
1915
|
+
readonly name: "Marathi";
|
|
1916
|
+
}, {
|
|
1917
|
+
readonly code: "pa";
|
|
1918
|
+
readonly name: "Punjabi";
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly code: "si";
|
|
1921
|
+
readonly name: "Sinhala";
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly code: "km";
|
|
1924
|
+
readonly name: "Khmer";
|
|
1925
|
+
}, {
|
|
1926
|
+
readonly code: "sn";
|
|
1927
|
+
readonly name: "Shona";
|
|
1928
|
+
}, {
|
|
1929
|
+
readonly code: "yo";
|
|
1930
|
+
readonly name: "Yoruba";
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly code: "so";
|
|
1933
|
+
readonly name: "Somali";
|
|
1934
|
+
}, {
|
|
1935
|
+
readonly code: "af";
|
|
1936
|
+
readonly name: "Afrikaans";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly code: "oc";
|
|
1939
|
+
readonly name: "Occitan";
|
|
1940
|
+
}, {
|
|
1941
|
+
readonly code: "ka";
|
|
1942
|
+
readonly name: "Georgian";
|
|
1943
|
+
}, {
|
|
1944
|
+
readonly code: "be";
|
|
1945
|
+
readonly name: "Belarusian";
|
|
1946
|
+
}, {
|
|
1947
|
+
readonly code: "tg";
|
|
1948
|
+
readonly name: "Tajik";
|
|
1949
|
+
}, {
|
|
1950
|
+
readonly code: "sd";
|
|
1951
|
+
readonly name: "Sindhi";
|
|
1952
|
+
}, {
|
|
1953
|
+
readonly code: "gu";
|
|
1954
|
+
readonly name: "Gujarati";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly code: "am";
|
|
1957
|
+
readonly name: "Amharic";
|
|
1958
|
+
}, {
|
|
1959
|
+
readonly code: "yi";
|
|
1960
|
+
readonly name: "Yiddish";
|
|
1961
|
+
}, {
|
|
1962
|
+
readonly code: "lo";
|
|
1963
|
+
readonly name: "Lao";
|
|
1964
|
+
}, {
|
|
1965
|
+
readonly code: "uz";
|
|
1966
|
+
readonly name: "Uzbek";
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly code: "fo";
|
|
1969
|
+
readonly name: "Faroese";
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly code: "ht";
|
|
1972
|
+
readonly name: "Haitian Creole";
|
|
1973
|
+
}, {
|
|
1974
|
+
readonly code: "ps";
|
|
1975
|
+
readonly name: "Pashto";
|
|
1976
|
+
}, {
|
|
1977
|
+
readonly code: "tk";
|
|
1978
|
+
readonly name: "Turkmen";
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly code: "nn";
|
|
1981
|
+
readonly name: "Norwegian Nynorsk";
|
|
1982
|
+
}, {
|
|
1983
|
+
readonly code: "mt";
|
|
1984
|
+
readonly name: "Maltese";
|
|
1985
|
+
}, {
|
|
1986
|
+
readonly code: "sa";
|
|
1987
|
+
readonly name: "Sanskrit";
|
|
1988
|
+
}, {
|
|
1989
|
+
readonly code: "lb";
|
|
1990
|
+
readonly name: "Luxembourgish";
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly code: "my";
|
|
1993
|
+
readonly name: "Burmese";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly code: "bo";
|
|
1996
|
+
readonly name: "Tibetan";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly code: "tl";
|
|
1999
|
+
readonly name: "Tagalog";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly code: "mg";
|
|
2002
|
+
readonly name: "Malagasy";
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly code: "as";
|
|
2005
|
+
readonly name: "Assamese";
|
|
2006
|
+
}, {
|
|
2007
|
+
readonly code: "tt";
|
|
2008
|
+
readonly name: "Tatar";
|
|
2009
|
+
}, {
|
|
2010
|
+
readonly code: "haw";
|
|
2011
|
+
readonly name: "Hawaiian";
|
|
2012
|
+
}, {
|
|
2013
|
+
readonly code: "ln";
|
|
2014
|
+
readonly name: "Lingala";
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly code: "ha";
|
|
2017
|
+
readonly name: "Hausa";
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly code: "ba";
|
|
2020
|
+
readonly name: "Bashkir";
|
|
2021
|
+
}, {
|
|
2022
|
+
readonly code: "jw";
|
|
2023
|
+
readonly name: "Javanese";
|
|
2024
|
+
}, {
|
|
2025
|
+
readonly code: "su";
|
|
2026
|
+
readonly name: "Sundanese";
|
|
2027
|
+
}];
|
|
2028
|
+
/**
|
|
2029
|
+
* ElevenLabs supported language codes
|
|
2030
|
+
*/
|
|
2031
|
+
declare const ElevenLabsLanguageCodes: readonly ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"];
|
|
2032
|
+
/**
|
|
2033
|
+
* Type for ElevenLabs language codes
|
|
2034
|
+
*/
|
|
2035
|
+
type ElevenLabsLanguageCode = (typeof ElevenLabsLanguageCodes)[number];
|
|
2036
|
+
/**
|
|
2037
|
+
* Language code to name mapping
|
|
2038
|
+
*/
|
|
2039
|
+
declare const ElevenLabsLanguageLabels: Record<ElevenLabsLanguageCode, string>;
|
|
2040
|
+
/**
|
|
2041
|
+
* ElevenLabs language constant object for autocomplete
|
|
2042
|
+
*
|
|
2043
|
+
* @example
|
|
2044
|
+
* ```typescript
|
|
2045
|
+
* import { ElevenLabsLanguage } from 'voice-router-dev/constants'
|
|
2046
|
+
*
|
|
2047
|
+
* { language: ElevenLabsLanguage.en }
|
|
2048
|
+
* { language: ElevenLabsLanguage.es }
|
|
2049
|
+
* ```
|
|
2050
|
+
*/
|
|
2051
|
+
declare const ElevenLabsLanguage: {
|
|
2052
|
+
readonly en: "en";
|
|
2053
|
+
readonly zh: "zh";
|
|
2054
|
+
readonly de: "de";
|
|
2055
|
+
readonly es: "es";
|
|
2056
|
+
readonly ru: "ru";
|
|
2057
|
+
readonly ko: "ko";
|
|
2058
|
+
readonly fr: "fr";
|
|
2059
|
+
readonly ja: "ja";
|
|
2060
|
+
readonly pt: "pt";
|
|
2061
|
+
readonly tr: "tr";
|
|
2062
|
+
readonly pl: "pl";
|
|
2063
|
+
readonly ca: "ca";
|
|
2064
|
+
readonly nl: "nl";
|
|
2065
|
+
readonly ar: "ar";
|
|
2066
|
+
readonly sv: "sv";
|
|
2067
|
+
readonly it: "it";
|
|
2068
|
+
readonly id: "id";
|
|
2069
|
+
readonly hi: "hi";
|
|
2070
|
+
readonly fi: "fi";
|
|
2071
|
+
readonly vi: "vi";
|
|
2072
|
+
readonly he: "he";
|
|
2073
|
+
readonly uk: "uk";
|
|
2074
|
+
readonly el: "el";
|
|
2075
|
+
readonly ms: "ms";
|
|
2076
|
+
readonly cs: "cs";
|
|
2077
|
+
readonly ro: "ro";
|
|
2078
|
+
readonly da: "da";
|
|
2079
|
+
readonly hu: "hu";
|
|
2080
|
+
readonly ta: "ta";
|
|
2081
|
+
readonly no: "no";
|
|
2082
|
+
readonly th: "th";
|
|
2083
|
+
readonly ur: "ur";
|
|
2084
|
+
readonly hr: "hr";
|
|
2085
|
+
readonly bg: "bg";
|
|
2086
|
+
readonly lt: "lt";
|
|
2087
|
+
readonly la: "la";
|
|
2088
|
+
readonly mi: "mi";
|
|
2089
|
+
readonly ml: "ml";
|
|
2090
|
+
readonly cy: "cy";
|
|
2091
|
+
readonly sk: "sk";
|
|
2092
|
+
readonly te: "te";
|
|
2093
|
+
readonly fa: "fa";
|
|
2094
|
+
readonly lv: "lv";
|
|
2095
|
+
readonly bn: "bn";
|
|
2096
|
+
readonly sr: "sr";
|
|
2097
|
+
readonly az: "az";
|
|
2098
|
+
readonly sl: "sl";
|
|
2099
|
+
readonly kn: "kn";
|
|
2100
|
+
readonly et: "et";
|
|
2101
|
+
readonly mk: "mk";
|
|
2102
|
+
readonly br: "br";
|
|
2103
|
+
readonly eu: "eu";
|
|
2104
|
+
readonly is: "is";
|
|
2105
|
+
readonly hy: "hy";
|
|
2106
|
+
readonly ne: "ne";
|
|
2107
|
+
readonly mn: "mn";
|
|
2108
|
+
readonly bs: "bs";
|
|
2109
|
+
readonly kk: "kk";
|
|
2110
|
+
readonly sq: "sq";
|
|
2111
|
+
readonly sw: "sw";
|
|
2112
|
+
readonly gl: "gl";
|
|
2113
|
+
readonly mr: "mr";
|
|
2114
|
+
readonly pa: "pa";
|
|
2115
|
+
readonly si: "si";
|
|
2116
|
+
readonly km: "km";
|
|
2117
|
+
readonly sn: "sn";
|
|
2118
|
+
readonly yo: "yo";
|
|
2119
|
+
readonly so: "so";
|
|
2120
|
+
readonly af: "af";
|
|
2121
|
+
readonly oc: "oc";
|
|
2122
|
+
readonly ka: "ka";
|
|
2123
|
+
readonly be: "be";
|
|
2124
|
+
readonly tg: "tg";
|
|
2125
|
+
readonly sd: "sd";
|
|
2126
|
+
readonly gu: "gu";
|
|
2127
|
+
readonly am: "am";
|
|
2128
|
+
readonly yi: "yi";
|
|
2129
|
+
readonly lo: "lo";
|
|
2130
|
+
readonly uz: "uz";
|
|
2131
|
+
readonly fo: "fo";
|
|
2132
|
+
readonly ht: "ht";
|
|
2133
|
+
readonly ps: "ps";
|
|
2134
|
+
readonly tk: "tk";
|
|
2135
|
+
readonly nn: "nn";
|
|
2136
|
+
readonly mt: "mt";
|
|
2137
|
+
readonly sa: "sa";
|
|
2138
|
+
readonly lb: "lb";
|
|
2139
|
+
readonly my: "my";
|
|
2140
|
+
readonly bo: "bo";
|
|
2141
|
+
readonly tl: "tl";
|
|
2142
|
+
readonly mg: "mg";
|
|
2143
|
+
readonly as: "as";
|
|
2144
|
+
readonly tt: "tt";
|
|
2145
|
+
readonly haw: "haw";
|
|
2146
|
+
readonly ln: "ln";
|
|
2147
|
+
readonly ha: "ha";
|
|
2148
|
+
readonly ba: "ba";
|
|
2149
|
+
readonly jw: "jw";
|
|
2150
|
+
readonly su: "su";
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* Generated from ElevenLabs OpenAPI spec - DO NOT EDIT MANUALLY
|
|
2155
|
+
*
|
|
2156
|
+
* This file is auto-generated by scripts/generate-elevenlabs-models.js
|
|
2157
|
+
* Run 'pnpm openapi:sync-elevenlabs-models' to regenerate.
|
|
2158
|
+
*
|
|
2159
|
+
* @generated
|
|
2160
|
+
*/
|
|
2161
|
+
/**
|
|
2162
|
+
* ElevenLabs batch transcription model IDs (from OpenAPI spec enum)
|
|
2163
|
+
*/
|
|
2164
|
+
declare const ElevenLabsModelCodes: readonly ["scribe_v1", "scribe_v2"];
|
|
2165
|
+
/**
|
|
2166
|
+
* Type for ElevenLabs batch model codes
|
|
2167
|
+
*/
|
|
2168
|
+
type ElevenLabsModelCode = (typeof ElevenLabsModelCodes)[number];
|
|
2169
|
+
/**
|
|
2170
|
+
* ElevenLabs realtime streaming model IDs
|
|
2171
|
+
*/
|
|
2172
|
+
declare const ElevenLabsRealtimeModelCodes: readonly ["scribe_v2_realtime"];
|
|
2173
|
+
/**
|
|
2174
|
+
* Type for ElevenLabs realtime model codes
|
|
2175
|
+
*/
|
|
2176
|
+
type ElevenLabsRealtimeModelCode = (typeof ElevenLabsRealtimeModelCodes)[number];
|
|
2177
|
+
/**
|
|
2178
|
+
* Model ID to display name mapping
|
|
2179
|
+
*/
|
|
2180
|
+
declare const ElevenLabsModelLabels: Record<ElevenLabsModelCode | ElevenLabsRealtimeModelCode, string>;
|
|
2181
|
+
/**
|
|
2182
|
+
* ElevenLabs batch model constant object for autocomplete
|
|
2183
|
+
*
|
|
2184
|
+
* @example
|
|
2185
|
+
* ```typescript
|
|
2186
|
+
* import { ElevenLabsModel } from 'voice-router-dev/constants'
|
|
2187
|
+
*
|
|
2188
|
+
* { model: ElevenLabsModel.scribe_v2 }
|
|
2189
|
+
* ```
|
|
2190
|
+
*/
|
|
2191
|
+
declare const ElevenLabsModel: {
|
|
2192
|
+
readonly scribe_v1: "scribe_v1";
|
|
2193
|
+
readonly scribe_v2: "scribe_v2";
|
|
2194
|
+
};
|
|
2195
|
+
/**
|
|
2196
|
+
* ElevenLabs realtime model constant object for autocomplete
|
|
2197
|
+
*
|
|
2198
|
+
* @example
|
|
2199
|
+
* ```typescript
|
|
2200
|
+
* import { ElevenLabsRealtimeModel } from 'voice-router-dev/constants'
|
|
2201
|
+
*
|
|
2202
|
+
* { model: ElevenLabsRealtimeModel.scribe_v2_realtime }
|
|
2203
|
+
* ```
|
|
2204
|
+
*/
|
|
2205
|
+
declare const ElevenLabsRealtimeModel: {
|
|
2206
|
+
readonly scribe_v2_realtime: "scribe_v2_realtime";
|
|
2207
|
+
};
|
|
2208
|
+
|
|
1700
2209
|
/**
|
|
1701
2210
|
* Generated from OpenAI TypeScript types - DO NOT EDIT MANUALLY
|
|
1702
2211
|
*
|
|
@@ -1885,6 +2394,67 @@ declare const SpeechmaticsOperatingPoint: {
|
|
|
1885
2394
|
};
|
|
1886
2395
|
type SpeechmaticsOperatingPointType = (typeof SpeechmaticsOperatingPoint)[keyof typeof SpeechmaticsOperatingPoint];
|
|
1887
2396
|
|
|
2397
|
+
/**
|
|
2398
|
+
* ElevenLabs regional endpoints
|
|
2399
|
+
*
|
|
2400
|
+
* ElevenLabs offers regional endpoints for data residency.
|
|
2401
|
+
*
|
|
2402
|
+
* | Region | Endpoint |
|
|
2403
|
+
* |--------|----------|
|
|
2404
|
+
* | Global (default) | api.elevenlabs.io |
|
|
2405
|
+
* | US | api.us.elevenlabs.io |
|
|
2406
|
+
* | EU | api.eu.residency.elevenlabs.io |
|
|
2407
|
+
* | India | api.in.residency.elevenlabs.io |
|
|
2408
|
+
*
|
|
2409
|
+
* @example
|
|
2410
|
+
* ```typescript
|
|
2411
|
+
* import { ElevenLabsRegion } from 'voice-router-dev/constants'
|
|
2412
|
+
*
|
|
2413
|
+
* const adapter = createElevenLabsAdapter({
|
|
2414
|
+
* apiKey: process.env.ELEVENLABS_API_KEY,
|
|
2415
|
+
* region: ElevenLabsRegion.eu
|
|
2416
|
+
* })
|
|
2417
|
+
* ```
|
|
2418
|
+
*/
|
|
2419
|
+
declare const ElevenLabsRegion: {
|
|
2420
|
+
/** Global endpoint (default) */
|
|
2421
|
+
readonly global: "global";
|
|
2422
|
+
/** United States */
|
|
2423
|
+
readonly us: "us";
|
|
2424
|
+
/** European Union */
|
|
2425
|
+
readonly eu: "eu";
|
|
2426
|
+
/** India */
|
|
2427
|
+
readonly in: "in";
|
|
2428
|
+
};
|
|
2429
|
+
/** ElevenLabs region type derived from const object */
|
|
2430
|
+
type ElevenLabsRegionType = (typeof ElevenLabsRegion)[keyof typeof ElevenLabsRegion];
|
|
2431
|
+
/**
|
|
2432
|
+
* ElevenLabs audio formats for realtime streaming
|
|
2433
|
+
*
|
|
2434
|
+
* @example
|
|
2435
|
+
* ```typescript
|
|
2436
|
+
* import { ElevenLabsAudioFormat } from 'voice-router-dev/constants'
|
|
2437
|
+
*
|
|
2438
|
+
* { audioFormat: ElevenLabsAudioFormat.pcm_16000 }
|
|
2439
|
+
* ```
|
|
2440
|
+
*/
|
|
2441
|
+
declare const ElevenLabsAudioFormat: {
|
|
2442
|
+
readonly pcm_8000: "pcm_8000";
|
|
2443
|
+
readonly pcm_16000: "pcm_16000";
|
|
2444
|
+
readonly pcm_22050: "pcm_22050";
|
|
2445
|
+
readonly pcm_24000: "pcm_24000";
|
|
2446
|
+
readonly pcm_44100: "pcm_44100";
|
|
2447
|
+
readonly pcm_48000: "pcm_48000";
|
|
2448
|
+
readonly ulaw_8000: "ulaw_8000";
|
|
2449
|
+
};
|
|
2450
|
+
/** ElevenLabs audio format type derived from const object */
|
|
2451
|
+
type ElevenLabsAudioFormatType = (typeof ElevenLabsAudioFormat)[keyof typeof ElevenLabsAudioFormat];
|
|
2452
|
+
/** ElevenLabs model type (alias for ElevenLabsModelCode) */
|
|
2453
|
+
type ElevenLabsModelType = (typeof ElevenLabsModel)[keyof typeof ElevenLabsModel];
|
|
2454
|
+
/** ElevenLabs realtime model type */
|
|
2455
|
+
type ElevenLabsRealtimeModelType = (typeof ElevenLabsRealtimeModel)[keyof typeof ElevenLabsRealtimeModel];
|
|
2456
|
+
/** ElevenLabs language type (alias for ElevenLabsLanguageCode) */
|
|
2457
|
+
type ElevenLabsLanguageType = (typeof ElevenLabsLanguage)[keyof typeof ElevenLabsLanguage];
|
|
1888
2458
|
/**
|
|
1889
2459
|
* Gladia audio encoding formats for streaming
|
|
1890
2460
|
*
|
|
@@ -2811,7 +3381,7 @@ declare const OpenAIModel: {
|
|
|
2811
3381
|
readonly "whisper-1": "whisper-1";
|
|
2812
3382
|
};
|
|
2813
3383
|
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"];
|
|
2814
|
-
declare const OpenAIModelLabels: Record<"gpt-4o-
|
|
3384
|
+
declare const OpenAIModelLabels: Record<"whisper-1" | "gpt-4o-transcribe" | "gpt-4o-mini-transcribe" | "gpt-4o-mini-transcribe-2025-12-15" | "gpt-4o-transcribe-diarize" | "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>;
|
|
2815
3385
|
/**
|
|
2816
3386
|
* OpenAI Realtime API models (streaming)
|
|
2817
3387
|
* @see scripts/generate-openai-models.js
|
|
@@ -2991,4 +3561,4 @@ declare const OpenAILanguage: {
|
|
|
2991
3561
|
/** OpenAI language type */
|
|
2992
3562
|
type OpenAILanguageType = (typeof OpenAILanguageCodes)[number];
|
|
2993
3563
|
|
|
2994
|
-
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, 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 };
|
|
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 };
|