mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 15:49:48 +00:00
Add tests on SSML parsing
A corpus of SSML input files will also be needed for fuzzing. https://github.com/espeak-ng/espeak-ng/issues/407
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_ssml() {
|
||||
INPUT=$1
|
||||
echo "testing ${INPUT}"
|
||||
cp $(dirname $INPUT)/$(basename ${INPUT%.*}).expected expected.txt
|
||||
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
|
||||
src/espeak-ng -m -v en-US --ipa=2 -f ${INPUT} > actual.txt
|
||||
diff expected.txt actual.txt || exit 1
|
||||
}
|
||||
|
||||
for i in `ls tests/ssml/*.ssml` ; do test_ssml $i ; done
|
||||
|
||||
Reference in New Issue
Block a user