@trillet-ai/web-sdk 1.3.2 → 1.3.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/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "eventemitter3";
|
|
2
2
|
import { RemoteAudioTrack, Room, RoomEvent, Track, createAudioAnalyser, } from "livekit-client";
|
|
3
3
|
const TRILLET_API_URL = {
|
|
4
|
-
CONNECT: "https://api.trillet.ai/v1/api/
|
|
4
|
+
CONNECT: "https://api.trillet.ai/v1/api/web-call",
|
|
5
5
|
PUBLIC_CONNECT: "https://api.trillet.ai/v1/api/web-call/public",
|
|
6
6
|
};
|
|
7
7
|
const decoder = new TextDecoder();
|
|
@@ -123,7 +123,7 @@ export class TrilletAgent extends EventEmitter {
|
|
|
123
123
|
await this.sdk.initializeCall({
|
|
124
124
|
token: data.token,
|
|
125
125
|
wsUrl: process.env.LIVEKIT_WS_URL ||
|
|
126
|
-
"wss://
|
|
126
|
+
"wss://trillet-ai-xdx0dw5r.livekit.cloud",
|
|
127
127
|
audioSettings: {
|
|
128
128
|
sampleRate: 48000,
|
|
129
129
|
},
|
|
@@ -182,7 +182,7 @@ export class TrilletAgent extends EventEmitter {
|
|
|
182
182
|
// Initialize call with LiveKit token
|
|
183
183
|
await this.sdk.initializeCall({
|
|
184
184
|
token: data.token,
|
|
185
|
-
wsUrl: process.env.LIVEKIT_WS_URL || "wss://
|
|
185
|
+
wsUrl: process.env.LIVEKIT_WS_URL || "wss://trillet-ai-xdx0dw5r.livekit.cloud",
|
|
186
186
|
audioSettings: {
|
|
187
187
|
sampleRate: 48000,
|
|
188
188
|
},
|