Skip to content
Open
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
8 changes: 4 additions & 4 deletions livekit-agents/livekit/agents/voice/audio_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,9 +1293,8 @@ def _on_missing_eot_prediction(self) -> None:
if not self._turn_detector_late_prediction_warned:
self._turn_detector_late_prediction_warned = True
logger.warning(
"eou detection ran after the audio eot turn was already flushed "
"(likely a late stt final). consider raising `min_delay` in the "
"endpointing options to accommodate slow stt. subsequent "
"transcript arrives after turn has been committed. consider raising `min_delay` in the "
"endpointing options to accommodate a slow stt. subsequent "
"occurrences will log at debug level.",
)
else:
Expand Down Expand Up @@ -1355,7 +1354,8 @@ async def _bounce_eou_task(
if isinstance(turn_detector, _StreamingTurnDetectorStream):
fut = self._turn_detector_prediction_fut
if fut is None:
self._on_missing_eot_prediction()
if trigger == "stt":
self._on_missing_eot_prediction()
else:
from_cache = fut.done()
done, _ = await asyncio.wait([fut], timeout=endpointing_delay)
Expand Down