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. |
||
|---|---|---|
| .. | ||
| dto | ||
| alibl_stream.py | ||
| aliyun.py | ||
| aliyun_stream.py | ||
| base.py | ||
| cozecn.py | ||
| custom.py | ||
| default.py | ||
| doubao.py | ||
| edge.py | ||
| fishspeech.py | ||
| gpt_sovits_v2.py | ||
| gpt_sovits_v3.py | ||
| huoshan_double_stream.py | ||
| index_stream.py | ||
| minimax_httpstream.py | ||
| openai.py | ||
| paddle_speech.py | ||
| siliconflow.py | ||
| tencent.py | ||
| xunfei_stream.py | ||