diff options
author | Grail Finder <wohilas@gmail.com> | 2025-05-19 09:42:47 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-05-19 09:42:47 +0300 |
commit | a7e7da6f9965624e4667ecedd23f2eb073ac2f56 (patch) | |
tree | 2046f8ed77ccf0d47fe0a074691f8138f8419d51 /tui.go | |
parent | 2e5755c28a86c525041cb952764425ad82411ec7 (diff) |
Feat: stop audio [WIP]
Diffstat (limited to 'tui.go')
-rw-r--r-- | tui.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |