Enha: rename to tts.go; use one buffer;

This commit is contained in:
Grail Finder
2025-05-21 21:16:42 +03:00
parent fe4f759173
commit 4a17dd745c
3 changed files with 57 additions and 49 deletions

5
bot.go
View File

@@ -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
}