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:
- Which order are the rules applied?
- Also, what is the order of when the Custom Pronunciation and/or the Structured Text Phonetic is applied?
- If there are multiple Custom ITN rules that would apply, does only one get applied?
- 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})