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: