question

ErikBuckens-9380 avatar image
0 Votes"
ErikBuckens-9380 asked GiftA-MSFT answered

How can we use TTS when using capitals?

We have auto generated text that uses capital letters in a sentence.
Exemple :
ATTENTION, there is a FIRE reported in your street.
We need to call out this info, using Azure TTS, however the capital words are not pronounced but spelled letter by letter. Is there a way to deal with this (without changing the source program that provides us this sentence, since this is not our software.

azure-cognitive-servicesazure-text-analytics
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, thanks for reaching out. ATTENTION is pronounced as a word on my end. Can you try using the demo tool provided here? Are you observing the same issue?


0 Votes 0 ·
GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered

Hi, thanks for your feedback. 'MAINSTREET' doesn't seem to be a correct English word, it should be 'Main Street' instead. I suppose that's why it's spelled out. However, you can improve the pronunciation of the word using SSML. Below, I've defined SSML to improve pronunciation using say-as element.


<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="en-US"><voice name="en-US-JennyNeural"><prosody rate="0%" pitch="0%"><say-as interpret-as="address">MAINSTREET</say-as></prosody></voice></speak>



--please don't forget to Accept Answer if the reply is helpful. Thanks.--


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ErikBuckens-9380 avatar image
0 Votes"
ErikBuckens-9380 answered

In Dutch, we have eg streetnames in 1 word :
WIELTJESTRAAT => is spelled with TTS (meaning : not understandable)
WIELTJE STRAAT => is pronconced correct with TTS

I've tried the same in English :
MAIN STREET => is pronconced correct with TTS
MAINSTREET => is spelled with TTS (meaning : not understandable)

No idea why.... since MAINSTREET is I guess just "a normal word" as ATTENTION ?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.