Skip to content

Commit

Permalink
Merge branch 'master' into releng
Browse files Browse the repository at this point in the history
  • Loading branch information
pguyot committed Feb 4, 2020
2 parents c10a220 + 4e8b04e commit 5f1110e
Show file tree
Hide file tree
Showing 29 changed files with 1,248 additions and 53 deletions.
10 changes: 7 additions & 3 deletions asr/adapt-model-i.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ if [ ! -e /nabaztag-asr/$DICTIONARY ]; then
"$DICTIONARY not found in /nabaztag-asr/"
exit 1
fi

echo "Downloading and installing $INPUT_MODEL_NAME"
mkdir -p /opt/kaldi/model/ && cd /opt/kaldi/model/ && wget -qO - $BASE_MODEL_URL | tar xJ || exit 1
if [ -e /nabaztag-asr/$INPUT_MODEL_NAME.tar.xz ]; then
echo "Installing $INPUT_MODEL_NAME"
mkdir -p /opt/kaldi/model/ && cd /opt/kaldi/model/ && tar xJf /nabaztag-asr/$INPUT_MODEL_NAME.tar.xz || exit 1
else
echo "Downloading and installing $INPUT_MODEL_NAME"
mkdir -p /opt/kaldi/model/ && cd /opt/kaldi/model/ && wget -qO - $BASE_MODEL_URL | tar xJ || exit 1
fi

if [ ! -e /opt/kaldi/model/$INPUT_MODEL_NAME/ ]; then
"model $INPUT_MODEL_NAME not found in /opt/kaldi/model/"
Expand Down
Loading

0 comments on commit 5f1110e

Please sign in to comment.