phone grammar

Collects telephone numbers (landline and cellular), including extensions.

See the appropriate Language Supplement for local telephone formats. Some languages accept natural numbers ("eight hundred…") as well as digit strings ("eight zero zero").

Return keys/values

Key

Value

MEANING

Contains the recognized phone number as a string of ISO-8859-1 digits, with no embedded spaces.

SWI_literal

Contains the exact text that was recognized.

Properties

See the Language Supplement for any properties (such as telephone extensions) for this grammar.

DTMF interpretation

DTMF keys are interpreted according to the VoiceXML specification.

Example

builtin:grammar/phone?language=en-US