From 1bafb9c67523f0043bcd3548792a362c8fadd047 Mon Sep 17 00:00:00 2001 From: chrisxu2016 <823254351@qq.com> Date: Tue, 20 Jun 2017 16:33:28 +0800 Subject: [PATCH] add augmentor class --- deep_speech_2/data_utils/augmentor/resample.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deep_speech_2/data_utils/augmentor/resample.py b/deep_speech_2/data_utils/augmentor/resample.py index 88ef7ed0..6634bbd5 100755 --- a/deep_speech_2/data_utils/augmentor/resample.py +++ b/deep_speech_2/data_utils/augmentor/resample.py @@ -11,7 +11,7 @@ class ResampleAugmentor(AugmentorBase): :param rng: Random generator object. :type rng: random.Random - :param new_sample_rate: New sample rate in Hz + :param new_sample_rate: New sample rate in Hz. :type new_sample_rate: int """ @@ -27,4 +27,4 @@ class ResampleAugmentor(AugmentorBase): :param audio: Audio segment to add effects to. :type audio: AudioSegment|SpeechSegment """ - audio_segment.resample(self._new_sample_rate) \ No newline at end of file + audio_segment.resample(self._new_sample_rate) -- GitLab