C#中带有ssml的xml无效#

时间:2016-12-23 05:09:03

标签: c# xml ssml

我很难弄清楚xml如何在C#中对我的ssml代码无效。

以下是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\">" + say + "</prosody></voice></speak>");

和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>

谢谢!

1 个答案:

答案 0 :(得分:0)

我明白了!语音标签中有空格!