mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
27 lines
502 B
Bash
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}"
|