Skip to content

Commit 6606907

Browse files
author
jiangtao
committed
add print log
1 parent 98f3432 commit 6606907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/handle/audioHandle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def sendAudioMessage(conn, audios, duration, text):
8686

8787
# 发送 sentence_start(每个音频文件之前发送一次)
8888
sentence_task = asyncio.create_task(
89-
schedule_with_interrupt(base_delay, send_tts_message(conn, "sentence_start", text))
89+
schedule_with_interrupt(0, send_tts_message(conn, "sentence_start", text))
9090
)
9191
conn.scheduled_tasks.append(sentence_task)
9292

@@ -100,7 +100,7 @@ async def sendAudioMessage(conn, audios, duration, text):
100100
stop_duration = conn.tts_duration - (time.time() - conn.tts_start_speak_time)
101101
logger.bind(tag=TAG).info(f"llm_finish_task: {text}, stop_duration: {stop_duration}")
102102
stop_task = asyncio.create_task(
103-
schedule_with_interrupt(stop_duration, send_tts_message(conn, 'stop'))
103+
schedule_with_interrupt(0, send_tts_message(conn, 'stop'))
104104
)
105105
conn.scheduled_tasks.append(stop_task)
106106
if await isLLMWantToFinish(conn):

0 commit comments

Comments
 (0)