Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

talk

The talk instruction speaks one or more phrases.

Synopsis

talk(type.src [,type.style])

Description

The talk instruction uses the type.src argument to specify the phrase to be spoken. The second optional argument is the coding style of the speech to play back.

When talk (as well as tchars and tnum) instructions are executed, the system queues phrases in a buffer, but the phrases are not immediately played. Phrases are played under one of the following three conditions:

Example

In the following example, the GREET subroutine is called on to say two introductory phrases from the talkfile specified in the setalk instruction. It then calls on a subroutine to speak the final phrase contained.

MAIN:
setalk(30)
GREET( )
........... ............... ............
BYE( )

GREET:
talk(10)
talk(11)
indirect_talk(50)
............ .............. ........
rts( )
indirect_talk:
talk(r.3)
rts( )

See also

© 2006 Avaya Inc. All Rights Reserved.