You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
498 B
14 lines
498 B
1、ASR
|
|
D:\dsWork\QingLong\XiaoZhi\xiaozhi-esp32-server\main\xiaozhi-server\core\handle\receiveAudioHandle.py
|
|
if conn.client_voice_stop:
|
|
conn.client_abort = False
|
|
conn.asr_server_receive = False
|
|
# 音频太短了,无法识别
|
|
if len(conn.asr_audio) < 15:
|
|
conn.asr_server_receive = True
|
|
else:
|
|
text, file_path = await conn.asr.speech_to_text(
|
|
conn.asr_audio, conn.session_id
|
|
)
|
|
约第38行
|