Menu

#123 Multiline SSML tag doesn't work

v1.0 (example)
open
nobody
5
2015-12-06
2015-01-27
No

Multiline SSML tag doesn't work.

I tried this:
<speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis &lt;a href=" http:="" www.w3.org="" TR="" speech-synthesis11="" synthesis.xsd"="">http://www.w3.org/TR/speech-synthesis11/synthesis.xsd" xml:lang="pt-BR">...</speak>

And got espeak reading: "xmlns="http://www.w3.org/2001/10/synthesis...."

Discussion

  • Rafael Diniz

    Rafael Diniz - 2015-01-27

    ps: there is a "\n" between each <speak> attribute.

     
  • Rafael Diniz

    Rafael Diniz - 2015-01-28

    Also, the xml declaration <?xml ...> is not supported. Attached goes a patch to workaround it's presence and don't read it.

     
  • Valdis Vitolins

    Valdis Vitolins - 2015-12-06

    I believe this is fixed with little bit different implementation

            if((c1 == '<') && (ssml_ignore_l_angle != '<'))
            {
                if((c2 == '!') || (c2 == '?'))
                                {
                    // a comment, ignore until closing '<'  (or <?xml tag )
                    while(!Eof() && (c1 != '>'))
                    {
                        c1 = GetC();
                    }
                    c2 = ' ';
                }
                else
    

    https://github.com/espeak/espeak/blob/master/src/readclause.cpp line 2403...

    Isn't it?

     

Log in to post a comment.