mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
commit
4bf2f927b0
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ class ASRProviderBase(ABC):
|
||||||
if self.conn.client_voice_stop:
|
if self.conn.client_voice_stop:
|
||||||
asr_audio_task = copy.deepcopy(self.conn.asr_audio)
|
asr_audio_task = copy.deepcopy(self.conn.asr_audio)
|
||||||
self.conn.asr_audio.clear()
|
self.conn.asr_audio.clear()
|
||||||
|
|
||||||
# 音频太短了,无法识别
|
# 音频太短了,无法识别
|
||||||
self.conn.reset_vad_states()
|
self.conn.reset_vad_states()
|
||||||
if len(asr_audio_task) > 15:
|
if len(asr_audio_task) > 15:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue