add augmentor class

pull/2/head
chrisxu2016 8 years ago
parent 115a06bb37
commit 71283d619d

@ -11,7 +11,7 @@ class ResampleAugmentor(AugmentorBase):
:param rng: Random generator object. :param rng: Random generator object.
:type rng: random.Random :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 :type new_sample_rate: int
""" """
@ -27,4 +27,4 @@ class ResampleAugmentor(AugmentorBase):
:param audio: Audio segment to add effects to. :param audio: Audio segment to add effects to.
:type audio: AudioSegment|SpeechSegment :type audio: AudioSegment|SpeechSegment
""" """
audio_segment.resample(self._new_sample_rate) audio_segment.resample(self._new_sample_rate)

Loading…
Cancel
Save