mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
仅在首句发送TTS消息
This commit is contained in:
@@ -17,7 +17,8 @@ async def sendAudioMessage(conn, sentenceType, audios, text):
|
||||
conn.tts.tts_audio_first_sentence = False
|
||||
pre_buffer = True
|
||||
|
||||
await send_tts_message(conn, "sentence_start", text)
|
||||
if sentenceType == SentenceType.FIRST:
|
||||
await send_tts_message(conn, "sentence_start", text)
|
||||
|
||||
await sendAudio(conn, audios, pre_buffer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user