voice-router-dev 0.9.2 → 0.9.4
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 +24 -0
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/{field-configs-FbtCPxzs.d.mts → field-configs-BXXH2T3E.d.mts} +5587 -5587
- package/dist/{field-configs-FbtCPxzs.d.ts → field-configs-BXXH2T3E.d.ts} +5587 -5587
- package/dist/field-configs.d.mts +1 -1
- package/dist/field-configs.d.ts +1 -1
- package/dist/index.d.mts +428 -397
- package/dist/index.d.ts +428 -397
- package/dist/index.js +18 -1
- package/dist/index.mjs +16 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(src_exports, {
|
|
|
39
39
|
AssemblyAILanguage: () => AssemblyAILanguage,
|
|
40
40
|
AssemblyAILanguageCodes: () => AssemblyAILanguageCodes,
|
|
41
41
|
AssemblyAIListFilterSchema: () => AssemblyAIListFilterSchema,
|
|
42
|
+
AssemblyAIRegion: () => AssemblyAIRegion,
|
|
42
43
|
AssemblyAISampleRate: () => AssemblyAISampleRate,
|
|
43
44
|
AssemblyAISpeechModel: () => AssemblyAISpeechModel,
|
|
44
45
|
AssemblyAIStatus: () => AssemblyAIStatus,
|
|
@@ -89,6 +90,7 @@ __export(src_exports, {
|
|
|
89
90
|
ElevenLabsLanguageCodes: () => ElevenLabsLanguageCodes,
|
|
90
91
|
ElevenLabsLanguageLabels: () => ElevenLabsLanguageLabels,
|
|
91
92
|
ElevenLabsLanguages: () => ElevenLabsLanguages,
|
|
93
|
+
ElevenLabsRegion: () => ElevenLabsRegion,
|
|
92
94
|
ElevenLabsTypes: () => schema_exports8,
|
|
93
95
|
ElevenLabsZodSchemas: () => elevenLabsSpeechToTextAPI_zod_exports,
|
|
94
96
|
GladiaAdapter: () => GladiaAdapter,
|
|
@@ -2820,6 +2822,12 @@ var AssemblyAISampleRate = {
|
|
|
2820
2822
|
rate48000: 48e3
|
|
2821
2823
|
};
|
|
2822
2824
|
var AssemblyAIStatus = TranscriptStatus;
|
|
2825
|
+
var AssemblyAIRegion = {
|
|
2826
|
+
/** United States (default) */
|
|
2827
|
+
us: "us",
|
|
2828
|
+
/** European Union — data never leaves the EU */
|
|
2829
|
+
eu: "eu"
|
|
2830
|
+
};
|
|
2823
2831
|
var GladiaStatus = TranscriptionControllerListV2StatusItem;
|
|
2824
2832
|
var DeepgramStatus = V1ProjectsProjectIdRequestsGetParametersStatus;
|
|
2825
2833
|
var SpeechmaticsRegion = {
|
|
@@ -4352,6 +4360,12 @@ var GladiaAdapter = class extends BaseAdapter {
|
|
|
4352
4360
|
};
|
|
4353
4361
|
this.baseUrl = "https://api.gladia.io";
|
|
4354
4362
|
}
|
|
4363
|
+
initialize(config) {
|
|
4364
|
+
super.initialize(config);
|
|
4365
|
+
if (config.region) {
|
|
4366
|
+
this.streamingRegion = config.region;
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4355
4369
|
/**
|
|
4356
4370
|
* Get axios config for generated API client functions
|
|
4357
4371
|
* Configures headers and base URL using Gladia's x-gladia-key header
|
|
@@ -5013,9 +5027,10 @@ var GladiaAdapter = class extends BaseAdapter {
|
|
|
5013
5027
|
async transcribeStream(options, callbacks) {
|
|
5014
5028
|
this.validateConfig();
|
|
5015
5029
|
const streamingRequest = this.buildStreamingRequest(options);
|
|
5030
|
+
const region = options?.region ?? this.streamingRegion;
|
|
5016
5031
|
const initResponse = await streamingControllerInitStreamingSessionV2(
|
|
5017
5032
|
streamingRequest,
|
|
5018
|
-
|
|
5033
|
+
region ? { region } : void 0,
|
|
5019
5034
|
this.getAxiosConfig()
|
|
5020
5035
|
);
|
|
5021
5036
|
const { id, url: apiWsUrl } = initResponse.data;
|
|
@@ -39752,6 +39767,7 @@ var deleteTranscriptByIdResponse = import_zod13.z.any();
|
|
|
39752
39767
|
AssemblyAILanguage,
|
|
39753
39768
|
AssemblyAILanguageCodes,
|
|
39754
39769
|
AssemblyAIListFilterSchema,
|
|
39770
|
+
AssemblyAIRegion,
|
|
39755
39771
|
AssemblyAISampleRate,
|
|
39756
39772
|
AssemblyAISpeechModel,
|
|
39757
39773
|
AssemblyAIStatus,
|
|
@@ -39802,6 +39818,7 @@ var deleteTranscriptByIdResponse = import_zod13.z.any();
|
|
|
39802
39818
|
ElevenLabsLanguageCodes,
|
|
39803
39819
|
ElevenLabsLanguageLabels,
|
|
39804
39820
|
ElevenLabsLanguages,
|
|
39821
|
+
ElevenLabsRegion,
|
|
39805
39822
|
ElevenLabsTypes,
|
|
39806
39823
|
ElevenLabsZodSchemas,
|
|
39807
39824
|
GladiaAdapter,
|
package/dist/index.mjs
CHANGED
|
@@ -2591,6 +2591,12 @@ var AssemblyAISampleRate = {
|
|
|
2591
2591
|
rate48000: 48e3
|
|
2592
2592
|
};
|
|
2593
2593
|
var AssemblyAIStatus = TranscriptStatus;
|
|
2594
|
+
var AssemblyAIRegion = {
|
|
2595
|
+
/** United States (default) */
|
|
2596
|
+
us: "us",
|
|
2597
|
+
/** European Union — data never leaves the EU */
|
|
2598
|
+
eu: "eu"
|
|
2599
|
+
};
|
|
2594
2600
|
var GladiaStatus = TranscriptionControllerListV2StatusItem;
|
|
2595
2601
|
var DeepgramStatus = V1ProjectsProjectIdRequestsGetParametersStatus;
|
|
2596
2602
|
var SpeechmaticsRegion = {
|
|
@@ -4123,6 +4129,12 @@ var GladiaAdapter = class extends BaseAdapter {
|
|
|
4123
4129
|
};
|
|
4124
4130
|
this.baseUrl = "https://api.gladia.io";
|
|
4125
4131
|
}
|
|
4132
|
+
initialize(config) {
|
|
4133
|
+
super.initialize(config);
|
|
4134
|
+
if (config.region) {
|
|
4135
|
+
this.streamingRegion = config.region;
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4126
4138
|
/**
|
|
4127
4139
|
* Get axios config for generated API client functions
|
|
4128
4140
|
* Configures headers and base URL using Gladia's x-gladia-key header
|
|
@@ -4784,9 +4796,10 @@ var GladiaAdapter = class extends BaseAdapter {
|
|
|
4784
4796
|
async transcribeStream(options, callbacks) {
|
|
4785
4797
|
this.validateConfig();
|
|
4786
4798
|
const streamingRequest = this.buildStreamingRequest(options);
|
|
4799
|
+
const region = options?.region ?? this.streamingRegion;
|
|
4787
4800
|
const initResponse = await streamingControllerInitStreamingSessionV2(
|
|
4788
4801
|
streamingRequest,
|
|
4789
|
-
|
|
4802
|
+
region ? { region } : void 0,
|
|
4790
4803
|
this.getAxiosConfig()
|
|
4791
4804
|
);
|
|
4792
4805
|
const { id, url: apiWsUrl } = initResponse.data;
|
|
@@ -39522,6 +39535,7 @@ export {
|
|
|
39522
39535
|
AssemblyAILanguage,
|
|
39523
39536
|
AssemblyAILanguageCodes,
|
|
39524
39537
|
AssemblyAIListFilterSchema,
|
|
39538
|
+
AssemblyAIRegion,
|
|
39525
39539
|
AssemblyAISampleRate,
|
|
39526
39540
|
AssemblyAISpeechModel,
|
|
39527
39541
|
AssemblyAIStatus,
|
|
@@ -39572,6 +39586,7 @@ export {
|
|
|
39572
39586
|
ElevenLabsLanguageCodes,
|
|
39573
39587
|
ElevenLabsLanguageLabels,
|
|
39574
39588
|
ElevenLabsLanguages,
|
|
39589
|
+
ElevenLabsRegion,
|
|
39575
39590
|
schema_exports8 as ElevenLabsTypes,
|
|
39576
39591
|
elevenLabsSpeechToTextAPI_zod_exports as ElevenLabsZodSchemas,
|
|
39577
39592
|
GladiaAdapter,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voice-router-dev",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
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",
|