From 465193b60d8bbfc7668db79ba65dd5c9a6833282 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 31 Mar 2023 22:36:30 -0600 Subject: [PATCH] DEBUG stderr --- rust-whisper.d/hotwords.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rust-whisper.d/hotwords.py b/rust-whisper.d/hotwords.py index 32a57b0..9a5909a 100644 --- a/rust-whisper.d/hotwords.py +++ b/rust-whisper.d/hotwords.py @@ -116,6 +116,7 @@ class Parser(threading.Thread): proc = subprocess.run(f"MODEL=./models/ggml-{os.environ.get('MODEL','tiny.en')}.bin WAV={p} P=2 rust-whisper", capture_output=True, shell=True) result = proc.stdout.decode().strip() if os.environ.get("DEBUG", None): + log("stderr:", proc.stderr.decode().strip()) log("raw transcript:", result) result = result.replace(">>", "") result = "".join([i.split("]")[-1] for i in result.split("[")[0]])