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
本文共 219 字,大约阅读时间需要 1 分钟。
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
转载于:https://my.oschina.net/u/732798/blog/1920824