BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Multi-line SSML causes escaping issues

Open tracyboehrer opened this issue 2 years ago • 0 comments

  1. Start Composer (stand-alone or from PVA)
  2. Add a "Send a response" node
  3. Paste the following into the Speech value (not the newline before the lang end tag):
<speak version="1.0" xmlns="[http://www.w3.org/2001/10/synthesis"](http://www.w3.org/2001/10/synthesis%22) xml:lang="en-GB"><voice name="en-GB-AbbiNeural"><lang xml:lang="en-GB">
</lang><p><audio src="[https://docsfordtmf.blob.core.windows.net/sandvik/UK_Welcome.wav"/></p></voice></speak>](https://docsfordtmf.blob.core.windows.net/sandvik/UK_Welcome.wav%22/%3e%3c/p%3e%3c/voice%3e%3c/speak%3e)
  1. Leave that node and return
  2. Note the following escaping:
<speak version="1.0" xmlns="[http://www.w3.org/2001/10/synthesis"](http://www.w3.org/2001/10/synthesis%22) xml:lang="en\-GB"><voice name="en\-GB\-AbbiNeural"><lang xml:lang="en\-GB">
</lang><p><audio src="[https://docsfordtmf.blob.core.windows.net/sandvik/UK_Welcome.wav"/></p></voice></speak>](https://docsfordtmf.blob.core.windows.net/sandvik/UK_Welcome.wav%22/%3e%3c/p%3e%3c/voice%3e%3c/speak%3e)

tracyboehrer avatar Dec 06 '22 14:12 tracyboehrer