diff --git a/homeassistant/components/assist_pipeline/vad.py b/homeassistant/components/assist_pipeline/vad.py index 6dacd2ff8e9..5b3d1408f58 100644 --- a/homeassistant/components/assist_pipeline/vad.py +++ b/homeassistant/components/assist_pipeline/vad.py @@ -6,8 +6,11 @@ from abc import ABC, abstractmethod from collections.abc import Iterable from dataclasses import dataclass from enum import StrEnum +import logging from typing import Final, cast +_LOGGER = logging.getLogger(__name__) + _SAMPLE_RATE: Final = 16000 # Hz _SAMPLE_WIDTH: Final = 2 # bytes @@ -159,6 +162,10 @@ class VoiceCommandSegmenter: """ self._timeout_seconds_left -= chunk_seconds if self._timeout_seconds_left <= 0: + _LOGGER.warning( + "VAD end of speech detection timed out after %s seconds", + self.timeout_seconds, + ) self.reset() return False