mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 09:33:55 +08:00
update:优化线程
This commit is contained in:
@@ -3,6 +3,7 @@ import asyncio
|
||||
import time
|
||||
from core.providers.tts.dto.dto import SentenceType
|
||||
from core.utils.util import get_string_no_punctuation_or_emoji, analyze_emotion
|
||||
from loguru import logger
|
||||
|
||||
TAG = __name__
|
||||
|
||||
@@ -49,7 +50,7 @@ async def sendAudioMessage(conn, sentenceType, audios, text):
|
||||
|
||||
await send_tts_message(conn, "sentence_start", text)
|
||||
|
||||
await sendAudio(conn, audios, True)
|
||||
await sendAudio(conn, audios, False)
|
||||
|
||||
await send_tts_message(conn, "sentence_end", text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user