﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Entering SSML instructions directly into the text or HTML files to be read aloud by @Voice</title><link>https://hyperionics.com/forum2/rss-m13397.ashx</link><description /><copyright>(c) Hyperionics Support Forum</copyright><ttl>30</ttl><item><title>Entering SSML instructions directly into the text or HTML files to be read aloud by @Voice (Admin)</title><description>You can use any SSML instructions in the text that you load into @Voice app for speaking. However, there is one trick to remember: @Voice will convert any &amp;lt; character into its HTML encoding: “&amp;amp;lt;” and similarly &amp;gt; will be converted into “&amp;amp;gt;”. So these characters should have been converted back to &amp;lt; or &amp;gt;, but only for SSML instructions. You may use the following workaround:&lt;br/&gt;&amp;nbsp;&lt;br/&gt;When you want to enter any SSML instruction - let’s use the simplest as an example: the &lt;i&gt;break&lt;/i&gt; SSML instruction:&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;Some test to speak &amp;lt;break time=”2000ms”/&amp;gt; and some more text after it.&lt;/b&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;Edit your original file and change the &amp;lt; and &amp;gt; characters for SSML instructions to something else, something unique, for example to “[&amp;lt;” and “&amp;gt;]” sequences:&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;Some test to speak [&amp;lt;break time=”2000ms”/&amp;gt;] and some more text after it.&lt;/b&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;Now add the following two speech replacements in @Voice Edit speech function:&lt;br/&gt;&amp;nbsp;&lt;br/&gt;Type: &lt;b&gt;Case Sensitive&lt;/b&gt;&lt;br/&gt;Match whole words only: &lt;b&gt;unchecked&lt;/b&gt;&lt;br/&gt;Pattern: &lt;b&gt;[&amp;amp;lt;&lt;/b&gt;&lt;br/&gt;Replace: &lt;b&gt;&amp;lt;&lt;/b&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;and&lt;br/&gt;&amp;nbsp;&lt;br/&gt;Type: &lt;b&gt;Case Sensitive&lt;/b&gt;&lt;br/&gt;Match whole words only: &lt;b&gt;unchecked&lt;/b&gt;&lt;br/&gt;Pattern: &lt;b&gt;&amp;amp;gt;]&lt;/b&gt;&lt;br/&gt;Replace: &lt;b&gt;&amp;gt;&lt;/b&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;Now @Voice will send the correct SSML encoded text to the speech engine - see attached image.&lt;a href="https://hyperionics.com/forum2/download.axd?file=0;13397&amp;where=&amp;f=SSMF_replace.png" target="_blank"&gt;&lt;img class="attachImg" src="https://hyperionics.com/forum2/download.axd?file=0;13397&amp;where=&amp;f=SSMF_replace.png" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;img src="https://hyperionics.com/forum2/post.aspx?forumID=14" /&gt;&lt;br/&gt;</description><link>https://hyperionics.com/forum2/rss-m13397.ashxFindPost/13397</link><pubDate>Thu, 13 May 2021 13:24:22 GMT</pubDate></item></channel></rss>