Support for Java applications
in releases of Version 3 of Blueworx Voice Response for AIX
was based on the JavaBeans supplied with those versions. These applications
will run unchanged on the current release of Blueworx Voice Response. However,
for all new applications, it is recommended that you use the Java
API. The Java API provides all the functionality of the JavaBeans,
but offers a cleaner interface and improved reusability. The Java
API also uses an exception model instead of the event model used by
the beans.
There is some additional functionality in the Java API that was
not available using JavaBeans:
- The Playable interface allows you to make any data item
presentable to the caller: for example, the name, date of birth, and
salary retrieved from an employee record in a database could be spoken
as TextToSpeech, AudioDate and AudioCurrency items
respectively.
- You can specify the beep for recording or speech recognition,
for example, as a spoken instruction ("please start recording").
- You can import and export voice segments at runtime.