Ignoring the default lexicon

timikoponen 1 Reputation point
2021-04-24T08:52:39.743+00:00

Hello, I'm making an app in which I would like to ignore the default lexicon in the text-to-speech service.

Testing with the ssml tag <lexicon uri="string"/>, I was only able to add more items to the lexicon and not completely replace it with an empty one.
https://video2.skills-academy.com/en-us/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp

Also the <say-as interpret-as="characters"> does not accomplish what I'm after.

In a more detail, when I'm using the finnish voice "fi-FI-NooraNeural" and using the text-to-speech to read out "ma", it is spoken out as "maanantai" (monday). But I would like it to be read just as "ma" without the lexicon replacing the default abbreviations.

Is there a way to disable the lexicon or to completely override it? Either disabling the lexicon as a property or with some option in the ssml tag, both options would work.

Thanks!

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,657 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,166 Reputation points
    2021-04-26T22:30:12.583+00:00

    Hi, I don't think there's a way to remove the default lexicon. However, when you add custom lexicon, it would replace the pronunciation. Also, can you try adding an alias such as "maa", does it change to the desired pronunciation?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.