IVR Software Library
IVR Utility Routine Descriptions
The following routine or parameter is maintained in the PACER and WIZARD IVR software library. These routines are developed for programmers who are creating and managing IVR application programs.
IVR programs can be written in C/C++ on Windows, Unix and Linux operating environments.
ivr_speak_address()
int
ivr_speak_address(int call,char *text, int allow_interrupt)
The
ivr_speak_address function speaks an address to the specified call. It
attempts to read the from a series of wave files, stored in the
"Address" folder. If part of the address can not be found, such as a
street name, it is then read with standard text-to-speech. You can re-record
the address waves already in this folder, or add new files (with lower-case
names) such as "prkwy.wav" for Parkway or "central.wav" for
Central.
Parameters
int
|
call
|
Specifies which call to speak to.
It can be one of the following values.
CALL_PRIMARY: Speak to Primary Call
CALL_SECONDARY: Speak to Secondary Call
|
char *
|
text
|
the address to be read
|
int
|
allow_interrupt
|
Specifies if a digit can interrupt the
address.
It can be one of the following values.
NO_INTERRUPT: Do not allow reading to be interrupted by a digit
INTERRUPT: Allow reading to be interrupted by a digit
|
Return Value
Returns
IVR_SUCCESS on a successful function call. On error the function returns one
of the IVR
Error Codes.
Example
ivr_speak_address(CALL_PRIMARY, "8902 N. 19th Ave.
Apt #3093", INTERRUPT);
|