commit
5e7e87a354
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
test -d montreal-forced-aligner || wget --no-check-certificate https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/releases/download/v1.0.1/montreal-forced-aligner_linux.tar.gz
|
||||
tar xvf montreal-forced-aligner_linux.tar.gz
|
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
WGET="wget --no-check-certificate"
|
||||
|
||||
# SCTK official repo does not have version tags. Here's the mapping:
|
||||
# # 2.4.9 = 659bc36; 2.4.10 = d914e1b; 2.4.11 = 20159b5.
|
||||
SCTK_GITHASH=20159b5
|
||||
SCTK_CXFLAGS="-w -march=native"
|
||||
CFLAGS="CFLAGS=${SCTK_CXFLAGS}"
|
||||
CXXFLAGS="CXXFLAGS=-std=c++11 ${SCTK_CXFLAGS}"
|
||||
|
||||
MAKE=make
|
||||
|
||||
|
||||
${WGET} -nv -T 10 -t 3 -O sctk-${SCTK_GITHASH}.tar.gz https://github.com/usnistgov/SCTK/archive/${SCTK_GITHASH}.tar.gz;
|
||||
tar zxvf sctk-${SCTK_GITHASH}.tar.gz
|
||||
rm -rf sctk-${SCTK_GITHASH} sctk
|
||||
mv SCTK-${SCTK_GITHASH}* sctk-${SCTK_GITHASH}
|
||||
ln -s sctk-${SCTK_GITHASH} sctk
|
||||
touch sctk-${SCTK_GITHASH}.tar.gz
|
||||
|
||||
rm -f sctk/.compiled
|
||||
CFLAGS="${SCTK_CXFLAGS}" CXXFLAGS="-std=c++11 ${SCTK_CXFLAGS}" ${MAKE} -C sctk config
|
||||
CFLAGS="${SCTK_CXFLAGS}" CXXFLAGS="-std=c++11 ${SCTK_CXFLAGS}" ${MAKE} -C sctk all doc
|
||||
${MAKE} -C sctk install
|
||||
touch sctk/.compiled
|
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt install -y libvorbis-dev libmp3lame-dev libmad-ocaml-dev
|
||||
test -d sox-14.4.2 || wget --no-check-certificate https://nchc.dl.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.gz
|
||||
tar -xvzf sox-14.4.2.tar.gz -C .
|
||||
cd sox-14.4.2 && ./configure --prefix=/usr/ && make -j4 && make install
|
@ -0,0 +1,36 @@
|
||||
|
||||
#!/bin/bash
|
||||
# copy from Espnet
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ $# -eq 0 ] || [ $# -gt 2 ]; then
|
||||
echo "Usage: $0 <python> [venv-path]"
|
||||
echo "e.g."
|
||||
echo "$0 \$(which python3)"
|
||||
exit 1;
|
||||
elif [ $# -eq 2 ]; then
|
||||
PYTHON="$1"
|
||||
VENV="$2"
|
||||
elif [ $# -eq 1 ]; then
|
||||
PYTHON="$1"
|
||||
VENV="venv"
|
||||
fi
|
||||
|
||||
if ! "${PYTHON}" -m venv --help > /dev/null 2>&1; then
|
||||
echo "Error: ${PYTHON} is not Python3?"
|
||||
exit 1
|
||||
fi
|
||||
if [ -e activate_python.sh ]; then
|
||||
echo "Warning: activate_python.sh already exists. It will be overwritten"
|
||||
fi
|
||||
|
||||
"${PYTHON}" -m venv ${VENV}
|
||||
cat << EOF > activate_python.sh
|
||||
#!/usr/bin/env bash
|
||||
# THIS FILE IS GENERATED BY tools/setup_venv.sh
|
||||
. $(cd ${VENV}; pwd)/bin/activate
|
||||
EOF
|
||||
|
||||
. ./activate_python.sh
|
||||
python3 -m pip install -U pip wheel
|
Loading…
Reference in new issue