当前目录所有mp3转wav,需要安装mpg123
for mp3file in `ls *.mp3`; do mpg123 -w $mp3file.wav $mp3file; done;
如果要转成16KHZ的
for mp3file in `ls *.mp3`; do mpg123 -r 16000 -w $mp3file.wav $mp3file; done;
重命名
rename .mp3.wav .wav *.mp3.wav
wav批量转spx,需要安装speexenc
for wavfile in `ls *.wav`; do speexenc $wavfile $wavfile.spx; done;
重命名
rename .wav.spx .spx *.wav.spx
作者:帅得不敢出门 程序员群:31843264
阅读(2117) | 评论(0) | 转发(0) |