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/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 regionPrefix = region || "eu1";
9237
- return `wss://${regionPrefix}.rt.speechmatics.com/v2`;
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 regionPrefix = region || "eu1";
9008
- return `wss://${regionPrefix}.rt.speechmatics.com/v2`;
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.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",