Skip to content

Commit

Permalink
fix #335 (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhendong authored Jul 17, 2024
1 parent 35ed593 commit 1df7626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wespeaker/cli/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def diarize(self, audio_path: str, utt: str = "unk"):

pcm, sample_rate = torchaudio.load(audio_path, normalize=False)
# 1. vad
vad_segments = self.vad.get_speech_timestamps(audio_path,
return_seconds=True)
wav = read_audio(audio_path)
vad_segments = get_speech_timestamps(wav, self.vad, return_seconds=True)

# 2. extact fbanks
subsegs, subseg_fbanks = [], []
Expand Down

0 comments on commit 1df7626

Please sign in to comment.