enhance eou

This commit is contained in:
xiehao.0527 2025-07-11 10:10:50 +08:00
parent 21582020bf
commit e4e2fab28f

View file

@ -114,6 +114,8 @@ class ASRProviderBase(ABC):
def is_eou(self, conn, text) -> bool:
"""判断是否为结束语句"""
if text is None or len(text) == 0:
return False
is_eou = conn.vad.is_eou(conn, text)
if is_eou:
logger.bind(tag=TAG).info(f"检测到结束语句 {text}")