diff --git a/create-venv.sh b/create-venv.sh index 8182408..41c6ded 100755 --- a/create-venv.sh +++ b/create-venv.sh @@ -119,6 +119,17 @@ source "${VENV_PATH}/bin/activate" echo "Installing Python requirements" "${PYTHON}" -m pip install wheel +"${PYTHON}" -m pip install requests + +openfst_url='https://github.com/synesthesiam/jsgf2fst/releases/download/v0.1.0/openfst-1.6.1.tar.gz' +INCLUDE_DIR="${VENV_PATH}/include" LIBRARY_DIR="${VENV_PATH}/lib" \ + "${PYTHON}" -m pip install "${openfst_url}" + +# pytorch is not available on ARM +case "${CPU_ARCH}" in + armv7l|arm64v8) + no_flair="yes" ;; +esac requirements_file="${DIR}/requirements.txt" if [[ ! -z "${no_flair}" ]]; then diff --git a/download-dependencies.sh b/download-dependencies.sh index 66a5c7c..d73ff75 100755 --- a/download-dependencies.sh +++ b/download-dependencies.sh @@ -104,6 +104,16 @@ do fi done +# ----------------------------------------------------------------------------- +# Web Interface +# ----------------------------------------------------------------------------- + +rhasspy_web_file="${download_dir}/rhasspy-web-dist.tar.gz" +rhasspy_web_url="https://github.com/synesthesiam/rhasspy/releases/download/v2.0/rhasspy-web-dist.tar.gz" +echo "Downloading web interface (${rhasspy_web_url})" +curl -sSfL -o "${rhasspy_web_file}" "${rhasspy_web_url}" + + # ----------------------------------------------------------------------------- echo "Done"