Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Voice output instructions

In this section, instructions that control speech output are described. These instructions send voice data to the telephony cards. Each description is followed by a brief example using that instruction. An example at the end of this section illustrates how the instructions described here might be used in a script.

Note:
The tnum instruction does not interpret numeric values in any language other than English because the rules for concatenating numbers varies depending on the language. The Enhanced Basic Speech package currently includes numbers 1-20, 30, 40, 50, 60, 70, 80, 90, 100, 1000, and 10000. This method forms numbers by combining these standard phrases.

The tnum instruction uses the same arguments for inflection as the tchars instruction.

The tnum instruction does not support speaking numbers in the billions and trillions because most of these numbers are too big to fit into an integer variable. However, the phrases billion and trillion are included in the Enhanced Basic Speech package. If your script requires such large numbers, we suggest that you start with an ASCII string, parse the string (getting the amounts of billions and trillions as substrings), then convert the three resulting substrings to integer values and speak them with the tnum instruction. Insert a talk instruction with the phrase for trillion or billion, where appropriate.

In the following example, the tnum instruction tells the script to speak the numeric value of int.FOUR with falling inflection on the last character and medial inflection on all other characters:

load(int.FOUR, 4)
tnum(int.FOUR,'f')

Note:
In the second example, any touch tones entered are encoded along with the speech.

Note:
The talkresume instruction cannot be used to resume TTS play.

In This Section

Sample script using voice output Instructions

� 2002 Avaya Inc. All Rights Reserved.