Indexed Prompt Files (IPFs)
Previous Topic  Next Topic 

Indexed prompt files (IPF) are single files that contain a number of different voice prompts.    The top of the files contains an index giving byte offset and length of each prompt in the file.       The purpose of index prompt files is to provide a more efficient way of building up voice messages from multiple prompts and is used primarily for speaking dates, times, numbers etc.           Since the index prompt file is a single file then it only needs to be opened one at startup,  thereafter it can be referred to by an Ipf_id number in the SMword(), SMplayph() and SMplaypr() functions.           


The list of IPF files to open at startup is found in a file called PR.PAR which is created from a text file called PR.DEF which is converted to the PR.PAR file using the MKPR.EXE utlity.       The PR.DEF has the following format:


<IPF_Id> <IPF filename>


The <IPF_Id> defines the Index Prompt File ID number and must range from 1 upwards.       For example the following is a valid PR.DEF file


1 ENGLISH.IPF

2 ARABIC.IPF

3 JAPANESE.IPF

4 MANDARIN.IPF

5 CANTONESE.IPF


The above file defines five Indexed prompt files and the IPF_Id for each.  Presumably the above PR.DEF defines IPF files that hold the prompts needed to make up dates, times, numbers etc in various languages.        To turn this in to the PR.PAR file then the utility MKPR.EXE should be run from the command line in the directory where the PR.DEF file exists.


Upon startup the CXACUDSP.DLL library will use the PRDIR environment variable to find the path of the PR.PAR file (or will look in the current directory if PRDIR is not set), and if it exists it will open the IPF files listed.        If any of the IPF files listed in the PR.PAR file do not exist then the CXACUDSP.DLL will cause the Telecom Engine to quit with an error message.