We proudly introduce the usage of SSML for our Voice API!
From now you have all the options for adapting your text messages to speech. Set pauses, read numbers correctly or their individual digits, reduce speeds for codes and even select different voices such as female, male, or even child! Let us get the maximum out of your >seven voice experience!
Let's take a look at some examples.
Let Brandon speak it like that and read numbers slowly for better understanding:
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
<voice name="en-us-male">
Your access code is:
<prosody rate="slow">
<say-as interpret-as="number_digit">967354</say-as>
</prosody>
</voice>
</speak>
Listen to the result here: https://youtu.be/l-FufBblX5s
With SSML you have the possibility to select different kinds of Voices, like Women, Men, Children and even specialized for different languages, like English dialects, French, Arabic, Asian, Croatian or even Russian. You just send the voice with language tag and we build the SSML automatically to end up like this. So you can take care of yourself and we will generate the SSML requirements around it. The content part coming from you is then only beginning with the paragraph with your sentences.
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
<voice name="en-gb-child">
<lang xml:lang="en-gb">
<p>
<s>Hello, this is the audio book of the little girl with the red balloon!</s>
<s>I have them read to me every night to fall asleep.</s>
</p>
</lang>
</voice>
</speak>
Listen to the result here: https://youtu.be/ZxvpZTVGO0s
With >seven voice you can also vary the voices inside your text. This way can realize dialogs between a women and man, or with us - even a child. Let’s take a look at the following example:
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
<voice name="en-us-child">Hi, where did you buy these sunglasses? I think my mum would love them.</voice>
<voice name="en-us-female">Hello, i just bought them in the shop over there.</voice>
</speak>
Listen to the result here: https://youtu.be/hts7CwenJiE