modify audio resample function

pull/2/head
xushaoyong 7 years ago
parent c5995bb7e1
commit 29f6ae0807

@ -332,7 +332,6 @@ class AudioSegment(object):
'kaiser_fast'}. 'kaiser_fast'}.
:type filter: str :type filter: str
""" """
resample_ratio = target_sample_rate / self._sample_rate
self._samples = resampy.resample( self._samples = resampy.resample(
self.samples, self.sample_rate, target_sample_rate, filter=filter) self.samples, self.sample_rate, target_sample_rate, filter=filter)
self._sample_rate = target_sample_rate self._sample_rate = target_sample_rate

Loading…
Cancel
Save