@estuary-ai/sdk 0.1.30 → 0.1.32
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 +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -27166,7 +27166,19 @@ var init_livekit_voice = __esm({
|
|
|
27166
27166
|
err
|
|
27167
27167
|
);
|
|
27168
27168
|
}
|
|
27169
|
-
|
|
27169
|
+
await new Promise((resolve) => {
|
|
27170
|
+
const timeout = setTimeout(() => {
|
|
27171
|
+
this.socketManager.off("livekitConnected", onReady);
|
|
27172
|
+
this.logger.warn("Timed out waiting for livekit_ready, proceeding");
|
|
27173
|
+
resolve();
|
|
27174
|
+
}, 5e3);
|
|
27175
|
+
const onReady = () => {
|
|
27176
|
+
clearTimeout(timeout);
|
|
27177
|
+
resolve();
|
|
27178
|
+
};
|
|
27179
|
+
this.socketManager.once("livekitConnected", onReady);
|
|
27180
|
+
this.socketManager.emitEvent("livekit_join", { room: tokenData.room });
|
|
27181
|
+
});
|
|
27170
27182
|
this._isActive = true;
|
|
27171
27183
|
this.logger.debug("LiveKit voice started");
|
|
27172
27184
|
}
|
|
@@ -31422,7 +31434,7 @@ function parseActions(text) {
|
|
|
31422
31434
|
}
|
|
31423
31435
|
|
|
31424
31436
|
// src/client.ts
|
|
31425
|
-
var DEFAULT_SAMPLE_RATE =
|
|
31437
|
+
var DEFAULT_SAMPLE_RATE = 24e3;
|
|
31426
31438
|
var EstuaryClient = class extends TypedEventEmitter {
|
|
31427
31439
|
config;
|
|
31428
31440
|
logger;
|