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
相關文章
相關標籤/搜索