Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

talkresume

The talkresume instruction starts playing queued phrases at a specified point.

Synopsis

talkresume(type.offset)

Description

The talkresume instruction plays whatever phrases remain from the last tflush instruction starting at the point they were interrupted (that is, by talk off) plus the given offset in seconds. If the offset is a positive number, speech is played from a point after the interruption. If the offset is a negative number, speech is played from a point before the interruption. If the offset is 0, play starts at the point where the interruption occurred. If VROP has played all of the phrases, only a negative offset has any effect.

The talkresume instruction stores a return value in register 0. If the value is negative, an error has occurred. If the value is 0, play completed successfully. If the value is +1, the play complete was caused by talkoff. If the value is +2, there was no speech left to play (that is, talkresume was given with a non-negative offset when VROP had already played all the speech).

For talkresume to work properly, the speech it affects must have been played originally with the tflush instruction with the optional remember_flag argument set to 1. This tells VROP to remember the speech that tflush tells it to play and to keep track of where that speech is interrupted. Subsequent calls to talkresume then have the desired effect on this speech. VROP remembers the speech it was playing until it receives another set of phrases to play by subsequent script instructions. Only one set of phrases can be remembered per channel at a time.

Example

In the following example, the script is instructed to skip ahead four seconds, then resume talking.

talkresume(4)

© 2006 Avaya Inc. All Rights Reserved.