summaryrefslogtreecommitdiffstats
path: root/Scripts/transcribe_v2.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-02-09 17:21:46 -0800
committeryum <yum.food.vr@gmail.com>2024-02-09 17:21:46 -0800
commit3b84b185d1286e1b954f5ad636b26188efa141e4 (patch)
treefbb5497abb718f6157064cb36ad164bd6dd54e0f /Scripts/transcribe_v2.py
parente58c718cb115c44ef3a546bea245e05e50d24c55 (diff)
Add dropdown for GPU compute typev0.18.0
Should enable compatibility with older GPUs.
Diffstat (limited to 'Scripts/transcribe_v2.py')
-rw-r--r--Scripts/transcribe_v2.py13
1 files changed, 8 insertions, 5 deletions
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) " +