How to undo ITN formatting in Azure Speech SDK?

Ritvij Sharma 60 Reputation points

User's image

In the above image the 4 lines are in the given order: Lexical text, ITN text, Masked ITN Text and lastly Display text.

I understand that ITN is the process that converts the "ten percent" to "10%". My question is, is there a way to convert the "ten" to "10" but not the "percent"? I don't want the ITN formatting to happen for words like "percent", "dollar" etc. but I do want it to happen on numbers and other things.

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

1 answer

Sort by: Most helpful
  1. dupammi 7,955 Reputation points Microsoft Vendor

    Hi @Ritvij Sharma ,

    Thank you for using the Microsoft Q&A forum.

    To address your query, you can use the "format" query parameter to specify the output format of the API response. By default, the API response is in "Simple" format, which includes only the recognized text. However, you can use the "Detailed" format to obtain N-Best results in JSON format.

    By specifying the "Detailed" format query parameter, the API response will include all the available text formats, such as "Display", "ITN", "Lexical", and "MaskedITN". The "ITN" format will display numbers as numerical values instead of text. You can retrieve this response from the API and integrate it into your application.

    You can find a comprehensive list of all the supported query parameters for the Speech-to-text on this page

    Thank you!

    I hope this helps.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful.