boolean grammar
Collects an affirmative or negative response.
Return keys/values
Key |
Value |
---|---|
MEANING |
Contains "true" or "false" regardless of the active language. |
SWI_literal |
Contains the exact text that was recognized. |
Properties
The y and n properties let you associate any two touchtone buttons as synonyms for yes and no.
Property |
Description |
---|---|
y |
Desired DTMF digit to be equivalent to "yes" (default = 1) |
n |
Desired DTMF digit to be equivalent to "no" (default = 2) |
Example
builtin:grammar/boolean?language=en-US;y=1;n=2