summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-05-21 21:16:42 +0300
committerGrail Finder <wohilas@gmail.com>2025-05-21 21:16:42 +0300
commit4a17dd745cbd7354a24b046b76838f7670af51c6 (patch)
tree7365b5d5d3b3ad24252d1a5ea6b1a3c0de0b2557 /bot.go
parentfe4f759173ecd3cff2a6db38878cfd2727b8b49c (diff)
Enha: rename to tts.go; use one buffer;
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go5
1 files changed, 3 insertions, 2 deletions
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
}