From c498ed6424eb099135c51d06b9bb5b3e7b004bff Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 10 Jan 2026 10:59:27 +0300 Subject: Fix: flushchan signal --- bot.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index 1e405c8..4d6da58 100644 --- a/bot.go +++ b/bot.go @@ -664,11 +664,15 @@ out: if scrollToEndEnabled { tv.ScrollToEnd() } - // Send chunk to audio stream handler if cfg.TTS_ENABLED { + // Send chunk to audio stream handler TTSTextChan <- chunk } } + if cfg.TTS_ENABLED { + // msg is done; flush it down + TTSFlushChan <- true + } break out } } -- cgit v1.2.3