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

9
tui.go
View File

@@ -1,6 +1,7 @@
package main
import (
"elefant/extra"
"elefant/models"
"elefant/pngmeta"
"fmt"
@@ -708,6 +709,14 @@ func init() {
return nil
}
}
// I need keybind for tts to shut up
if event.Key() == tcell.KeyCtrlA {
textArea.SetText("pressed ctrl+A", true)
if cfg.TTS_ENABLED {
// audioStream.TextChan <- chunk
extra.TTSDoneChan <- true
}
}
if event.Key() == tcell.KeyCtrlW {
// INFO: continue bot/text message
// without new role