diff --git a/deep_speech_2/data_utils/augmentor/online_bayesian_normalization.py b/deep_speech_2/data_utils/augmentor/online_bayesian_normalization.py index bb999912e9e4ac9d24f1cfe0976e9def17c9ef33..e488ac7d67833631919f88b9e660a99b363b90d0 100755 --- a/deep_speech_2/data_utils/augmentor/online_bayesian_normalization.py +++ b/deep_speech_2/data_utils/augmentor/online_bayesian_normalization.py @@ -32,9 +32,8 @@ class OnlineBayesianNormalizationAugmentor(AugmentorBase): self._target_db = target_db self._prior_db = prior_db self._prior_samples = prior_samples - self._startup_delay = startup_delay self._rng = rng - self._startup_delay=startup_delay + self._startup_delay = startup_delay def transform_audio(self, audio_segment): """Normalizes the input audio using the online Bayesian approach. @@ -44,7 +43,6 @@ class OnlineBayesianNormalizationAugmentor(AugmentorBase): :param audio_segment: Audio segment to add effects to. :type audio_segment: AudioSegment|SpeechSegment """ - audio_segment.normalize_online_bayesian(self._target_db, - self._prior_db, + audio_segment.normalize_online_bayesian(self._target_db, self._prior_db, self._prior_samples, self._startup_delay) diff --git a/deep_speech_2/setup.sh b/deep_speech_2/setup.sh index 1ae2a5eee0f9cfd5b4318b29cf037165f78f2b73..e0ce1c4e6fe5aa0eb4006acb2be417afa57d0c7c 100644 --- a/deep_speech_2/setup.sh +++ b/deep_speech_2/setup.sh @@ -9,22 +9,4 @@ if [ $? != 0 ]; then exit 1 fi -# install scikits.samplerate -curl -O "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz" -if [ $? != 0 ]; then - echo "Download libsamplerate-0.1.9.tar.gz failed !!!" - exit 1 -fi -tar -xvf libsamplerate-0.1.9.tar.gz -cd libsamplerate-0.1.9 -./configure && make && make install -cd - -rm -rf libsamplerate-0.1.9 -rm libsamplerate-0.1.9.tar.gz -pip install scikits.samplerate==0.3.3 -if [ $? != 0 ]; then - echo "Install scikits.samplerate failed !!!" - exit 1 -fi - echo "Install all dependencies successfully."