Allow <break> at the beginning of SSML (#1531)

Fixes #1232
This commit is contained in:
Juho Hiltunen
2022-11-15 20:51:28 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
-2
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
View File
@@ -45,6 +45,8 @@ test_ssml_audio "<prosody>" 88fccb35536158f25f4ae44a03fb005fef95c99b "<speak><pr
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>"