voice-router-dev 0.1.9 → 0.2.0
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.d.mts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2822,7 +2822,7 @@ var AssemblyAIAdapter = class extends BaseAdapter {
|
|
|
2822
2822
|
throw new Error("API key is required for streaming");
|
|
2823
2823
|
}
|
|
2824
2824
|
const sampleRate = options?.sampleRate || 16e3;
|
|
2825
|
-
const encoding = options?.encoding
|
|
2825
|
+
const encoding = options?.encoding ? mapEncodingToProvider(options.encoding, "assemblyai") : "pcm_s16le";
|
|
2826
2826
|
const wsUrl = `${this.wsBaseUrl}?sample_rate=${sampleRate}&encoding=${encoding}`;
|
|
2827
2827
|
const ws = new WebSocket2(wsUrl, {
|
|
2828
2828
|
headers: {
|