xiaozhi-esp32-server/main/xiaozhi-server/core
Brad Shannon 5d6e71a641 fix(tts): pick earliest split for the first sentence, latest for the rest
_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.
2026-06-18 11:01:04 -04:00
..
api add:测试页面增加拍照识物功能 2026-02-02 15:08:24 +08:00
handle fix: 通讯录页面时间不显示 2026-06-17 14:34:42 +08:00
providers fix(tts): pick earliest split for the first sentence, latest for the rest 2026-06-18 11:01:04 -04:00
utils 修复设备快速提示词缓存key错误 2026-04-28 15:52:23 +08:00
auth.py update: 2025-10-13 17:52:28 +08:00
connection.py 优化相关逻辑 2026-06-03 16:13:03 +08:00
http_server.py update:从vision_url配置里读取域名和端口号 2025-12-18 17:37:20 +08:00
websocket_server.py update:关于对digital-human的markdown文档的修改 2026-05-12 09:45:43 +08:00