mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
仅在首句发送TTS消息
This commit is contained in:
parent
ef25e82544
commit
71eef4693d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue