Using the Digit File Grammar Format

The Digit File Grammar Format (“.digit”) is based on a Java Properties File, in which keys are defined as “dtmf-x”, where “x” is from the set “0123456789*#ABCD” or one of “star” or “pound”, where values are the corresponding tag to be returned when a key is pressed or recognized.

You can also use an optional entry defined as “word=true” to specify that the word representation of each DTMF digit should be automatically included during a recognition.

For example:

word=true
dtmf-star=bye
dtmf-4=4