@absolutejs/voice 0.0.22-beta.556 → 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,
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.556",
3
+ "version": "0.0.22-beta.557",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",