voice-router-dev 0.8.8 → 0.8.9
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/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/{field-configs-BtR4uR2N.d.mts → field-configs-CSOt3yc9.d.mts} +5624 -5624
- package/dist/{field-configs-BtR4uR2N.d.ts → field-configs-CSOt3yc9.d.ts} +5624 -5624
- package/dist/field-configs.d.mts +1 -1
- package/dist/field-configs.d.ts +1 -1
- package/dist/index.d.mts +363 -363
- package/dist/index.d.ts +363 -363
- package/dist/index.js +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9233,8 +9233,16 @@ var SpeechmaticsAdapter = class extends BaseAdapter {
|
|
|
9233
9233
|
if (this.config?.wsBaseUrl) {
|
|
9234
9234
|
return this.config.wsBaseUrl;
|
|
9235
9235
|
}
|
|
9236
|
-
const
|
|
9237
|
-
|
|
9236
|
+
const rtRegionMap = {
|
|
9237
|
+
eu1: "eu",
|
|
9238
|
+
eu2: "eu",
|
|
9239
|
+
us1: "us",
|
|
9240
|
+
us2: "us",
|
|
9241
|
+
au1: "eu"
|
|
9242
|
+
// No AU RT endpoint — fall back to EU
|
|
9243
|
+
};
|
|
9244
|
+
const rtPrefix = rtRegionMap[region || ""] || "eu";
|
|
9245
|
+
return `wss://${rtPrefix}.rt.speechmatics.com/v2`;
|
|
9238
9246
|
}
|
|
9239
9247
|
/**
|
|
9240
9248
|
* Stream audio for real-time transcription via WebSocket
|
package/dist/index.mjs
CHANGED
|
@@ -9004,8 +9004,16 @@ var SpeechmaticsAdapter = class extends BaseAdapter {
|
|
|
9004
9004
|
if (this.config?.wsBaseUrl) {
|
|
9005
9005
|
return this.config.wsBaseUrl;
|
|
9006
9006
|
}
|
|
9007
|
-
const
|
|
9008
|
-
|
|
9007
|
+
const rtRegionMap = {
|
|
9008
|
+
eu1: "eu",
|
|
9009
|
+
eu2: "eu",
|
|
9010
|
+
us1: "us",
|
|
9011
|
+
us2: "us",
|
|
9012
|
+
au1: "eu"
|
|
9013
|
+
// No AU RT endpoint — fall back to EU
|
|
9014
|
+
};
|
|
9015
|
+
const rtPrefix = rtRegionMap[region || ""] || "eu";
|
|
9016
|
+
return `wss://${rtPrefix}.rt.speechmatics.com/v2`;
|
|
9009
9017
|
}
|
|
9010
9018
|
/**
|
|
9011
9019
|
* Stream audio for real-time transcription via WebSocket
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voice-router-dev",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
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",
|