Use PlayAudioName to play the digitized voice data that speaks the name associated with an application profile ID and a mailbox ID.
PlayAudioName can play back an audio name either from the temporary workspace in which the system holds it until it is saved or from disk.
For this action to succeed, the voice channel must already be connectedthis is achieved through the successful completion of either an AnswerCall or a Makecall action. For an incoming call, the voice channel can also be connected prior to an AnswerCall action, if the system parameter Connect Voice Channel Before Answer is enabled (this parameter is only available if you are logged on as field).
It is not necessary to set any system variables before using PlayAudioName. Do not save data at the same time it is being played. If you do so, the Play action will fail.
While an audio name is playing, the caller can press keys to fast-forward, pause, reverse, or stop. System parameters in the Application Server Interface parameter group set these keys as follows:
Activity |
Default Key |
System Parameter |
---|---|---|
Fast forward |
9 |
Forward Key |
Pause |
8 |
Pause Key |
Reverse |
7 |
Reverse Key |
Stop |
* |
Stop Key |
In addition, system parameter SV183 can be used to specify other DTMF keys that can stop the action. See System: Play/Record: Alternate stop keys (RW) (SV183) for more information.
To resume after a pause, the caller must press the pause key again. If the caller does not resume after pressing the pause key (by pressing the pause key again), playing continues when the pause times out. The pause time out is configurable using the Play/Record Voice Maximum Pause (seconds) system parameter in the Blueworx Voice Response parameter group. The default value is 10 seconds.
When interrupt by voice detection is active, the caller can interrupt PlayAudioName by speaking.
If a fax tone is detected, the action is terminated.
PlayAudioName can be used with background music to produce a voice-over effect.
Notes:
The parameters for PlayAudioName identify the audio name to play and where it is located. This action plays an audio name either from workspace (Voice in Workspace) or from disk (Voice on Disk). If the voice data is in workspace, there are no parameters. If the audio name is stored on disk, the parameters are:
PlayAudioName can have one of the following results:
When using an ASCII editor, code this action with these parameters in the following order:
Or:
For example:
label: "Check Edges" PlayAudioName("IN_WORKSPACE") edge EDGE_PLAYVCE_COMPLETED: completed edge EDGE_PLAYVCE_LINE_PROBLEM: line_problem edge EDGE_PLAYVCE_NOT_FOUND: not_found edge EDGE_HUP: hup ; PlayAudioName("ON_DISK", SV20, SV108); # SV20...Caller Profile ID # SV108...Greeting ID
The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.