From 0e2da428322961916960982f9f2532a4df8c833c Mon Sep 17 00:00:00 2001 From: xushaoyong Date: Tue, 27 Jun 2017 17:16:35 +0800 Subject: [PATCH] modify audio resample function --- deep_speech_2/data_utils/audio.py | 1 - 1 file changed, 1 deletion(-) diff --git a/deep_speech_2/data_utils/audio.py b/deep_speech_2/data_utils/audio.py index 3d9b6c11..3891f5b9 100644 --- a/deep_speech_2/data_utils/audio.py +++ b/deep_speech_2/data_utils/audio.py @@ -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 -- GitLab