Skip to content

Commit 34e23e0

Browse files
chore(eot): update log message about slow stt transcript (#1920)
Co-authored-by: rosetta-livekit-bot[bot] <282703043+rosetta-livekit-bot[bot]@users.noreply.github.com>
1 parent 49f7567 commit 34e23e0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

agents/src/voice/audio_recognition.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,9 +1382,8 @@ export class AudioRecognition {
13821382
if (!this.turnDetectorLatePredictionWarned) {
13831383
this.turnDetectorLatePredictionWarned = true;
13841384
this.logger.warn(
1385-
'eou detection ran after the audio eot turn was already flushed ' +
1386-
'(likely a late stt final). consider raising `minDelay` in the ' +
1387-
'endpointing options to accommodate slow stt. subsequent ' +
1385+
'transcript arrives after turn has been committed. consider raising `minDelay` in the ' +
1386+
'endpointing options to accommodate a slow stt. subsequent ' +
13881387
'occurrences will log at debug level.',
13891388
);
13901389
} else {
@@ -1478,7 +1477,9 @@ export class AudioRecognition {
14781477
if (turnDetector instanceof BaseStreamingTurnDetectorStream) {
14791478
const fut = this.turnDetectorPredictionFut;
14801479
if (fut === undefined) {
1481-
this.onMissingEotPrediction();
1480+
if (trigger === 'stt') {
1481+
this.onMissingEotPrediction();
1482+
}
14821483
} else {
14831484
fromCache = fut.done;
14841485
// Await the held future against the model prediction timeout.

0 commit comments

Comments
 (0)