voice-router-dev 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/{field-configs-D1RCJSmr.d.mts → field-configs-2c1-pid1.d.mts} +1070 -1070
- package/dist/{field-configs-D1RCJSmr.d.ts → field-configs-2c1-pid1.d.ts} +1070 -1070
- package/dist/field-configs.d.mts +1 -1
- package/dist/field-configs.d.ts +1 -1
- package/dist/index.d.mts +46 -45
- package/dist/index.d.ts +46 -45
- package/dist/index.js +60 -32
- package/dist/index.mjs +60 -32
- 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-DK61nDc5.d.mts → speechToTextChunkResponseModel-BYhlHNqP.d.mts} +1 -1
- package/dist/{speechToTextChunkResponseModel-BZSxrijj.d.ts → speechToTextChunkResponseModel-o8_dfC4c.d.ts} +1 -1
- package/dist/webhooks.d.mts +2 -2
- package/dist/webhooks.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8041,6 +8041,7 @@ var AzureSTTAdapter = class extends BaseAdapter {
|
|
|
8041
8041
|
id: String(speakerId),
|
|
8042
8042
|
label: `Speaker ${speakerId}`
|
|
8043
8043
|
})) : void 0;
|
|
8044
|
+
const utterances = words.length > 0 ? buildUtterancesFromWords(words) : void 0;
|
|
8044
8045
|
const transcriptionId = transcription.self?.split("/").pop() || "";
|
|
8045
8046
|
return {
|
|
8046
8047
|
success: true,
|
|
@@ -8054,6 +8055,7 @@ var AzureSTTAdapter = class extends BaseAdapter {
|
|
|
8054
8055
|
duration: transcriptionData.duration ? transcriptionData.duration / 1e7 : void 0,
|
|
8055
8056
|
speakers,
|
|
8056
8057
|
words: words.length > 0 ? words : void 0,
|
|
8058
|
+
utterances: utterances && utterances.length > 0 ? utterances : void 0,
|
|
8057
8059
|
createdAt: transcription.createdDateTime,
|
|
8058
8060
|
completedAt: transcription.lastActionDateTime
|
|
8059
8061
|
},
|
|
@@ -8874,13 +8876,16 @@ var SpeechmaticsAdapter = class extends BaseAdapter {
|
|
|
8874
8876
|
jobConfig.fetch_data = {
|
|
8875
8877
|
url: audio.url
|
|
8876
8878
|
};
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
+
const formData = new FormData();
|
|
8880
|
+
formData.append("config", JSON.stringify(jobConfig));
|
|
8881
|
+
requestBody = formData;
|
|
8882
|
+
headers = { "Content-Type": "multipart/form-data" };
|
|
8879
8883
|
} else if (audio.type === "file") {
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
+
const formData = new FormData();
|
|
8885
|
+
formData.append("config", JSON.stringify(jobConfig));
|
|
8886
|
+
const audioBlob = audio.file instanceof Blob ? audio.file : new Blob([audio.file], { type: audio.mimeType || "audio/wav" });
|
|
8887
|
+
formData.append("data_file", audioBlob, audio.filename || "audio.wav");
|
|
8888
|
+
requestBody = formData;
|
|
8884
8889
|
headers = { "Content-Type": "multipart/form-data" };
|
|
8885
8890
|
} else {
|
|
8886
8891
|
return {
|
|
@@ -9203,26 +9208,13 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9203
9208
|
} else if (audio.type === "file") {
|
|
9204
9209
|
const formData = new FormData();
|
|
9205
9210
|
const audioBlob = audio.file instanceof Blob ? audio.file : new Blob([audio.file], { type: audio.mimeType || "audio/wav" });
|
|
9206
|
-
formData.append("
|
|
9207
|
-
|
|
9208
|
-
if (options?.language) {
|
|
9209
|
-
formData.append("language_hints", JSON.stringify([options.language]));
|
|
9210
|
-
}
|
|
9211
|
-
if (options?.diarization) {
|
|
9212
|
-
formData.append("enable_speaker_diarization", "true");
|
|
9213
|
-
}
|
|
9214
|
-
if (options?.languageDetection) {
|
|
9215
|
-
formData.append("enable_language_identification", "true");
|
|
9216
|
-
}
|
|
9217
|
-
if (options?.customVocabulary) {
|
|
9218
|
-
formData.append("context", JSON.stringify({ terms: options.customVocabulary }));
|
|
9219
|
-
}
|
|
9220
|
-
const response2 = await this.client.post("/speech/transcribe", formData, {
|
|
9211
|
+
formData.append("file", audioBlob, audio.filename || "audio.wav");
|
|
9212
|
+
const uploadResponse = await this.client.post("/files", formData, {
|
|
9221
9213
|
headers: {
|
|
9222
9214
|
"Content-Type": "multipart/form-data"
|
|
9223
9215
|
}
|
|
9224
9216
|
});
|
|
9225
|
-
|
|
9217
|
+
requestBody.file_id = uploadResponse.data.id;
|
|
9226
9218
|
} else {
|
|
9227
9219
|
return {
|
|
9228
9220
|
success: false,
|
|
@@ -9247,8 +9239,9 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9247
9239
|
terms: options.customVocabulary
|
|
9248
9240
|
};
|
|
9249
9241
|
}
|
|
9250
|
-
const response = await this.client.post("/
|
|
9251
|
-
|
|
9242
|
+
const response = await this.client.post("/transcriptions", requestBody);
|
|
9243
|
+
const transcriptionId = response.data.id;
|
|
9244
|
+
return await this.pollForCompletion(transcriptionId);
|
|
9252
9245
|
} catch (error) {
|
|
9253
9246
|
return this.createErrorResponse(error);
|
|
9254
9247
|
}
|
|
@@ -9256,8 +9249,9 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9256
9249
|
/**
|
|
9257
9250
|
* Get transcription result by ID
|
|
9258
9251
|
*
|
|
9259
|
-
*
|
|
9260
|
-
*
|
|
9252
|
+
* Checks job status via GET /v1/transcriptions/{id}, then fetches
|
|
9253
|
+
* the full transcript via GET /v1/transcriptions/{id}/transcript
|
|
9254
|
+
* when completed.
|
|
9261
9255
|
*
|
|
9262
9256
|
* @param transcriptId - Transcript ID
|
|
9263
9257
|
* @returns Transcription response
|
|
@@ -9265,8 +9259,39 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9265
9259
|
async getTranscript(transcriptId) {
|
|
9266
9260
|
this.validateConfig();
|
|
9267
9261
|
try {
|
|
9268
|
-
const
|
|
9269
|
-
|
|
9262
|
+
const statusResponse = await this.client.get(`/transcriptions/${transcriptId}`);
|
|
9263
|
+
const job = statusResponse.data;
|
|
9264
|
+
if (job.status === "error") {
|
|
9265
|
+
return {
|
|
9266
|
+
success: false,
|
|
9267
|
+
provider: this.name,
|
|
9268
|
+
error: {
|
|
9269
|
+
code: "TRANSCRIPTION_ERROR",
|
|
9270
|
+
message: job.error_message || "Transcription failed"
|
|
9271
|
+
}
|
|
9272
|
+
};
|
|
9273
|
+
}
|
|
9274
|
+
if (job.status !== "completed") {
|
|
9275
|
+
return {
|
|
9276
|
+
success: true,
|
|
9277
|
+
provider: this.name,
|
|
9278
|
+
data: {
|
|
9279
|
+
id: job.id,
|
|
9280
|
+
text: "",
|
|
9281
|
+
status: job.status
|
|
9282
|
+
},
|
|
9283
|
+
raw: job
|
|
9284
|
+
};
|
|
9285
|
+
}
|
|
9286
|
+
const transcriptResponse = await this.client.get(
|
|
9287
|
+
`/transcriptions/${transcriptId}/transcript`
|
|
9288
|
+
);
|
|
9289
|
+
return this.normalizeResponse({
|
|
9290
|
+
...transcriptResponse.data,
|
|
9291
|
+
// Carry over job metadata
|
|
9292
|
+
id: job.id,
|
|
9293
|
+
audio_duration_ms: job.audio_duration_ms
|
|
9294
|
+
});
|
|
9270
9295
|
} catch (error) {
|
|
9271
9296
|
return this.createErrorResponse(error);
|
|
9272
9297
|
}
|
|
@@ -9558,8 +9583,10 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9558
9583
|
* Normalize Soniox response to unified format
|
|
9559
9584
|
*/
|
|
9560
9585
|
normalizeResponse(response) {
|
|
9561
|
-
const text = response.text || (response.tokens ? response.tokens.filter((t) => t.is_final).map((t) => t.text).join("") : "");
|
|
9562
|
-
const words = response.tokens ? response.tokens.filter(
|
|
9586
|
+
const text = response.text || (response.tokens ? response.tokens.filter((t) => t.is_final !== false).map((t) => t.text).join("") : "");
|
|
9587
|
+
const words = response.tokens ? response.tokens.filter(
|
|
9588
|
+
(t) => t.is_final !== false && t.start_ms !== void 0 && t.end_ms !== void 0
|
|
9589
|
+
).map((token) => ({
|
|
9563
9590
|
word: token.text,
|
|
9564
9591
|
start: token.start_ms / 1e3,
|
|
9565
9592
|
end: token.end_ms / 1e3,
|
|
@@ -9576,7 +9603,8 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9576
9603
|
id,
|
|
9577
9604
|
label: `Speaker ${id}`
|
|
9578
9605
|
})) : void 0;
|
|
9579
|
-
const
|
|
9606
|
+
const tokens = response.tokens ? response.tokens.filter((t) => t.is_final !== false) : [];
|
|
9607
|
+
const utterances = tokens.length > 0 ? this.buildUtterancesFromTokens(tokens) : [];
|
|
9580
9608
|
const language = response.tokens?.find((t) => t.language)?.language;
|
|
9581
9609
|
return {
|
|
9582
9610
|
success: true,
|
|
@@ -9586,7 +9614,7 @@ var SonioxAdapter = class extends BaseAdapter {
|
|
|
9586
9614
|
text,
|
|
9587
9615
|
status: TranscriptionStatus.completed,
|
|
9588
9616
|
language,
|
|
9589
|
-
duration: response.total_audio_proc_ms ? response.total_audio_proc_ms / 1e3 : void 0,
|
|
9617
|
+
duration: response.audio_duration_ms ? response.audio_duration_ms / 1e3 : response.total_audio_proc_ms ? response.total_audio_proc_ms / 1e3 : void 0,
|
|
9590
9618
|
speakers,
|
|
9591
9619
|
words: words.length > 0 ? words : void 0,
|
|
9592
9620
|
utterances: utterances.length > 0 ? utterances : void 0
|
|
@@ -519,11 +519,11 @@ type LanguageCode = keyof typeof LanguageLabels;
|
|
|
519
519
|
/**
|
|
520
520
|
* Gladia supported language codes (from OpenAPI spec)
|
|
521
521
|
*/
|
|
522
|
-
declare const GladiaLanguageCodes: ("
|
|
522
|
+
declare const GladiaLanguageCodes: ("eu" | "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" | "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")[];
|
|
523
523
|
/**
|
|
524
524
|
* AssemblyAI supported language codes (from OpenAPI spec)
|
|
525
525
|
*/
|
|
526
|
-
declare const AssemblyAILanguageCodes: ("
|
|
526
|
+
declare const AssemblyAILanguageCodes: ("eu" | "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" | "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" | "en_au" | "en_uk" | "en_us")[];
|
|
527
527
|
/**
|
|
528
528
|
* Deepgram supported language codes
|
|
529
529
|
* Note: Deepgram accepts BCP-47 tags, these are the most common
|
|
@@ -551,8 +551,8 @@ declare const DeepgramLanguageCodes: readonly ["en", "en-US", "en-GB", "en-AU",
|
|
|
551
551
|
* ```
|
|
552
552
|
*/
|
|
553
553
|
declare const AllLanguageCodes: {
|
|
554
|
-
readonly gladia: ("
|
|
555
|
-
readonly assemblyai: ("
|
|
554
|
+
readonly gladia: ("eu" | "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" | "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")[];
|
|
555
|
+
readonly assemblyai: ("eu" | "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" | "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" | "en_au" | "en_uk" | "en_us")[];
|
|
556
556
|
readonly deepgram: readonly ["en", "en-US", "en-GB", "en-AU", "en-IN", "es", "es-419", "fr", "fr-CA", "de", "it", "pt", "pt-BR", "nl", "ru", "uk", "pl", "cs", "sk", "hu", "ro", "bg", "hr", "sl", "el", "tr", "fi", "sv", "da", "no", "et", "lv", "lt", "zh", "zh-CN", "zh-TW", "ja", "ko", "th", "vi", "id", "ms", "tl", "hi", "ta", "te", "bn", "ar"];
|
|
557
557
|
readonly "openai-whisper": readonly ["en", "es", "fr", "de", "it", "pt", "nl", "ru", "zh", "ja", "ko", "ar", "hi", "pl", "uk", "cs", "ro", "hu", "el", "tr", "fi", "sv", "da", "no", "th", "vi", "id", "ms", "he", "fa"];
|
|
558
558
|
readonly "azure-stt": 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"];
|
|
@@ -519,11 +519,11 @@ type LanguageCode = keyof typeof LanguageLabels;
|
|
|
519
519
|
/**
|
|
520
520
|
* Gladia supported language codes (from OpenAPI spec)
|
|
521
521
|
*/
|
|
522
|
-
declare const GladiaLanguageCodes: ("
|
|
522
|
+
declare const GladiaLanguageCodes: ("eu" | "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" | "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")[];
|
|
523
523
|
/**
|
|
524
524
|
* AssemblyAI supported language codes (from OpenAPI spec)
|
|
525
525
|
*/
|
|
526
|
-
declare const AssemblyAILanguageCodes: ("
|
|
526
|
+
declare const AssemblyAILanguageCodes: ("eu" | "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" | "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" | "en_au" | "en_uk" | "en_us")[];
|
|
527
527
|
/**
|
|
528
528
|
* Deepgram supported language codes
|
|
529
529
|
* Note: Deepgram accepts BCP-47 tags, these are the most common
|
|
@@ -551,8 +551,8 @@ declare const DeepgramLanguageCodes: readonly ["en", "en-US", "en-GB", "en-AU",
|
|
|
551
551
|
* ```
|
|
552
552
|
*/
|
|
553
553
|
declare const AllLanguageCodes: {
|
|
554
|
-
readonly gladia: ("
|
|
555
|
-
readonly assemblyai: ("
|
|
554
|
+
readonly gladia: ("eu" | "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" | "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")[];
|
|
555
|
+
readonly assemblyai: ("eu" | "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" | "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" | "en_au" | "en_uk" | "en_us")[];
|
|
556
556
|
readonly deepgram: readonly ["en", "en-US", "en-GB", "en-AU", "en-IN", "es", "es-419", "fr", "fr-CA", "de", "it", "pt", "pt-BR", "nl", "ru", "uk", "pl", "cs", "sk", "hu", "ro", "bg", "hr", "sl", "el", "tr", "fi", "sv", "da", "no", "et", "lv", "lt", "zh", "zh-CN", "zh-TW", "ja", "ko", "th", "vi", "id", "ms", "tl", "hi", "ta", "te", "bn", "ar"];
|
|
557
557
|
readonly "openai-whisper": readonly ["en", "es", "fr", "de", "it", "pt", "nl", "ru", "zh", "ja", "ko", "ar", "hi", "pl", "uk", "cs", "ro", "hu", "el", "tr", "fi", "sv", "da", "no", "th", "vi", "id", "ms", "he", "fa"];
|
|
558
558
|
readonly "azure-stt": 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"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { k as AllLanguageCodes, o as AllProviders, a as AssemblyAICapabilities, i as AssemblyAILanguageCodes, b as AzureCapabilities, B as BatchOnlyProviderType, q as BatchOnlyProviders, C as CapabilityKeys, f as CapabilityLabels, D as DeepgramCapabilities, j as DeepgramLanguageCodes, E as ElevenLabsCapabilities, G as GladiaCapabilities, h as GladiaLanguageCodes, g as LanguageCode, L as LanguageLabels, O as OpenAICapabilities, P as ProviderCapabilities, d as ProviderCapabilitiesMap, l as ProviderDisplayNames, n as ProviderDocs, m as ProviderWebsites, c as SonioxCapabilities, S as SpeechmaticsCapabilities, e as StreamingProviderType, p as StreamingProviders, T as TranscriptionProvider } from './provider-metadata-
|
|
1
|
+
export { k as AllLanguageCodes, o as AllProviders, a as AssemblyAICapabilities, i as AssemblyAILanguageCodes, b as AzureCapabilities, B as BatchOnlyProviderType, q as BatchOnlyProviders, C as CapabilityKeys, f as CapabilityLabels, D as DeepgramCapabilities, j as DeepgramLanguageCodes, E as ElevenLabsCapabilities, G as GladiaCapabilities, h as GladiaLanguageCodes, g as LanguageCode, L as LanguageLabels, O as OpenAICapabilities, P as ProviderCapabilities, d as ProviderCapabilitiesMap, l as ProviderDisplayNames, n as ProviderDocs, m as ProviderWebsites, c as SonioxCapabilities, S as SpeechmaticsCapabilities, e as StreamingProviderType, p as StreamingProviders, T as TranscriptionProvider } from './provider-metadata-MDUUEuqF.mjs';
|
|
2
2
|
export { AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, AzureLocales, ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, ElevenLabsLanguages, OpenAILanguageCodes, SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, SonioxLanguages, SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, SpeechmaticsLanguages } from './constants.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { k as AllLanguageCodes, o as AllProviders, a as AssemblyAICapabilities, i as AssemblyAILanguageCodes, b as AzureCapabilities, B as BatchOnlyProviderType, q as BatchOnlyProviders, C as CapabilityKeys, f as CapabilityLabels, D as DeepgramCapabilities, j as DeepgramLanguageCodes, E as ElevenLabsCapabilities, G as GladiaCapabilities, h as GladiaLanguageCodes, g as LanguageCode, L as LanguageLabels, O as OpenAICapabilities, P as ProviderCapabilities, d as ProviderCapabilitiesMap, l as ProviderDisplayNames, n as ProviderDocs, m as ProviderWebsites, c as SonioxCapabilities, S as SpeechmaticsCapabilities, e as StreamingProviderType, p as StreamingProviders, T as TranscriptionProvider } from './provider-metadata-
|
|
1
|
+
export { k as AllLanguageCodes, o as AllProviders, a as AssemblyAICapabilities, i as AssemblyAILanguageCodes, b as AzureCapabilities, B as BatchOnlyProviderType, q as BatchOnlyProviders, C as CapabilityKeys, f as CapabilityLabels, D as DeepgramCapabilities, j as DeepgramLanguageCodes, E as ElevenLabsCapabilities, G as GladiaCapabilities, h as GladiaLanguageCodes, g as LanguageCode, L as LanguageLabels, O as OpenAICapabilities, P as ProviderCapabilities, d as ProviderCapabilitiesMap, l as ProviderDisplayNames, n as ProviderDocs, m as ProviderWebsites, c as SonioxCapabilities, S as SpeechmaticsCapabilities, e as StreamingProviderType, p as StreamingProviders, T as TranscriptionProvider } from './provider-metadata-_gUWlRXS.js';
|
|
2
2
|
export { AzureLocaleCode, AzureLocaleCodes, AzureLocaleLabels, AzureLocales, ElevenLabsLanguageCode, ElevenLabsLanguageCodes, ElevenLabsLanguageLabels, ElevenLabsLanguages, OpenAILanguageCodes, SonioxLanguageCode, SonioxLanguageCodes, SonioxLanguageLabels, SonioxLanguages, SpeechmaticsLanguageCode, SpeechmaticsLanguageCodes, SpeechmaticsLanguageLabels, SpeechmaticsLanguages } from './constants.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepgramModelCode, DeepgramTopicModeType, DeepgramRedactType, AssemblyAISampleRateType, AssemblyAIEncodingType, AssemblyAISpeechModelType, SonioxRealtimeModelCode, SonioxLanguageCode, ElevenLabsRealtimeModelCode, ElevenLabsAudioFormatType, SonioxModelCode, ElevenLabsModelCode, DeepgramLanguageCode, ElevenLabsLanguageCode, SpeechmaticsLanguageCode, AzureLocaleCode } from './constants.mjs';
|
|
2
|
-
import { e as StreamingProviderType, B as BatchOnlyProviderType, T as TranscriptionProvider } from './provider-metadata-
|
|
2
|
+
import { e as StreamingProviderType, B as BatchOnlyProviderType, T as TranscriptionProvider } from './provider-metadata-MDUUEuqF.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Unified audio encoding types for Voice Router SDK
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepgramModelCode, DeepgramTopicModeType, DeepgramRedactType, AssemblyAISampleRateType, AssemblyAIEncodingType, AssemblyAISpeechModelType, SonioxRealtimeModelCode, SonioxLanguageCode, ElevenLabsRealtimeModelCode, ElevenLabsAudioFormatType, SonioxModelCode, ElevenLabsModelCode, DeepgramLanguageCode, ElevenLabsLanguageCode, SpeechmaticsLanguageCode, AzureLocaleCode } from './constants.js';
|
|
2
|
-
import { e as StreamingProviderType, B as BatchOnlyProviderType, T as TranscriptionProvider } from './provider-metadata-
|
|
2
|
+
import { e as StreamingProviderType, B as BatchOnlyProviderType, T as TranscriptionProvider } from './provider-metadata-_gUWlRXS.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Unified audio encoding types for Voice Router SDK
|
package/dist/webhooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { gS as TranscriptionStatus, gP as Speaker, gQ as Word, gR as Utterance, V as CallbackTranscriptionSuccessPayload, K as CallbackTranscriptionErrorPayload, bv as Transcript, dx as ListenV1Response, eZ as RetrieveTranscriptResponse, fz as SpeechToTextChunkResponseModel } from './speechToTextChunkResponseModel-
|
|
2
|
-
import { T as TranscriptionProvider } from './provider-metadata-
|
|
1
|
+
import { gS as TranscriptionStatus, gP as Speaker, gQ as Word, gR as Utterance, V as CallbackTranscriptionSuccessPayload, K as CallbackTranscriptionErrorPayload, bv as Transcript, dx as ListenV1Response, eZ as RetrieveTranscriptResponse, fz as SpeechToTextChunkResponseModel } from './speechToTextChunkResponseModel-BYhlHNqP.mjs';
|
|
2
|
+
import { T as TranscriptionProvider } from './provider-metadata-MDUUEuqF.mjs';
|
|
3
3
|
import './constants.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { gS as TranscriptionStatus, gP as Speaker, gQ as Word, gR as Utterance, V as CallbackTranscriptionSuccessPayload, K as CallbackTranscriptionErrorPayload, bv as Transcript, dx as ListenV1Response, eZ as RetrieveTranscriptResponse, fz as SpeechToTextChunkResponseModel } from './speechToTextChunkResponseModel-
|
|
2
|
-
import { T as TranscriptionProvider } from './provider-metadata-
|
|
1
|
+
import { gS as TranscriptionStatus, gP as Speaker, gQ as Word, gR as Utterance, V as CallbackTranscriptionSuccessPayload, K as CallbackTranscriptionErrorPayload, bv as Transcript, dx as ListenV1Response, eZ as RetrieveTranscriptResponse, fz as SpeechToTextChunkResponseModel } from './speechToTextChunkResponseModel-o8_dfC4c.js';
|
|
2
|
+
import { T as TranscriptionProvider } from './provider-metadata-_gUWlRXS.js';
|
|
3
3
|
import './constants.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voice-router-dev",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "Universal speech-to-text router for Gladia, AssemblyAI, Deepgram, Azure, OpenAI Whisper, Speechmatics, Soniox, and ElevenLabs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|