mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 15:12:24 +00:00
When set in a language file, a period followed by a lower case letter is detected as end of sentence. Normal behavior is to require a capital letter.
28 lines
810 B
Bash
Executable File
28 lines
810 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test_voices() {
|
|
TEST_LANG=$1
|
|
MESSAGE=$2
|
|
EXPECTED=$3
|
|
TEST_TEXT=$4
|
|
TEST_BROKEN=${5:-false}
|
|
|
|
if [ "x$MESSAGE" = x- ] ; then
|
|
echo "testing ${TEST_LANG}"
|
|
else
|
|
echo "testing ${TEST_LANG} ($MESSAGE)"
|
|
fi
|
|
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
|
|
src/espeak-ng ${OPTIONS} -xq -v ${TEST_LANG} "${TEST_TEXT}" > actual.txt
|
|
echo "${EXPECTED}" > expected.txt
|
|
if [ x$TEST_BROKEN = xbroken ] ; then
|
|
diff expected.txt actual.txt || (echo "... ignoring error (broken)" && true)
|
|
else
|
|
diff expected.txt actual.txt || exit 1
|
|
fi
|
|
}
|
|
|
|
##### Voice options
|
|
test_voices ka "lowercaseSentence" "s'asi,amovn,oa t#k#v'eni g'ats#noba
|
|
r'ogor brdz'andebit#" "სასიამოვნოა თქვენი გაცნობა. როგორ ბრძანდებით" #872
|