python sox 修改音频文件采样率

def upsample_wav(file, rate):
    tfm = sox.Transformer()
    tfm.rate(rate)
    out_path = file.split('.wav')[0] + "_hr.wav"
    tfm.build(file, out_path)
    return out_path
相关文章
相关标签/搜索