Linux arbitrary audio sampling rate conversion

goodlook0123 2022-02-13 08:17:12 阅读数:679

linux arbitrary audio sampling rate

1, take 2.wav The sampling rate of the file is modified to 16000HZ

 The order is as follows :sox 2.wav -r 16000 2R.wav

2. Put... In the current folder wav Batch modification of files to 16000HZ

for x in ./*.wav
sox $b -r 16000 tmp_$b
rm -rf $b
mv tmp_$b $b

Reprinted address :

copyright:author[goodlook0123],Please bring the original link to reprint, thank you.