summaryrefslogtreecommitdiffstats
path: root/app/vad.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-05-29 19:45:48 -0700
committeryum <yum.food.vr@gmail.com>2025-05-29 19:45:48 -0700
commitf97cef182de55b6dbae8d2bc0477acfca6cc1f66 (patch)
tree61c9237fb404dcb9749a496be57e6758e7341c2a /app/vad.py
parent82a5b3805b2a54faea501ee362419330664c277a (diff)
More UI work
1. main STT app works in new project structure 2. UI dumps mics on startup to populate mic list 3. add missing deps (hf-xet, wave) 4. normalize audio volume when transcribing. Probably still wrong tbqh. 5. add checkbox to save audio segments & improve logic so only segments with speech get saved. 6. add default config settings
Diffstat (limited to 'app/vad.py')
-rw-r--r--app/vad.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/vad.py b/app/vad.py
index 10a72d3..1dea765 100644
--- a/app/vad.py
+++ b/app/vad.py
@@ -259,7 +259,8 @@ def get_vad_model():
"""Returns the VAD model instance."""
abspath = os.path.abspath(__file__)
my_dir = os.path.dirname(abspath)
- path = os.path.join(my_dir, "Models/silero_vad.onnx")
+ parent_dir = os.path.dirname(my_dir)
+ path = os.path.join(parent_dir, "Models", "silero_vad.onnx")
return SileroVADModel(path)