From 4a17dd745cbd7354a24b046b76838f7670af51c6 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 21 May 2025 21:16:42 +0300 Subject: Enha: rename to tts.go; use one buffer; --- bot.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index 0ea2a11..08920cc 100644 --- a/bot.go +++ b/bot.go @@ -4,13 +4,13 @@ import ( "bufio" "bytes" "context" + "encoding/json" + "fmt" "gf-lt/config" "gf-lt/extra" "gf-lt/models" "gf-lt/rag" "gf-lt/storage" - "encoding/json" - "fmt" "io" "log/slog" "net" @@ -350,6 +350,7 @@ out: if cfg.TTS_ENABLED { // audioStream.TextChan <- chunk extra.TTSFlushChan <- true + logger.Info("sending flushchan signal") } break out } -- cgit v1.2.3