mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
enhance eou
This commit is contained in:
parent
21582020bf
commit
e4e2fab28f
1 changed files with 2 additions and 0 deletions
|
|
@ -114,6 +114,8 @@ class ASRProviderBase(ABC):
|
||||||
|
|
||||||
def is_eou(self, conn, text) -> bool:
|
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)
|
is_eou = conn.vad.is_eou(conn, text)
|
||||||
if is_eou:
|
if is_eou:
|
||||||
logger.bind(tag=TAG).info(f"检测到结束语句 {text}")
|
logger.bind(tag=TAG).info(f"检测到结束语句 {text}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue