In a Java application,
the sequence of events is determined by the ordering
of statements in the program.
The Blueworx Voice Response Java
API includes classes and methods representing the Blueworx Voice Response system,
and also the components of a typical voice response application.
- WVR methods represent the Blueworx Voice Response system
and its interactions.
- Call methods
interact with and manipulate telephone calls through
actions such as playing audio play(), recording
the caller record(), getting input playAndGetInput()and
also by performing telephony
functions:
- getCalledNumber() and getANI(), which provide
called and calling number information to the application
- consult(), conference(), transfer(), blindConference(),
and blindTransfer(), which provide call transfer and conference
call facilities.
- PlayAttributes specifies
the way that greetings, messages, notices
and so on to are to be played.
- MenuAttributes allows
a caller to press keys or say command words,
to select an option. It handles all the usual error conditions: time-out,
invalid key entered, and so on. Both the voice description for the
item, and
the telephone key or speech recognition word that is associated with
selecting
it are included.
- InputAttributes allows
the caller to enter data, by pressing
keys or speaking. The InputAttributes includes both the voice description
and the length of time allowed, and, if necessary, the key to be recognized
as an Enter key. The class has a validator to allow checking
for
various formats: currency, date, credit card number, and so on.
- DTMFAttributes specifies
the maximum number of DTMF keys allowed,
and the valid DTMFtermination keys.
- RecoAttributes specifies
the context which identifies the grammar
for speech recognition, the maximum number of possible recognition
results
to return from the recogniser, and whether or not a tone is played
to indicate
when recognition begins.