Speech Error: SSML input not valid
Posted: Wed Sep 04, 2013 12:32 pm
Greetings Jim,
I have found the problem with Ivona voices that crashes TextAloud and produces the error message: Speech Error: SSML input not valid; cannot find 'speak' element (Error 80045003).
The problem is caused by the following regular expression and Sapi 5 Pronunciation tag used on Respell line, when used in TextAloud Pronunciation Dictionary Maintenance:
(?#several years)(?m)(?:^|\s|['"‘“(]|\p{Pi}|\p{Ps}|\p{Pd})\Kseveral years(?!['’‘´]?[a-z])(?=[’”\p{Po}\p{Pe}\p{Pf}]{0,2}(?:\s|$))
<Pron sym="s eh v 1 r ax l & y iy r s 1"/>
TextAloud interprets the legitimate Sapi 5 Pronunciation tag <Pron sym="s eh v 1 r ax l & y iy r s 1"/> as an SSML tag.
If the & in the tag is replaced with a "-": for example, <Pron sym="s eh v 1 r ax l - y iy r s 1"/>, TextAloud will interpret the tag properly as Sapi 5 Pronunciation tag and it will not crash TextAloud.
The problem, therefore, clearly appears to be an error introduce by TextAloud since <Pron sym="s eh v 1 r ax l & y iy r s 1"/> crashes TextAloud when used with Ivona Voices and all other voices (AT&T, Cepstral, etc.)
<Pron sym="s eh v 1 r ax l & y iy r s 1"/>, is a valid Sapi 5 Pronunciation tag and worked in previous versions of TextAloud. This problem with & causing a problem in the pronunciaton tag had occurred before and you had previously fixed it.
I have found the problem with Ivona voices that crashes TextAloud and produces the error message: Speech Error: SSML input not valid; cannot find 'speak' element (Error 80045003).
The problem is caused by the following regular expression and Sapi 5 Pronunciation tag used on Respell line, when used in TextAloud Pronunciation Dictionary Maintenance:
(?#several years)(?m)(?:^|\s|['"‘“(]|\p{Pi}|\p{Ps}|\p{Pd})\Kseveral years(?!['’‘´]?[a-z])(?=[’”\p{Po}\p{Pe}\p{Pf}]{0,2}(?:\s|$))
<Pron sym="s eh v 1 r ax l & y iy r s 1"/>
TextAloud interprets the legitimate Sapi 5 Pronunciation tag <Pron sym="s eh v 1 r ax l & y iy r s 1"/> as an SSML tag.
If the & in the tag is replaced with a "-": for example, <Pron sym="s eh v 1 r ax l - y iy r s 1"/>, TextAloud will interpret the tag properly as Sapi 5 Pronunciation tag and it will not crash TextAloud.
The problem, therefore, clearly appears to be an error introduce by TextAloud since <Pron sym="s eh v 1 r ax l & y iy r s 1"/> crashes TextAloud when used with Ivona Voices and all other voices (AT&T, Cepstral, etc.)
<Pron sym="s eh v 1 r ax l & y iy r s 1"/>, is a valid Sapi 5 Pronunciation tag and worked in previous versions of TextAloud. This problem with & causing a problem in the pronunciaton tag had occurred before and you had previously fixed it.