mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
_get_segment_text used rfind for every sentence and kept the smallest of the last-occurrence positions across the punctuation set, an inconsistent heuristic. Differentiate by position in the reply: - First sentence: take the earliest punctuation boundary (find) so the first audio segment is produced as soon as possible — lower time-to-first-audio. - Subsequent sentences: take the latest boundary (rfind) so segments are as large as possible — fewer TTS calls and smoother playback. The tts_stop_request flush branch is unchanged. |
||
|---|---|---|
| .. | ||
| asr | ||
| intent | ||
| llm | ||
| memory | ||
| tools | ||
| tts | ||
| vad | ||
| vllm | ||