PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.12k stars 5.55k forks source link

DeepSpeech2 thown error "File contains data in an unimplemented format" #4247

Closed jacquesqiao closed 6 years ago

jacquesqiao commented 7 years ago

We downloaded the librespeech model for speech recognition, but soundfile does not seem to be working with the code provided. We have pip installed soundfile and it seems to import just fine, but the methods do not seem to be working. Is there any light that could be shed on our problem?Specifically, https://github.com/PaddlePaddle/models/blob/develop/deep_speech_2/data/librispeech/librispeech.py gives error "File contains data in an unimplemented format." in line 103

jacquesqiao commented 7 years ago

what is the format of your sound file? is it can be convert to a .flac format? use the tool like https://audio.online-convert.com/convert-to-flac

ganzhong007 commented 6 years ago

the same problem I meet. anyone can tell me how to resolve it ?

zhxfl commented 6 years ago

the same problem I meet. anyone can tell me how to resolve it ?

muntasir2000 commented 6 years ago

I had the same issue. I solved it by installing libsndfile. http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz

To install -

tar -zxvf libsndfile-1.0.28.tar.gz
cd libsndfile-1.0.28
./configure > /dev/null && make > /dev/null && make install > /dev/null
PasaOpasen commented 4 years ago

@ganzhong007

the same problem I meet. anyone can tell me how to resolve it ?

have u solved this problem?

Always-prog commented 3 years ago

Hmm. I have a similar problem

llllaaapp commented 1 year ago

have u solved this problem?

Always-prog commented 1 year ago

@llllaaapp I've already forgotten 🙂

Always-prog commented 1 year ago

But as I see @muntasir2000 solved it by installing http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz