From 3b84b185d1286e1b954f5ad636b26188efa141e4 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 9 Feb 2024 17:21:46 -0800 Subject: Add dropdown for GPU compute type Should enable compatibility with older GPUs. --- Scripts/transcribe_v2.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Scripts') diff --git a/Scripts/transcribe_v2.py b/Scripts/transcribe_v2.py index 7dccc48..aec8729 100644 --- a/Scripts/transcribe_v2.py +++ b/Scripts/transcribe_v2.py @@ -107,12 +107,14 @@ class MicStream(AudioStream): got_match = False device_index = -1 - focusrite_str = "Focusrite" - index_str = "Digital Audio Interface" if which_mic == "index": - target_str = index_str + target_str = "Digital Audio Interface" elif which_mic == "focusrite": - target_str = focusrite_str + target_str = "Focusrite" + elif which_mic == "motu": + target_str = "In 1-2 (MOTU M Series)" + elif which_mic == "beyond": + target_str = "Microphone (Beyond)" else: print(f"Mic {which_mic} requested, treating it as a numerical " + "device ID", file=sys.stderr) @@ -464,7 +466,8 @@ class Whisper: f"avg_logprob={s.avg_logprob})", file=sys.stderr) continue # Another touchup targeted at the vexatious "thanks for watching!" - # hallucination. + # hallucination. This triggers a lot when listening to + # instrumental/electronic music. if s.no_speech_prob > 0.15 and s.avg_logprob < -0.7: if cfg["enable_debug_mode"]: print(f"Drop probable hallucination (case 2) " + -- cgit v1.2.3