From 35a9f6486b8d8ec7566cb4005e848b9700feaa97 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 29 Mar 2023 21:31:46 -0600 Subject: [PATCH] if not $HOTWORDS then stdout --- whisper-2023/hotwords.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/whisper-2023/hotwords.py b/whisper-2023/hotwords.py index 71b7a64..89f79d6 100644 --- a/whisper-2023/hotwords.py +++ b/whisper-2023/hotwords.py @@ -218,7 +218,10 @@ class Reactor(threading.Thread): if os.environ.get("DEBUG", None): log(f"seeking {hotwords} in {text}") if not hotwords: - log(text) + if os.environ.get("HOTWORDS", None): + print(text) + else: + log(text) return cleantext = "".join([i for i in "".join(text.lower().split()) if i.isalpha()]) for i in hotwords: