From a7e7da6f9965624e4667ecedd23f2eb073ac2f56 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 19 May 2025 09:42:47 +0300 Subject: Feat: stop audio [WIP] --- tui.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tui.go') diff --git a/tui.go b/tui.go index a2e3ded..df42ea0 100644 --- a/tui.go +++ b/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 -- cgit v1.2.3