Share via

Custom Speech Model documentation incorrect vs image on Microsoft website

Dave Revell 1 Reputation point
2024-09-10T20:13:25.0433333+00:00

Azure Speech Support,

The image showing the order the custom ITN is applied is different than the text explanation below.

https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-custom-speech-display-text-format

The image show lexical -> Custom ITN -> Microsoft Default ITN -> Capitalization -> Profanity -> Custom Profanity -> Rewrite

The text below the image says:

Microsoft Default ITN -> Custom ITN which is opposite

Questions:

  1. Which order are the rules applied?
  2. Also, what is the order of when the Custom Pronunciation and/or the Structured Text Phonetic is applied?
  3. If there are multiple Custom ITN rules that would apply, does only one get applied?
  4. If allowing multiple Custom ITN rules to a phrase, is the order of how they applied the same as in the text file (see example below)

Example:

(\d(\d)?(\d)?(\d)?)(.(\d(\d)?(\d)?(\d)?))?({ to >-}|{ through >-})(\d(\d)?(\d)?(\d)?)(.(\d(\d)?(\d)?(\d)?))?({percent>%}|{centimeters squared> cm2}|{cubic centimeters> cm3}|{centimeters> cm}|{centimeter squared> cm2}|{cubic centimeter> cm3}|{centimeter> cm}|{cubic meters> m3}|{meters> m}|{meter> m}|{millimeters squared> mm2}|{cubic millimeters> mm3}|{millimeters> mm}|{millimeter> mm}|{milliliters> mL}|{milliliter> mL})

It would be cleaner to have this as 3 different statements but when testing:

'The tumor is fifteen point five to twenty point two millimeters'

it appears only one gets applied when testing.

(\d(\d)?(\d)?(\d)?)(.(\d(\d)?(\d)?(\d)?))?({ to >-}|{ through >-})

({ to >-}|{ through >-})(\d(\d)?(\d)?(\d)?)(.(\d(\d)?(\d)?(\d)?))

({percent>%}|{centimeters squared> cm2}|{cubic centimeters> cm3}|{centimeters> cm}|{centimeter squared> cm2}|{cubic centimeter> cm3}|{centimeter> cm}|{cubic meters> m3}|{meters> m}|{meter> m}|{millimeters squared> mm2}|{cubic millimeters> mm3}|{millimeters> mm}|{millimeter> mm}|{milliliters> mL}|{milliliter> mL})

Azure Speech in Foundry Tools

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,625 Reputation points Microsoft Employee Moderator
    2024-09-19T08:02:48.76+00:00

    @Dave Revell Apologies for the late reply.

    .

    In this documentation, as you rightly pointed out the image is correct and the text is wrong, in that custom ITN applies before default ITN.

    I also believe our Product Owners are discussing this issue with you internally over email.

    .

    I have asked the Product Owners to update the documentation accordingly.

    Hope this answers.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    0 comments No comments

Your answer

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