locked
how to put SSML string into a seperate file

    Question

  • string Ssml =
        @"<speak version='1.0' " +
        "xmlns='http://www.w3.org/2001/10/synthesis' xml:lang='en-US'>" +
        "Hello <prosody contour='(0%,+80Hz) (10%,+80%) (40%,+80Hz)'>World</prosody> " + 
        "<break time='500ms' />" +
        "Goodbye <prosody rate='slow' contour='(0%,+20Hz) (10%,+30%) (40%,+10Hz)'>World</prosody>" +
        "</speak>";

    how to reference it in c# if is in different file, i can do it in xaml but the syntax for  "<" is  different.

    the above code is just inside  c#. a simple string literal assigned to string variable, is there any other way to do this.

    I'm trying to learn speech synthesis for windows runtime but the is little to nothing documentation on the web. I alreaady tried that mva course. 

    Friday, April 24, 2015 8:35 PM

Answers

  • Put it in a text file and load it up into a string.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by kiko234 Sunday, April 26, 2015 6:19 AM
    Saturday, April 25, 2015 12:27 PM
    Moderator