Invalid xml with ssml in C# -


i having hard time trying figure out how xml invalid ssml code within c#.

here line of code in c#:

  synth.speakssml("<speak version=\"1.0\" xmlns=\"http://www.w3.org/2001/10/synthesis\" xml:lang=\"en-us\">< voice gender=\"male\" age=\"15\" xml:lang=\"en-us\"><prosody contour=\"(0%,+20hz) (25%,+20hz) (50%,+20hz) (75%,+20hz)\" volume=\"100\">" + + "</prosody></voice></speak>"); 

and ssml:

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-us">     < voice gender="male" age="15" xml:lang="en-us">         <prosody contour="(0%,+20hz) (25%,+20hz) (50%,+20hz) (75%,+20hz)" volume="100">               text      </prosody></voice></speak> 

thank you!

i figured out! there space in voice tag!


Comments

Popular posts from this blog

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -