The tfile instruction identifies a talkfile.
Synopsis
tfile("application_name.pl"[," talkfile 2 "... ])
Description
The tfile instruction indicates the speech database to use for the script. The first listfile name, called application_name.pl, is the name of the primary listfile. Its talkfile number is used for the initial setalk and is used for tnum, tchar, and talk instructions if the tfile portion of the phrase ID is 0.
Each phrase in the talkfile is identified by a unique number and string in the listfile. Because the TAS uses this information, the tfile instruction must be specified in the script before the first voice output instruction.
Phrases in the primary listfile are not bound to the talkfile when the script is compiled. They are played from the talkfile currently in effect when the talk instruction is executed. However, any additional listfiles given in the tfile instruction have the talkfile and phrase number bound when the script is compiled. Phrases selected from these listfiles are not affected by changes in the talkfile that occur during script execution.
Example
In the following example, the tfile instruction specifies the file of application phrases that are used by the voice output instructions, where the applN identifier in the file name representing the application name.
MAIN:
tfile("/speech/talk/STOCKS.pl")
GREET( )
.......... ........... .............
BYE( )
See also