例如从2channel,4.41k hz 重采样到 1 channel,16k hz
def downsampleWav(src, dst, inrate=44100, outrate=16000, inchannels=2, outchannels=1):
import os,wave,audioop
if not os.path.exists(src):
print ('Source not found!')
return False
if not os.path.exists(os.path.dirname(dst)):
os.makedirs(os.path.dir
2022-04-28 21:52:56
36KB
w
采样
重采样
1