Lexicons and Command Grammars

If you have a command grammar, and you need a word with an unusual pronunciation, you can use the PRON attribute of the <PHRASE> tag to specify a pronunciation using either a phoneme representation or an explicit array of PhoneIDs (phoneme identifiers) that you have extracted from the SpPhoneConverter (the SAPI default converter between phoneme symbols and phoneme IDs).

If you use the PRON attribute for a phrase, you will also want to use the DISP attribute as well to specify a display form, or else the textual representation of the phrase (in the SPPHRASE structure) and the text feedback will use the phoneme set.    If you’re not providing text feedback (and you’re using an in-process recognizer), then this will not be a problem.

Comments (0)