Previous Topic: LOAD CommandNext Topic: PLAYGETDIGITS Command


PLAY Command

The PLAY command plays voice data (prerecorded speech) through a specified voice channel. The voice data can exist in one of these formats:

This command has the following formats:

Use the following format to play a message from a nonindexed voice file:

ADDRESS VOX "PLAY CHANNEL(channelhandle)
  FILE(filename_1 [...filename_n])
  FILETYPE(NONINDEX)
  [SYSTEM(sysname)]
  [INTERRUPT(YES|NO)]"

Use the following format to play a message from a voice word library file:

ADDRESS VOX "PLAY CHANNEL(channelhandle)
  FILE(filename)
  FILETYPE(WORDLIB)
  VAR(varname)
  [SYSTEM(sysname)]
  [INTERRUPT(YES|NO)]"
CHANNEL

Specifies the channel handle (channelhandle)-identifying some physical channel-that the GETCHANNEL command returns.

FILE

Specifies the name of a voice file or voice word library.

FILETYPE

Specifies the type of voice file to play. Valid values are:

Note: When specifying FILETYPE(WORDLIB), do not include a file extension on the FILE operand.

Default: NONINDEX

VAR

This operand is required only when specifying a voice word library on the FILETYPE operand.

For a voice word library, code either a REXX regular variable or stem variable. When coding regular variables with the VAR keyword, only that variable is searched.

With a stem variable, all numeric indexes for this stem will be searched. When coding a stem variable, "varname." should follow this format:

SYSTEM

(Optional) Specifies the name of the system that is running the notification server to which you want to direct the command. The sysname value can contain up to eight alphanumeric characters.

Default: The local system name

INTERRUPT

(Optional) Specifies whether CA Automation Point interrupts a currently playing voice message if it receives a tone digit (that is, if the remote party presses a key on the telephone keypad). Valid values are:

YES

Allows the interruption.

NO

Prevents the interruption.

Default: YES

Return Information:

After the PLAY command executes, it sets the special REXX return code variable RC.

Usage Notes:

You can use the PLAY command to play voice messages through a voice channel connected to an amplified speaker attached directly to the voice card's analog expansion bus (with pins GND and AUD1-AUD4).

Examples: