@convai/web-sdk 2.0.0-beta.0 → 2.0.0-beta.1

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.
@@ -103,18 +103,6 @@ export const useConvaiClient = (config) => {
103
103
  setIsVideoEnabled(false);
104
104
  setIsScreenShareActive(false);
105
105
  });
106
- // WebSocket transport: play bot audio track via a hidden <audio> element
107
- const wsAudioEl = document.createElement("audio");
108
- wsAudioEl.autoplay = true;
109
- wsAudioEl.dataset.convaiWs = "true";
110
- document.body.appendChild(wsAudioEl);
111
- const unsubBotAudioTrack = client.on("botAudioTrack", (track) => {
112
- wsAudioEl.srcObject = new MediaStream([track]);
113
- });
114
- // Disconnect listener also clears WS audio
115
- const unsubDisconnectWsAudio = client.on("disconnect", () => {
116
- wsAudioEl.srcObject = null;
117
- });
118
106
  // Audio controls state change listener
119
107
  const unsubAudioState = client.audioControls.on("audioStateChange", (audioState) => {
120
108
  if (audioState.isAudioMuted !== undefined) {
@@ -142,13 +130,9 @@ export const useConvaiClient = (config) => {
142
130
  unsubBotReady();
143
131
  unsubConnect();
144
132
  unsubDisconnect();
145
- unsubBotAudioTrack();
146
- unsubDisconnectWsAudio();
147
133
  unsubAudioState();
148
134
  unsubVideoState();
149
135
  unsubScreenShareState();
150
- wsAudioEl.srcObject = null;
151
- wsAudioEl.remove();
152
136
  };
153
137
  }, [client]);
154
138
  // Create enhanced connect function that can use stored config
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0-beta.0";
1
+ export declare const SDK_VERSION = "2.0.0-beta.1";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // GENERATED by scripts/sync-version.mjs — do not edit by hand.
2
2
  // Regenerated from package.json on every build.
3
- export const SDK_VERSION = "2.0.0-beta.0";
3
+ export const SDK_VERSION = "2.0.0-beta.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@convai/web-sdk",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Build web apps with lifelike AI characters. The Convai Web SDK gives you real-time voice, lipsync, emotions, and dynamic context — with first-class support for React and vanilla TypeScript.",
5
5
  "private": false,
6
6
  "type": "module",