mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
New language option lowercaseSentence
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.
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user