@pagelines/sdk 1.0.815 → 1.0.817
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/AgentProvider.js +235 -235
- package/dist/AgentProvider.js.map +1 -1
- package/dist/AgentWrap.js +1062 -1016
- package/dist/AgentWrap.js.map +1 -1
- package/dist/agent/ui/VoiceMode.vue.d.ts +0 -3
- package/dist/agent/voice/provider.d.ts +2 -0
- package/dist/agent/voice/providers/elevenlabs/provider.d.ts +2 -0
- package/dist/agent/voice/providers/livekit/provider.d.ts +1 -0
- package/dist/agent/voice/voice-session-client.d.ts +4 -0
- package/dist/agent.js +21 -8
- package/dist/agent.js.map +1 -1
- package/dist/provider.js.map +1 -1
- package/dist/provider2.js +3 -0
- package/dist/provider2.js.map +1 -1
- package/dist/provider3.js +10 -0
- package/dist/provider3.js.map +1 -1
- package/dist/sdk.css +1 -1
- package/dist/widget.js +58 -62
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/provider3.js
CHANGED
|
@@ -18365,6 +18365,16 @@ var $a = 1e4, eo = "lk.agent.state", LiveKitVoiceProvider = class {
|
|
|
18365
18365
|
for (let e of this.attachedElements) e.remove();
|
|
18366
18366
|
this.attachedElements = [], await this.room.disconnect();
|
|
18367
18367
|
}
|
|
18368
|
+
async setMuted(e) {
|
|
18369
|
+
if (e) {
|
|
18370
|
+
await this.room.localParticipant.setMicrophoneEnabled(!1);
|
|
18371
|
+
return;
|
|
18372
|
+
}
|
|
18373
|
+
await this.room.localParticipant.setMicrophoneEnabled(!0, {
|
|
18374
|
+
echoCancellation: !0,
|
|
18375
|
+
noiseSuppression: !0
|
|
18376
|
+
});
|
|
18377
|
+
}
|
|
18368
18378
|
sampleLevel() {
|
|
18369
18379
|
let e;
|
|
18370
18380
|
for (let { source: t, analyser: n } of this.levelSources) {
|