当前目录所有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
linux下mp3批量转wav与spx
最新推荐文章于 2024-07-04 15:07:03 发布