|
@@ -1,5 +1,5 @@
|
|
|
#!/bin/bash
|
|
|
-# export http_proxy=http://192.168.0.144:7890 https_proxy=http://192.168.0.144:7890
|
|
|
+# export http_proxy=http://192.168.0.144:7890 https_proxy=http://192.168.0.144:7890
|
|
|
|
|
|
PROGNAME=$(basename "$0")
|
|
|
VERSION=1.22
|
|
@@ -742,34 +742,34 @@ fi
|
|
|
## build lv2 speech-denoiser
|
|
|
##
|
|
|
|
|
|
-# build "speech-denoiser"
|
|
|
-# if ! command_exists "git"; then
|
|
|
-# sudo apt-get install -y git
|
|
|
-# fi
|
|
|
-
|
|
|
-# if [ ! -d "$WORKSPACE/speech-denoiser" ]; then
|
|
|
-# git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
|
|
|
-# fi
|
|
|
-
|
|
|
-# cd "$WORKSPACE/speech-denoiser"
|
|
|
-# sudo apt-get install -y ninja-build python3-pip
|
|
|
-# if command_exists "python3"; then
|
|
|
-# pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' 2>&1)"
|
|
|
-# laverison="3.5.2"
|
|
|
-# echo "$pyv"
|
|
|
-# # if [ 1 -eq "$(echo "${pyv} > ${laverison}" | bc)" ];then
|
|
|
-# sudo apt-get remove python3.4 -y
|
|
|
-# sudo apt-get install software-properties-common python-software-properties -y
|
|
|
-# sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
|
-# sudo apt-get update -y
|
|
|
-# sudo apt-get install python3-pip python3.6 -y
|
|
|
-# # fi
|
|
|
+build "speech-denoiser"
|
|
|
+if ! command_exists "git"; then
|
|
|
+ sudo apt-get install -y git
|
|
|
+fi
|
|
|
+
|
|
|
+if [ ! -d "$WORKSPACE/speech-denoiser" ]; then
|
|
|
+ git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
|
|
|
+fi
|
|
|
+
|
|
|
+cd "$WORKSPACE/speech-denoiser"
|
|
|
+sudo apt-get install -y ninja-build python3-pip
|
|
|
+if command_exists "python3"; then
|
|
|
+ pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' 2>&1)"
|
|
|
+ laverison="3.5.2"
|
|
|
+ echo "$pyv"
|
|
|
+ # if [ 1 -eq "$(echo "${pyv} > ${laverison}" | bc)" ];then
|
|
|
+ sudo apt-get remove python3.4 -y
|
|
|
+ sudo apt-get install software-properties-common python-software-properties -y
|
|
|
+ sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
|
+ sudo apt-get update -y
|
|
|
+ sudo apt-get install python3-pip python3.6 -y
|
|
|
+ # fi
|
|
|
+ sudo pip3 install meson
|
|
|
+# else
|
|
|
+# sudo apt-get install -y python3-pip
|
|
|
# sudo pip3 install meson
|
|
|
-# # else
|
|
|
-# # sudo apt-get install -y python3-pip
|
|
|
-# # sudo pip3 install meson
|
|
|
-# fi
|
|
|
-# chmod +x install.sh && ./install.sh
|
|
|
-# build_done "speech-denoiser"
|
|
|
+fi
|
|
|
+chmod +x install.sh && ./install.sh
|
|
|
+build_done "speech-denoiser"
|
|
|
|
|
|
exit 0
|