ssml.test 358 B

1234567891011121314
  1. #!/bin/sh
  2. test_ssml() {
  3. INPUT=$1
  4. echo "testing ${INPUT}"
  5. cp $(dirname $INPUT)/$(basename ${INPUT%.*}).expected expected.txt
  6. ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
  7. src/espeak-ng -m -q -v en-US --ipa=2 -f ${INPUT} > actual.txt
  8. diff expected.txt actual.txt || exit 1
  9. }
  10. for i in `ls tests/ssml/*.ssml` ; do test_ssml $i ; done