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

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
@@ -5182,6 +5182,15 @@ var createVoiceSession = (options) => {
5182
5182
  if (!ttsSession2 || started && activeTTSTurnId !== turn.id)
5183
5183
  return;
5184
5184
  if (!started) {
5185
+ fillerToken += 1;
5186
+ if (fillerTimer) {
5187
+ clearTimeout(fillerTimer);
5188
+ fillerTimer = null;
5189
+ }
5190
+ if (fillerActive) {
5191
+ await cancelActiveTTS("filler-superseded").catch(() => {});
5192
+ fillerActive = false;
5193
+ }
5185
5194
  activeTTSTurnId = turn.id;
5186
5195
  await appendTurnLatencyStage({
5187
5196
  at: ttsStartedAt,
@@ -5253,6 +5262,7 @@ var createVoiceSession = (options) => {
5253
5262
  };
5254
5263
  };
5255
5264
  const completeTurn = async (session, turn) => {
5265
+ console.error(`[voice] completeTurn ENTER session=${options.id} turn=${turn.id} textLen=${turn.text?.length ?? 0}`);
5256
5266
  const liveOpsControl = await options.liveOps?.getControl(options.id);
5257
5267
  if (liveOpsControl?.assistantPaused || liveOpsControl?.operatorTakeover) {
5258
5268
  await appendTrace({
@@ -7019,6 +7019,15 @@ var createVoiceSession = (options) => {
7019
7019
  if (!ttsSession2 || started && activeTTSTurnId !== turn.id)
7020
7020
  return;
7021
7021
  if (!started) {
7022
+ fillerToken += 1;
7023
+ if (fillerTimer) {
7024
+ clearTimeout(fillerTimer);
7025
+ fillerTimer = null;
7026
+ }
7027
+ if (fillerActive) {
7028
+ await cancelActiveTTS("filler-superseded").catch(() => {});
7029
+ fillerActive = false;
7030
+ }
7022
7031
  activeTTSTurnId = turn.id;
7023
7032
  await appendTurnLatencyStage({
7024
7033
  at: ttsStartedAt,
@@ -7090,6 +7099,7 @@ var createVoiceSession = (options) => {
7090
7099
  };
7091
7100
  };
7092
7101
  const completeTurn = async (session, turn) => {
7102
+ console.error(`[voice] completeTurn ENTER session=${options.id} turn=${turn.id} textLen=${turn.text?.length ?? 0}`);
7093
7103
  const liveOpsControl = await options.liveOps?.getControl(options.id);
7094
7104
  if (liveOpsControl?.assistantPaused || liveOpsControl?.operatorTakeover) {
7095
7105
  await appendTrace({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.555",
3
+ "version": "0.0.22-beta.557",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",