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

#!/bin/bash
for x in ./*.wav
do
b=${x##*/}
sox $b -r 16000 tmp_$b
rm -rf $b
mv tmp_$b $b
done

Reprinted address :https://blog.csdn.net/chenxieyy/article/details/51506766

copyright:author[goodlook0123],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130817111571.html