How to convert numbers with large digits more that 6 in words with text to speech API?

Amit Samuel 0 Reputation points
2023-02-01T13:35:06.3066667+00:00

Azure TTS API is able to convert the number in words that is less than and equal to 6 digits, but not those numbers that have digits more than 6, i.e. API is able to convert Rs 235768 to Two Lakh Thirty Five Thousand Seven Hundred Sixty Eight, but it does not able to convert 2235768, it simply speaks digits one by one.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,131 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,566 Reputation points
    2023-02-10T03:36:02.6366667+00:00

    Hi @Amit Samuel , Thanks for using Microsoft Q&A Platform.

    Have you tried with Speech Synthesis Markup Language (SSML). The say-as element helps in text pronunciation.

    Here is a currency interpretation example. If you haven't tried it yet, please do so and let us know how that works.

    User's image

    Please include more information, how you are actually trying these using the REST API or any specific SDK or in studio.

    I hope this helps.

    Regards,
    Vasavi

    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.