forked from synesthesiam/rhasspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using binary distributions for everything
- Loading branch information
Michael Hansen
committed
May 22, 2019
1 parent
f19782b
commit 8d341dc
Showing
7 changed files
with
123 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ record/ | |
# Tools | ||
tools/dist/ | ||
tools/etc/ | ||
opt/ | ||
|
||
# Third party | ||
etc/*.tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Directory of *this* script | ||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
this_dir="$( cd "$( dirname "$0" )" && pwd )" | ||
|
||
cd "$DIR/.." | ||
source .venv/bin/activate | ||
venv="${this_dir}/../.venv" | ||
if [[ ! -d "${venv}" ]]; then | ||
echo "Missing virtual environment at ${venv}" | ||
echo "Did you run create-venv.sh?" | ||
exit 1 | ||
fi | ||
|
||
source "${venv}/bin/activate" | ||
|
||
# Force .venv/lib to be used | ||
export LD_LIBRARY_PATH="${venv}/lib:${LD_LIBRARY_PATH}" | ||
|
||
# Use local Kaldi | ||
if [[ -d "${this_dir}/../opt/kaldi" ]]; then | ||
export KALDI_PREFIX="${this_dir}/../opt" | ||
fi | ||
|
||
# Path to sphinxtrain tools | ||
if [[ -d "/usr/lib/sphinxtrain" ]]; then | ||
export PATH="/usr/lib/sphinxtrain:$PATH" | ||
export PATH="/usr/lib/sphinxtrain:${PATH}" | ||
fi | ||
|
||
python3 -m rhasspy "$@" | ||
cd "${this_dir}/.." && python3 -m rhasspy "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters