PyTorch_Speaker_Verification icon indicating copy to clipboard operation
PyTorch_Speaker_Verification copied to clipboard

Unable to run dvector_create.py, file does not start with RIFF id

Open chrisspen opened this issue 5 years ago • 1 comments

Running dvector_create.py with default arguments and the TIMIT data throws the exception:

Traceback (most recent call last):
  File "dvector_create.py", line 94, in <module>
    times, segs = VAD_chunk(2, folder+'/'+file)
  File "PyTorch_Speaker_Verification/VAD_segments.py", line 131, in VAD_chunk
    audio, byte_audio = read_wave(path, hp.data.sr)
  File "PyTorch_Speaker_Verification/VAD_segments.py", line 26, in read_wave
    with contextlib.closing(wave.open(path, 'rb')) as wf:
  File "/usr/lib/python3.7/wave.py", line 510, in open
    return Wave_read(f)
  File "/usr/lib/python3.7/wave.py", line 164, in __init__
    self.initfp(f)
  File "/usr/lib/python3.7/wave.py", line 131, in initfp
    raise Error('file does not start with RIFF id')
wave.Error: file does not start with RIFF id

chrisspen avatar Oct 16 '19 14:10 chrisspen

Make a transformation using SPHFile

xiaozhi2015 avatar Dec 16 '19 09:12 xiaozhi2015