modify setup.sh to delete the install of libsamplerate

pull/2/head
chrisxu2016 8 years ago
parent 2450591a44
commit d6a852a304

@ -32,7 +32,6 @@ class OnlineBayesianNormalizationAugmentor(AugmentorBase):
self._target_db = target_db self._target_db = target_db
self._prior_db = prior_db self._prior_db = prior_db
self._prior_samples = prior_samples self._prior_samples = prior_samples
self._startup_delay = startup_delay
self._rng = rng self._rng = rng
self._startup_delay = startup_delay self._startup_delay = startup_delay
@ -44,7 +43,6 @@ class OnlineBayesianNormalizationAugmentor(AugmentorBase):
:param audio_segment: Audio segment to add effects to. :param audio_segment: Audio segment to add effects to.
:type audio_segment: AudioSegment|SpeechSegment :type audio_segment: AudioSegment|SpeechSegment
""" """
audio_segment.normalize_online_bayesian(self._target_db, audio_segment.normalize_online_bayesian(self._target_db, self._prior_db,
self._prior_db,
self._prior_samples, self._prior_samples,
self._startup_delay) self._startup_delay)

@ -9,22 +9,4 @@ if [ $? != 0 ]; then
exit 1 exit 1
fi 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." echo "Install all dependencies successfully."

Loading…
Cancel
Save