Browse Source

Allow <break> at the beginning of SSML

master
Yury Popov 2 years ago
parent
commit
7ba91ef178
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 0
    2
      src/libespeak-ng/translate.c
  2. 2
    0
      tests/ssml.test

+ 0
- 2
src/libespeak-ng/translate.c View File

@@ -1642,8 +1642,6 @@ void TranslateClause(Translator *tr, int *tone_out, char **voice_change)
}
n_ph_list2 += 2;

if (count_words == 0)
clause_pause = 0;
if (Eof() && ((word_count == 0) || (option_endpause == 0)))
clause_pause = 10;


+ 2
- 0
tests/ssml.test View File

@@ -46,6 +46,8 @@ for i in `ls tests/ssml/*.ssml2` ; do test_ssml $i punct; done
test_ssml_audio "<prosody> bug #410" 8d3bace9548ae73c4770a73c88c6f65e848b45cf "<speak><prosody rate=\"x-slow\" pitch=\"low\"> Slow and low. </prosody><prosody rate=\"x-fast\" pitch=\"x-high\"> Fast and high.</prosody></speak>"
test_ssml_audio "<audio>" 5134c1db757b2d6b8d1f3f2416124462e401b4c6 "<speak>ha: <audio src=\"$PWD/phsource/h/ha.wav\"></audio></speak>"

test_ssml_audio "<break> at start" 949ad49d180108b30c1f0f16bef6ca2f3b6199cd "<speak><break time=\"1000ms\"/>test</speak>"

# Test SSML breaks inside prosody (#1512)
test_ssml_audio "<prosody 50%><break 1000ms>" bc47aac0142243b31dd1930e3462abe541c1d9ff "<speak><prosody rate=\"50%\">Break<break time=\"1000ms\"/>test</prosody></speak>"
test_ssml_audio "<prosody 100%><break 1000ms>" c7b3e92d90063761e9744b40b17bc9204fe7d25b "<speak><prosody rate=\"100%\">Break<break time=\"1000ms\"/>test</prosody></speak>"

Loading…
Cancel
Save