@absolutejs/voice 0.0.22-beta.671 → 0.0.22-beta.672
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 +5 -1
- package/dist/testing/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4434,9 +4434,13 @@ var createVoiceSession = (options) => {
|
|
|
4434
4434
|
if (snapshot.status === "completed" || snapshot.status === "failed" || snapshot.call?.endedAt) {
|
|
4435
4435
|
return;
|
|
4436
4436
|
}
|
|
4437
|
+
const { lastSpeechAt, lastTranscriptAt } = snapshot.currentTurn;
|
|
4438
|
+
if (lastTranscriptAt !== undefined && stuckCloseAfterMs !== undefined && Date.now() - lastTranscriptAt < stuckCloseAfterMs) {
|
|
4439
|
+
kickStuckCloseWatchdog();
|
|
4440
|
+
return;
|
|
4441
|
+
}
|
|
4437
4442
|
stuckCloseFired = true;
|
|
4438
4443
|
const reason = `no caller progress for ${stuckCloseAfterMs}ms`;
|
|
4439
|
-
const { lastSpeechAt, lastTranscriptAt } = snapshot.currentTurn;
|
|
4440
4444
|
const sttDeafConfirmed = sttDeafConfirmedAt > 0 && (lastTranscriptAt === undefined || sttDeafConfirmedAt > lastTranscriptAt);
|
|
4441
4445
|
const diagnostic = {
|
|
4442
4446
|
action: "stuck-call-close",
|
package/dist/testing/index.js
CHANGED
|
@@ -7430,9 +7430,13 @@ var createVoiceSession = (options) => {
|
|
|
7430
7430
|
if (snapshot.status === "completed" || snapshot.status === "failed" || snapshot.call?.endedAt) {
|
|
7431
7431
|
return;
|
|
7432
7432
|
}
|
|
7433
|
+
const { lastSpeechAt, lastTranscriptAt } = snapshot.currentTurn;
|
|
7434
|
+
if (lastTranscriptAt !== undefined && stuckCloseAfterMs !== undefined && Date.now() - lastTranscriptAt < stuckCloseAfterMs) {
|
|
7435
|
+
kickStuckCloseWatchdog();
|
|
7436
|
+
return;
|
|
7437
|
+
}
|
|
7433
7438
|
stuckCloseFired = true;
|
|
7434
7439
|
const reason = `no caller progress for ${stuckCloseAfterMs}ms`;
|
|
7435
|
-
const { lastSpeechAt, lastTranscriptAt } = snapshot.currentTurn;
|
|
7436
7440
|
const sttDeafConfirmed = sttDeafConfirmedAt > 0 && (lastTranscriptAt === undefined || sttDeafConfirmedAt > lastTranscriptAt);
|
|
7437
7441
|
const diagnostic = {
|
|
7438
7442
|
action: "stuck-call-close",
|