DeepSpeech/tc-node-tests.sh
2017-11-03 16:22:48 +01:00

27 lines
502 B
Bash

#!/bin/bash
set -xe
source $(dirname "$0")/tc-tests-utils.sh
nodever=$1
if [ -z "${nodever}" ]; then
echo "No node version given, aborting."
exit 1
fi;
download_data
phrase=""
pushd ${HOME}/DeepSpeech/ds/native_client/
node --version
npm --version
npm install ${DEEPSPEECH_ARTIFACTS_ROOT}/deepspeech-0.0.1.tgz
npm install
phrase=$(node client.js /tmp/${model_name} /tmp/LDC93S1.wav /tmp/alphabet.txt /tmp/lm.binary /tmp/trie)
popd
assert_correct_ldc93s1 "${phrase}"