|
|
|
@ -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)
|
|
|
|
|
audio_segment.resample(self._new_sample_rate)
|
|
|
|
|