fix:播放音乐不会停

This commit is contained in:
lizhongxiang
2025-04-02 11:07:04 +08:00
parent 347fc4ca44
commit cd3e9ed494
3 changed files with 17 additions and 8 deletions
@@ -196,6 +196,14 @@ async def play_local_music(conn, specific_file=None):
tts_finish_text="", sentence_type=None, duration=0
)
)
conn.tts.tts_audio_queue.put(
TTSMessageDTO(
u_id=conn.u_id, msg_type=MsgType.STOP_TTS_RESPONSE, content=[],
tts_finish_text='',
sentence_type=None
)
)
except Exception as e:
logger.bind(tag=TAG).error(f"播放音乐失败: {str(e)}")