Certain applications may require the pitch, pace, or other properties of text-to-speech output to be modified dynamically while the Call Tree executes. These and other properties can be modified while text is spoken by inserting special markers called "control tags" in the text that will be spoken.
Note: the RealSpeak (TM) Text-to-Speech engine does not support SAPI control tags - it has its own control sequences. Refer to the section on the RealSpeak (TM) Control Sequences for details.
Control tags are inserted into the spoken text between "\" (backslash) character. The most frequently used control tags are as follows:
Each of these control tags and their usage is discussed below.
Control tags can be used to modify speech in prompts (on the Question tab) or when using Speak variables. The examples below show use of control tags to modify Speak variables in macros, but the usage is the same when changing question prompts.
Pau: Pause Speaking
Pauses for the number of milliseconds specified.
Speak1 = "1 second \Pau=1000\ " + _
"2 seconds \Pau=2000\ Done."
Pit: Change the Speaking Rate
Sets the pitch of the text-to-speech mode to the specified value in hertz.
Speak1 = "\Pit=60\ I'm talking low pitched."
Speak2 = "\Pit=120\ I'm talking high pitched."
Spd: Change the Speaking Rate
Sets the average talking speed of the text-to-speech engine to the specified number of words per minute.
Speak1 = "\Spd=100\ I'm talking slowly."
Speak2 = "\Spd=150\ I'm talking quickly."