In this example using voice output instructions, the script tells TAS to use the stocks.pl speech database for this transaction, then welcomes the caller to the application. The script plays the special announcements, which cannot be interrupted by touch tones, because of the tflush instruction. The script asks for the caller account number and repeats for the caller what has been entered. The script tells the caller how many shares they own based on the value stored at address VOLUME.
MAIN:
#define VOLUME 0
#define INITIALS 4
--
--
--
tfile("stocks.pl")
talk("Welcome to our stock quote system")
talk("A special announcement: our service will be offered 24-hours a day")
tflush(1)
talk("Please enter your account number")
--
--
--
talk("Your initials are")
tchars(ch.INITIALS)
talk("You currently own")
tnum(int.VOLUME)
talk("shares of Acme Incorporated.")
--
--
--