Feat: stop audio [WIP]

This commit is contained in:
Grail Finder
2025-05-19 09:42:47 +03:00
parent 2e5755c28a
commit a7e7da6f99
6 changed files with 98 additions and 82 deletions

2
bot.go
View File

@@ -524,7 +524,7 @@ func init() {
choseChunkParser()
httpClient = createClient(time.Second * 15)
if cfg.TTS_ENABLED {
orator = extra.InitOrator(logger, cfg.TTS_URL)
orator = extra.NewOrator(logger, cfg)
}
if cfg.STT_ENABLED {
asr = extra.NewWhisperSTT(logger, cfg.STT_URL, 16000)