Retrieves an audio name.
Blueworx Voice Response library (libvae.a)
Custom Server library (libca.a)
#include "CA_header.h" #include "CA_access_db.h" int CA_Get_Audio_Name ( AUDIO_NAME_PARM_ST *audio_name_parm_sp, unsigned long start_element, unsigned long element_count, unsigned char *voice_data );
This subroutine retrieves an audio name from the Blueworx Voice Response database, based on the information provided in the AUDIO_NAME_PARM_ST input structure.
The calling routine should first use the CA_Get_Audio_Name_Info() subroutine to determine the size of buffer required to hold the complete audio name in the format in which it was recorded. For information on how to calculate the size of buffer required, see AUDIO_NAME_INFO_ST. Note that an uncompressed audio name occupies approximately 5 times more space than it would do if it was compressed.
The calling routine can then specify the starting voice element and the number of voice elements to retrieve from the database. The calling routine is responsible for passing the appropriate start element number so that the voice data is kept in sequence.
To retrieve the entire audio name with a single call to this subroutine, specify the value 1.
To retrieve the entire audio name with a single call to this subroutine, specify the same as the value of total_elements.
CA_ACCESS_NOBUFS
CA_AUDIO_NAME_NOT_FOUND
CA_END_OF_DATA_REACHED
CA_INV_ADDR
CA_INV_COMPRESSION_TYPE
CA_INV_MAILBOX_ID
CA_INV_PROFILE_ID
CA_INV_ELEMENT_COUNT
CA_INV_REQUEST
CA_INV_START_ELEMENT
CA_NO_MSG_RECV
CA_NOT_INIT
CA_OM_REQ_FAILED
CA_REQ_FAILED
CA_TERMINATING