mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Replace test_lang() and test_voice() with test_wav() and test_phwav() which uses test_wav()
This commit is contained in:
+4
-9
@@ -19,23 +19,18 @@ check_voice_folder() {
|
||||
fi
|
||||
}
|
||||
|
||||
test_voice () {
|
||||
test_mb () {
|
||||
MBVOICE=$1
|
||||
EXPECTED=$2
|
||||
TEST_TEXT=$3
|
||||
check_voice_folder $MBVOICE
|
||||
if [ "$voice_file" != "" ]; then
|
||||
echo "testing ${MBVOICE} ${TEST_TEXT} ... "
|
||||
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
|
||||
src/espeak-ng --stdout -v ${MBVOICE} "${TEST_TEXT}" | \
|
||||
$sha1sum | awk '{ print $1 }' > actual.txt
|
||||
echo "${EXPECTED}" > expected.txt
|
||||
diff expected.txt actual.txt || exit 1
|
||||
test_wav $MBVOICE $EXPECTED $TEST_TEXT
|
||||
else
|
||||
echo "$MBVOICE was not tested"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
test_voice mb-fr4 31fae066f45d4a9dc56289344f28dd00bce77875 "Bonjour"
|
||||
test_voice mb-fr4+announcer f62c9cad15df194ac7cedfcfb36b6d9ccc70a634 "Bonjour" # mbrola + variant
|
||||
test_mb mb-fr4 31fae066f45d4a9dc56289344f28dd00bce77875 "Bonjour"
|
||||
test_mb mb-fr4+announcer f62c9cad15df194ac7cedfcfb36b6d9ccc70a634 "Bonjour" # mbrola + variant
|
||||
|
||||
Reference in New Issue
Block a user