baidu-research / ba-dls-deepspeech

Apache License 2.0
486 stars 174 forks source link

Script for converting flac to wav has some bugs #26

Closed Soonhwan-Kwon closed 7 years ago

Soonhwan-Kwon commented 7 years ago

When using provided script for flac to wav converting, it generates some repeated wav files, for example when flac file sounds is like "Hello is there" then wav file is converted to "Hello is there Hello is there Hello is there Hello is there Hello is there Hello is there" I tested script in Ubutu 14.04 and 16.04.

Soonhwan-Kwon commented 7 years ago

I changed converter from avconv to sox, it solved problem. sox "${flacfile%.}.flac" -e signed -b 16 -c 1 -r 16000 "${flacfile%.}.wav"