Skip to content

ValueError: Unexpected end of file #12

@EbtesamJubran

Description

@EbtesamJubran

I had an issue when i am running the code; it says:
Traceback (most recent call last):
File "detectVoiceInWave.py", line 6, in
v = VoiceActivityDetector(filename)
File "/home/ebtesam/Desktop/Code/VAD-python-master/VAD-python-master/vad.py", line 11, in init
self._read_wav(wave_input_filename)._convert_to_mono()
File "/home/ebtesam/Desktop/Code/VAD-python-master/VAD-python-master/vad.py", line 20, in _read_wav
self.rate, self.data = wf.read(wave_file)
File "/home/ebtesam/.local/lib/python3.7/site-packages/scipy/io/wavfile.py", line 246, in read
raise ValueError("Unexpected end of file.")
ValueError: Unexpected end of file.

how can i solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions