Commit Graph

17 Commits

Author SHA1 Message Date
朱潮
9cf562e3be 缓存 2025-09-25 10:41:27 +08:00
朱潮
997691cc2b 修复无声音导致的 all_audio_received问题 2025-09-23 14:14:41 +08:00
朱潮
01d55be032 修复无声音导致的 all_audio_received问题 2025-09-23 14:11:22 +08:00
朱潮
26a42452c8 cache audio 2025-09-23 13:40:57 +08:00
朱潮
f416ef0036 增NFC呼功能 2025-09-22 02:06:00 +08:00
朱潮
137ff6edfd 增加打招呼功能 2025-09-21 20:21:04 +08:00
朱潮
0ee0252c8a 修复tts未生成就判断结束的问题 2025-09-21 20:03:20 +08:00
朱潮
ce1f101ec7 修复结束问题 2025-09-21 18:33:36 +08:00
朱潮
a2d827c055 修复结束问题 2025-09-21 16:00:31 +08:00
朱潮
a451fd096d 修复结束问题 2025-09-21 14:23:04 +08:00
朱潮
85a67aa1fa Add debug logging to track audio data flow and TTS processing
Added comprehensive debug logging to identify why audio playback ends without starting:
- TTS text processing and buffer management
- Audio chunk generation and transfer between buffers
- TTS task queue management
- Streaming text processing

This will help identify if the issue is:
1. Empty text being sent to TTS
2. TTS generation failing
3. Audio data not being transferred between buffers
4. Premature completion detection

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 13:58:26 +08:00
朱潮
92c5e0b9e4 Fix audio playback issue by reducing preload buffer size from 3 to 1
The issue was that audio chunks were getting stuck in the preload_buffer
because the system required 3 chunks before starting playback. When TTS
generated fewer than 3 chunks, they would never be transferred to the
playback buffer, causing playback to end without ever starting.

This fix reduces the preload_size requirement from 3 to 1, allowing
even a single audio chunk to start playing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 13:55:24 +08:00
朱潮
9871b445f0 回声待处理 2025-09-21 12:09:03 +08:00
朱潮
3f70062c2b 回声待处理 2025-09-21 11:40:54 +08:00
朱潮
e1d634af1f 回声待处理 2025-09-21 10:48:51 +08:00
朱潮
9523176d60 回声待处理 2025-09-21 03:00:11 +08:00
朱潮
aed69e9c54 回声待处理 2025-09-20 23:29:47 +08:00