The setalk instruction specifies a new talkfile.
Synopsis
setalk(type.talk)
Description
The setalk instruction is used to specify a new talkfile. The argument, type.talk, is the id of the new talkfile. Do not use a character data type as the type.talk argument.
After setalk is executed, the previous talkfile id is returned in register 0 and can be saved for future use.
The setalk instruction overrides the talkfile number that is contained in the first listfile specified in the tfile instruction.
Example
In the following example, the new talkfile is set to talkfile 25. The phrase number 210 spoken by the talk instruction refers to the speech phrase encoded in talkfile 25.
setalk(25)
talk(210)
See also