提交 29f6ae08 编写于 作者: X xushaoyong

modify audio resample function

上级 c5995bb7
......@@ -332,7 +332,6 @@ class AudioSegment(object):
'kaiser_fast'}.
:type filter: str
"""
resample_ratio = target_sample_rate / self._sample_rate
self._samples = resampy.resample(
self.samples, self.sample_rate, target_sample_rate, filter=filter)
self._sample_rate = target_sample_rate
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册