Command Line Simulator

The command line simulator is used to test applications without actually using the telephone. It is a light weight program that does not do speech recognition and text-to-speech. However, it does play the audio file though computer speaker.

The simulator is released as a java jar file: vxsim.jar. It is under the tool directory of the SDK release directory.

Running the command line simulator

To run the command line simulator, type the following command in a Windows Command window:

java -jar vxsim.jar [starturl]

where [starturl] is the start vxml file location. If it is not specified, then the default start vxml of the gateway is used.

Please make sure you have Java installed correctly on your machine.

Example

The following is a typical run of the timeofday sample of the tutorial using the command line simulator.

> java -jar vxsim.jar http://localhost:8155/td/timeofday.jsp

Playing prompt...

TTS: 11:48 AM
Playing prompt...

Set-Grammar: action=set; type=grammar; name=; cfg=pacific time | mountain time | central time | eastern time

 
> pacific time
Playing prompt...

TTS: 11:48 AM, Pacific Standard Time
Playing prompt...

Set-Grammar: action=set; type=grammar; name=; cfg=pacific time | mountain time | central time | eastern time


>
no more utterance

Exception

To simulate a VoiceXML exception, type in the following:

exception.help
exception.noinput
exception.nomatch
exception.cancel
exception.exit

 

Problem

If you have an error: "Cannot connect to Voicent Gateway", it is because the simulator is trying to connect to a specific gateway port but the port is somehow not available. You can work around this problem by restarting the gateway or reboot your machine.

 

 

Previous Table of Contents