Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAVE: RIFF header not found #112

Open
Mte90 opened this issue Mar 17, 2021 · 1 comment
Open

WAVE: RIFF header not found #112

Mte90 opened this issue Mar 17, 2021 · 1 comment

Comments

@Mte90
Copy link
Member

Mte90 commented Mar 17, 2021

We got this error with the italian dataset: soxi FAIL formats: can't open input file '/home/ubuntu/datasets/common_voice/cv-it/clips/common_voice_it_17552746.wav': WAVE: RIFF header not found

@eziolotta
Copy link

eziolotta commented Mar 17, 2021

There are other files that give the same error.

If .mp3 of CommonVoice is resampled with sox with parameter -t <file_type>, soxi no longer gives this error.
I tried resampling from command line.
sox −t mp3 /home/ubuntu/datasets/common_voice/cv-it/clips/common_voice_it_17552761.mp3 -r 16000 -c 1 -b 16 /home/ubuntu/datasets/common_voice/cv-it/clips/common_voice_it_17552761.wav

I don't understand why python code doesn't work, it's like it doesn't see the -t parameter, and than i have error 'RIFF header not found' whit soxi.
subprocess.check_call (['sox', '- t', 'mp3', mp3_filename, '-r', '16000', '-c', '1', '-b', '16', wav_filename], stderr = subprocess.STDOUT)

UPDATE: on file common_voice_it_17552746.mp3 command line resampling does not work either. Maybe this file have some problem (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants