Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip some section of text while speaking using SSML

Is there some SSML tags etc, to remove a particular line of text from speaking. Yes, I know I can remove this using string functions, before sending it to the speech synthesizer. But my question is, is there any way to mark or tag some text, so that it won't play. I am looking for some XML based solution for this issue.

like image 915
Priyank Bolia Avatar asked Feb 03 '09 20:02

Priyank Bolia


2 Answers

There are so many ways, you should clarify what you want to accomplish.

Maybe one of these will help you:

   1. standard XML comment <!-- -->
   2. <sub alias=" "> your text </sub>
   3. <audio src='short_silence.wav'> your text </audio>
   4. <prosody volume='silent'> your text </prosody>
like image 90
Jiri Avatar answered Sep 28 '22 07:09

Jiri


I'm wondering if XML commenting is a valid solution for what you're trying to accomplish:

<!-- <say-as interpret-as="telephone" format="39">+39.347.7577577</say-as> -->

Or:

<say-as interpret-as="telephone" format="39"><!-- +39.347.7577577 --></say-as>

Hope this helps.

like image 21
Luca Matteis Avatar answered Sep 28 '22 09:09

Luca Matteis