Feat: stop audio [WIP]
This commit is contained in:
9
tui.go
9
tui.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user