Speech Synthesis Markup Language (SSML)

Description

This tutorial demonstrates how to modify speech synthesis in real-time within your text.

How To Do It

First, I need to give credit where credit is due. I didn't actually created this tutorial - instead, it was inspired and the video was created by Sebediah. I'm merely moving his information into this tutorial for others to find.

If you're looking for the thread that started this conversation, find it here: http://www.ez-robot.com/Community/Forum/Thread?threadId=10743

Sebediah figured out that you can include SSML code in your text to speak. He also created a fantastic tutorial video, which you can see below.

Here's an example of code he provided to give you a head start before the video:


#The  tag is only needed if you're going to make other changes mid-sentence, otherwise you can just use the first tag and don't need the second one after the string.

$VoiceStart = "<prosody pitch ='+230%'>"
$VoiceEnd = "</prosody>"

SayWait($VoiceStart + "When I'm tired my voice gets very deep and I speak slowly" + $VoiceEnd)


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
USA
#1   — Edited

I copied this code from the video , to my ARC, can't get it to work, have any reasons?

thanks

PRO
Canada
#2  

What errors are popping up in your debug window?

I also know that copying and pasting quotation marks sometimes has issues in EZ-script. It's just a guess but I think that sometimes the quotation marks might be entered as a double prime instead.

PRO
USA
#3  

Program runs well, only with the same voice, not high, or low , just normal

PRO
USA
#4  

@EZang60

Did you watched the video  ?

$VoiceStart = ""
$VoiceEnd = ""

The above code is incorrect (maybe a copy paste error)

look to the video screenshot:

User-inserted image

PRO
USA
#5   — Edited

Here is my code:

$VoiceStart = "<prosody pitch ='100%'>" $VoiceStart2 = "<prosody  pitch='130%'>"  $VoiceStart3 = "<prosody pitch='-50%'>" $VoiceEnd = "</prosody>"

SayWait($VoiceStart + "I am here a normal voice" + $VoiceEnd) SayWait($VoiceStart2 + "I am here a high voice" + $VoiceEnd) SayWait($VoiceStart3 + "I am here a low voice" + $VoiceEnd)

I copied the code directly from the video

Program runs well, only with the same voice, not high, or low , just normal

PRO
Belgium
#6   — Edited

Ezang your missing this key , +

PRO
Belgium
#7   — Edited

Ezang your missing this key, +

PRO
USA
#8   — Edited

@Nomad: I don't think so.

@DJ: Something is wrong with the server date ?