Reputation: 2033
Thanks to this post (referenced in this question) regarding the specification of phonetics, I'm able to use XSAMPA in the TTS engine. However, how am I to specify the Primary Stress character (double-quote, i.e. ") in the XML?
Sending XML like the following will end up not speaking anything, presumably because of the second (premature) occurrence of the double-quote character when specifying the ph= value:
"<speak xml:lang=\"en-US\"> <phoneme alphabet=\"xsampa\" ph=\"\"[email protected] \"wVn\"/>.</speak>"
Am I to just forget about the primary stress character because of the way the XML is specified, or is there a workaround?
Upvotes: 0
Views: 532
Reputation: 6526
Why don't you try "
as specified here, instead of an intermediate \"
?
So you would have:
"<speak xml:lang=\"en-US\"> <phoneme alphabet=\"xsampa\" ph=\""[email protected] "wVn\"/>.</speak>"
Upvotes: 1