Skip to content

Commit

Permalink
Merge pull request #247 from makaveli10/pin_sliero_vad_model_version
Browse files Browse the repository at this point in the history
Pin silero VAD onnx model version to v4.0
  • Loading branch information
makaveli10 authored Jul 9, 2024
2 parents cf721e8 + 42733da commit cb392cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements/server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ soundfile
ffmpeg-python
scipy
jiwer
evaluate
evaluate
numpy<2
2 changes: 1 addition & 1 deletion whisper_live/vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def audio_forward(self, x, sr: int, num_samples: int = 512):
return stacked.cpu()

@staticmethod
def download(model_url="https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx"):
def download(model_url="https://github.com/snakers4/silero-vad/raw/v4.0/files/silero_vad.onnx"):
target_dir = os.path.expanduser("~/.cache/whisper-live/")

# Ensure the target directory exists
Expand Down

0 comments on commit cb392cb

Please sign in to comment.