Change huge amount of data from NIST to RIFF wav file

自闭症网瘾萝莉.ら 提交于 2019-12-05 22:42:21

Since forfiles is a Windows command, here is a solution for unix. Just cd to the upper folder and type:

find . -name '*.WAV' | parallel -P20 sox {} '{.}.wav'

You need to have installed parallel and sox though, but for Mac you can get both via brew install. Hope this helps.

Ok, I got it finally. Go to the upper folder and run this code:

forfiles /s /m *.wav /c "cmd /c sph2pipe -f wav @file @fnameRIFF.wav"

This code searches for every file and make it readble for the python libs. Hope it helps!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!