Telephone Number

The Telephone Number generator type supports only one constructor: (String number). The parameter “number” is a String object specifying the telephone number to be played out as a sequence of digits.

The character is replaced with 250 ms of silence if the string contains any of the following characters: “ - ( ). Otherwise, the string is automatically formatted.

Automatic formatting of the string inserts 250 ms of silence between sections of digits. These sections follow the following rule: “XXX-XXX-XXX-XXXX” unless there are exactly five digits in the string, in which case the string is considered to be a single section of five digits.

An “x” character is played back as “Extension”. DTMF digits (“ABCD0123456789#*”) are played back normally.

A string of the form “*xx” where x is a Dual Tone Multi-Frequency (DTMF) digit (“0123456789”) is played back as “star xx” (for example,“*69” is played back as “star sixty-nine”).