Reply to post

[FAQ]Entering SSML instructions directly into the text or HTML files to be read aloud by @Voice

Author
Admin
Administrator
  • Total Posts : 275
  • Reward points: 0
  • Joined: 2010/11/22 00:00:00
  • Location: USA
  • Status: offline
2021/05/13 13:24:22 (permalink)

Entering SSML instructions directly into the text or HTML files to be read aloud by @Voice

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 < character into its HTML encoding: “&lt;” and similarly > will be converted into “&gt;”. So these characters should have been converted back to < or >, but only for SSML instructions. You may use the following workaround:
 
When you want to enter any SSML instruction - let’s use the simplest as an example: the break SSML instruction:
 
                Some test to speak <break time=”2000ms”/> and some more text after it.
 
Edit your original file and change the < and > characters for SSML instructions to something else, something unique, for example to “[<” and “>]” sequences:
 
                Some test to speak [<break time=”2000ms”/>] and some more text after it.
 
Now add the following two speech replacements in @Voice Edit speech function:
 
Type: Case Sensitive
Match whole words only: unchecked
Pattern: [&lt;
Replace: <
 
and
 
Type: Case Sensitive
Match whole words only: unchecked
Pattern: &gt;]
Replace: >
 
Now @Voice will send the correct SSML encoded text to the speech engine - see attached image.

post edited by Admin - 2021/11/20 15:36:02

Attached Image(s)

0 Replies Related Threads

    Jump to:
    © 2024 APG vNext Commercial Version 5.1