Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions agents/src/voice/audio_recognition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1382,9 +1382,8 @@ export class AudioRecognition {
if (!this.turnDetectorLatePredictionWarned) {
this.turnDetectorLatePredictionWarned = true;
this.logger.warn(
'eou detection ran after the audio eot turn was already flushed ' +
'(likely a late stt final). consider raising `minDelay` in the ' +
'endpointing options to accommodate slow stt. subsequent ' +
'transcript arrives after turn has been committed. consider raising `minDelay` in the ' +
'endpointing options to accommodate a slow stt. subsequent ' +
'occurrences will log at debug level.',
);
} else {
Expand Down Expand Up @@ -1478,7 +1477,9 @@ export class AudioRecognition {
if (turnDetector instanceof BaseStreamingTurnDetectorStream) {
const fut = this.turnDetectorPredictionFut;
if (fut === undefined) {
this.onMissingEotPrediction();
if (trigger === 'stt') {
this.onMissingEotPrediction();
}
} else {
fromCache = fut.done;
// Await the held future against the model prediction timeout.
Expand Down
Loading