0

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=\"\"sE.v@n.ti \"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?

Community
  • 1
  • 1
Rooke
  • 2,013
  • 3
  • 22
  • 34

1 Answers1

1

Why don't you try &quot; as specified here, instead of an intermediate \"?

So you would have:

"<speak xml:lang=\"en-US\"> <phoneme alphabet=\"xsampa\" ph=\"&quot;sE.v@n.ti &quot;wVn\"/>.</speak>"
Erol
  • 6,478
  • 5
  • 41
  • 55
  • I had tried " but thought I wasn't doing something right, since it didn't make a perceivable difference, but it was just my test. Thanks! – Rooke Aug 10 '12 at 14:56