Enha: stop tts if msg not for user
This commit is contained in:
8
tui.go
8
tui.go
@@ -1120,12 +1120,8 @@ func init() {
|
||||
}
|
||||
}
|
||||
// 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
|
||||
TTSDoneChan <- true
|
||||
}
|
||||
if event.Key() == tcell.KeyCtrlA && cfg.TTS_ENABLED {
|
||||
TTSDoneChan <- true
|
||||
}
|
||||
if event.Key() == tcell.KeyCtrlW {
|
||||
// INFO: continue bot/text message
|
||||
|
||||
Reference in New Issue
Block a user