summaryrefslogtreecommitdiffstats
path: root/Sounds
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-12-14 21:45:30 -0800
committeryum <yum.food.vr@gmail.com>2022-12-14 23:04:29 -0800
commit8326dee0bf01956b450858212cbdba3403b32b0d (patch)
tree3c218f1e3159543df9b935dd6a43685a0811107d /Sounds
parentf9bcee6acf6f8a418d2f96368941fc05e4b72252 (diff)
Optimize transcription latency
Shave off ~500ms due to locking. Acquiring a threading.Lock takes hundreds of milliseconds and the global interpreter lock already takes care of most crashy race conditions, so just remove the locks. Avoid writing audio to disk, saving more time (and disk wear / IOPS). Add basic profiling to transcribe(). Omit timestamps, since we don't use them (maybe we should!) Shorten noise indicators to 350ms The whisper behavior where it repeats tokens causes certain transcriptions to take many seconds. I haven't thought about how to fix this, yet.
Diffstat (limited to 'Sounds')
-rw-r--r--Sounds/Noise_Off.wavbin159822 -> 67278 bytes
-rw-r--r--Sounds/Noise_On.wavbin90190 -> 67278 bytes
2 files changed, 0 insertions, 0 deletions
diff --git a/Sounds/Noise_Off.wav b/Sounds/Noise_Off.wav
index 7c8a9bf..0d3843c 100644
--- a/Sounds/Noise_Off.wav
+++ b/Sounds/Noise_Off.wav
Binary files differ
diff --git a/Sounds/Noise_On.wav b/Sounds/Noise_On.wav
index 925b3ed..28c8f6b 100644
--- a/Sounds/Noise_On.wav
+++ b/Sounds/Noise_On.wav
Binary files differ