speechbrainteam commited on
Commit
c5d5ae4
1 Parent(s): b82b260

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -75,7 +75,7 @@ Please notice that we encourage you to read our tutorials and learn more about
75
  from speechbrain.inference.VAD import VAD
76
 
77
  VAD = VAD.from_hparams(source="speechbrain/vad-crdnn-libriparty", savedir="pretrained_models/vad-crdnn-libriparty")
78
- boundaries = VAD.get_speech_segments("example_vad.wav")
79
 
80
  # Print the output
81
  VAD.save_boundaries(boundaries)
@@ -120,7 +120,7 @@ from speechbrain.inference.VAD import VAD
120
  VAD = VAD.from_hparams(source="speechbrain/vad-crdnn-libriparty", savedir="pretrained_models/vad-crdnn-libriparty")
121
 
122
  # 1- Let's compute frame-level posteriors first
123
- audio_file = 'pretrained_models/vad-crdnn-libriparty/example_vad.wav'
124
  prob_chunks = VAD.get_speech_prob_file(audio_file)
125
 
126
  # 2- Let's apply a threshold on top of the posteriors
 
75
  from speechbrain.inference.VAD import VAD
76
 
77
  VAD = VAD.from_hparams(source="speechbrain/vad-crdnn-libriparty", savedir="pretrained_models/vad-crdnn-libriparty")
78
+ boundaries = VAD.get_speech_segments("speechbrain/vad-crdnn-libriparty/example_vad.wav")
79
 
80
  # Print the output
81
  VAD.save_boundaries(boundaries)
 
120
  VAD = VAD.from_hparams(source="speechbrain/vad-crdnn-libriparty", savedir="pretrained_models/vad-crdnn-libriparty")
121
 
122
  # 1- Let's compute frame-level posteriors first
123
+ audio_file = "example.wav"
124
  prob_chunks = VAD.get_speech_prob_file(audio_file)
125
 
126
  # 2- Let's apply a threshold on top of the posteriors