xml-parsingsynthesizerssml

Is xml header necessary in ssml request in the SSML Specification?


I wonder if we strictly need to specify xml header in our requests to ssml synthesizers like the following:

<?xml version=\"1.0\"?><speak>hello world</speak>

or does the SSML standard also allow this?:

<speak>hello world</speak>

Solution

  • IN SSML specification there is a section https://www.w3.org/TR/speech-synthesis/#S2.1 that says:

    A legal stand-alone Speech Synthesis Markup Language document must have a legal XML Prolog [XML §2.8].

    For XML 1.0 both <?xml version=\"1.0\"?><speak>hello world</speak> and <speak>hello world</speak> are well-formed, so it's not strickly needed to specify a xml header.