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. Figure 1 gives
an overview of some of the more important classes and methods in the Java
API.
- The WVR class and its methods represent the Blueworx Voice Response system
and its interactions.
- The Call class and its methods interact with and manipulate telephone
calls through actions such as playing audio (the play() method),
recording the caller (the record() method), getting input (the playAndGetInput() method) and also by performing telephony functions,
for example:
- the getCalledNumber() and getANI() methods, which provide called and calling number information to the
application
- the consult(), conference(), transfer(), blindConference(), and blindTransfer() methods, which provide call transfer and
conference call facilities.
- The PlayAttributes class specifies whether the caller can interrupt
the messages played as part of a voice or DTMF input.
- The MenuAttributes class defines a menu that the caller can select
a choice from. Each choice contains a label to identify the choice to the
application, a message to announce the choice to the caller, a DTMF selector
key and a selector word.
- The InputAttributes class specifies how a caller is to be guided
through giving an input, and how their input should be validated.
- The DTMFAttributes class specifies how a caller can use their
telephone keypad to give input.
- The RecoAttributes class specifies how a caller can speak to
the application to give input.
Figure 1. Overview of some of the more important Blueworx Voice Response Java
API classes