The Vox files are required for the Dialogic platform, but are not supported by the Simulator.
The Voice Script Manager - if you were using it - would take care of most of this for you.
Since you aren't, you will need to control this yourself. Here's how:
Before Wait for Call, have a Compare step, that compares the TeleFlow system variable @TRUNK_TYPE with the word "SIMULATED".
On the true path, create/set a Global Variable named @REC_EXT to "WAV". On the false path, create/set a Global Variable named @REC_EXT to "VOX".
On each step you play a file, substitute the file extension with the variable.
So, for example, if you play a file named "mainmenu.wav" or "mainmenu.vox", you would have a play with "mainmenu.@REC_EXT".
You must have both the vox and wav file versions of the files in the directory the application should locate the audio files in.
When using voice script manager, there is both a Simulator and Telephony field, which helps to better manage the two sets of files. (If you set your application's hardware type to Dialogic, the Voice Script Manager will record files in Wav format for the Simulator, then convert them to Vox for running on the hardware)
|