@absolutejs/voice 0.0.22-beta.557 → 0.0.22-beta.558

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 CHANGED
@@ -4273,6 +4273,17 @@ var createVoiceSession = (options) => {
4273
4273
  turnId: cancelledTurnId
4274
4274
  });
4275
4275
  }
4276
+ try {
4277
+ ttsSession = null;
4278
+ ttsSessionPromise = null;
4279
+ await activeSession.close("post-cancel-reset");
4280
+ } catch (error) {
4281
+ logger.warn("voice tts adapter close-after-cancel failed", {
4282
+ error: toError(error).message,
4283
+ reason,
4284
+ sessionId: options.id
4285
+ });
4286
+ }
4276
4287
  };
4277
4288
  const sendAssistantAudio = async (chunk, input) => {
4278
4289
  const normalizedChunk = chunk instanceof Uint8Array ? new Uint8Array(chunk) : chunk instanceof ArrayBuffer ? new Uint8Array(chunk.slice(0)) : new Uint8Array(chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.byteLength));
@@ -6110,6 +6110,17 @@ var createVoiceSession = (options) => {
6110
6110
  turnId: cancelledTurnId
6111
6111
  });
6112
6112
  }
6113
+ try {
6114
+ ttsSession = null;
6115
+ ttsSessionPromise = null;
6116
+ await activeSession.close("post-cancel-reset");
6117
+ } catch (error) {
6118
+ logger.warn("voice tts adapter close-after-cancel failed", {
6119
+ error: toError(error).message,
6120
+ reason,
6121
+ sessionId: options.id
6122
+ });
6123
+ }
6113
6124
  };
6114
6125
  const sendAssistantAudio = async (chunk, input) => {
6115
6126
  const normalizedChunk = chunk instanceof Uint8Array ? new Uint8Array(chunk) : chunk instanceof ArrayBuffer ? new Uint8Array(chunk.slice(0)) : new Uint8Array(chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.byteLength));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.557",
3
+ "version": "0.0.22-beta.558",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",