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. |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| models | ||
| music | ||
| performance_tester | ||
| plugins_func | ||
| agent-base-prompt.txt | ||
| app.py | ||
| config.yaml | ||
| config_from_api.yaml | ||
| docker-compose.yml | ||
| docker-compose_all.yml | ||
| mcp_server_settings.json | ||
| performance_tester.py | ||
| requirements.txt | ||