The irTF2File(3IRAPI) and irFile2TF(3IRAPI) functions provide a mapping to and from old talkfile/phrase_id numbers and file names. Mapping depends on the IRP_SPEECHDIR global parameter setting. Assuming IRP_SPEECHDIR is set to /home2/vfs/talkfiles, the talkfile/phrase_id pair (100,200) is mapped to the file name /home2/vfs/talkfiles/100/200 via irTF2File. Assuming IRP_SPEECHDIR as above, the filename /home2/vfs/talkfiles/100/200 is mapped to the talkfile/phrase_id pair (100,200) via irFile2TF. If an existing application has speech stored according to talkfile/phrase_id pairs, irFPlay(3IRAPI) and irTF2File may be used together as follows.
if (irFPlay(cid, 0, irTF2File(talkfile, phrase_id)) == IRR_FAIL) {