VoiceSpeak

The VoiceSpeak instruction is used to define the voice string that should be spoken by the voice modem.

Syntax

VoiceSpeak ( "String" + Variable + "String"…, Precision )

Remarks

When the VoiceSpeak instruction is added to a program, a list box containing the words of the Voice.txt file is displayed. Only words contained in this list (and defined variables) can be used in voice messages. The text string to be spoken is created by double-clicking words from the list, which adds them to a field at the top of the word list dialog. Variables are inserted within the text string by entering a + sign, the variable name, followed by a + sign if additional text follows. Once the message is complete, press the Insert button to insert the instruction into the program. Note that all non-variables in the String must be enclosed in quotes or an error will be returned when the program is compiled.

NOTE: When creating code for voice modems, the VoiceKey instruction should be used to add a delay before the EndVoice instruction is executed. Otherwise, the datalogger will end the VoiceSpeak command before the spoken message is completed.

Parameters

"String"

Defines the message that will be spoken by the voice modem. The spoken string is comprised of words from the Voice.txt file and variables. The words are enclosed with quotes, and the variables are concatenated with the words using a plus sign (e.g., "The temperature is" + Temp(1) + "degrees").

Type: Strings and Variables

Precision

Indicates the number of places to the right of the decimal that will be used for variables in the spoken message.

Type: Constant or Integer