How can we use TTS when using capitals?

Erik Buckens 21 Reputation points
2022-03-28T14:21:21.443+00:00

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 AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
376 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,529 questions
{count} votes

Accepted answer
  1. GiftA-MSFT 11,161 Reputation points
    2022-04-05T19:20:12.737+00:00

    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.--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Erik Buckens 21 Reputation points
    2022-03-29T07:15:59.81+00:00

    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 ?

    0 comments No comments