Enha: rename to tts.go; use one buffer;
This commit is contained in:
5
bot.go
5
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user