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)]"
Specifies the channel handle (channelhandle)-identifying some physical channel-that the GETCHANNEL command returns.
Specifies the name of a voice file or voice word library.
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
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:
(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
(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:
Allows the interruption.
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:
/* Get exclusive access to a specific voice channel. */
address vox 'getchannel channelnum(1) prefix(handle)'
...
/* Play messages from nonindexed voice files. */
address vox 'play channel('handle') file(greeting.vox mainmnu1.vox mainmnu2.vox)'
...
/* Release the voice channel. */
address vox 'releasechannel channel('handle')'
/* Get exclusive access to a specific voice channel. */
address vox 'getchannel channelnum(1) prefix(handle)'
...
/* Play messages from an indexed file. */
greeting = 1
mainmenu1 = 2
mainmenu2 = 2
...
messages.0 = 3
messages.1 = greeting
messages.2 = mainmenu1
messages.2 = mainmenu2
address vox 'play channel('handle') file(helpdesk.vap) filetype(index) var(messages.)'
...
/* Release the voice channel. */
address vox 'releasechannel channel('handle')'
/* Get exclusive access to a specific voice channel. */
address vox 'getchannel channelnum(1) prefix(handle) '
...
/*Play messages via the VOX Word Library. */
messages.0 = 4
messages.1 = "System"
messages.2 = "IMS"
messages.3 = "Is"
messages.4 = "Down"
address vox 'play channel('handle') file(voxm_a) filetype(wordlib) var(messages.)'
...
/* Release the voice channel. */
address vox 'releasechannel channel('handle')'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|