Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 4f002df

Browse files
committed
fix sph2pipe install
1 parent c3646de commit 4f002df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/install/prepare_kaldi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pushd ${MAIN_ROOT}/tools/kaldi/tools
4040
extras/check_dependencies.sh || ${SUDO} apt-get install -y zlib1g-dev wget gfortran subversion
4141

4242
SPH2PIPE_VERSION=v2.5
43-
rm sph2pipe_${SPH2PIPE_VERSION}.tar.gz
43+
test -e sph2pipe_${SPH2PIPE_VERSION}.tar.gz || rm sph2pipe_${SPH2PIPE_VERSION}.tar.gz
4444
wget -T 10 -t 3 https://www.openslr.org/resources/3/sph2pipe_${SPH2PIPE_VERSION}.tar.gz || wget -T 10 https://sourceforge.net/projects/kaldi/files/sph2pipe_${SPH2PIPE_VERSION}.tar.gz || exit 1
4545
tar --no-same-owner -xzf sph2pipe_v2.5.tar.gz
4646
cd sph2pipe_${SPH2PIPE_VERSION}; patch -p1 < ${MAIN_ROOT}/tools/install/sph2pipe.patch; gcc -o sph2pipe *.c -lm; cd -

0 commit comments

Comments
 (0)