public class PlayRecordContext extends Object
| Constructor and Description |
|---|
PlayRecordContext(Map<String,String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttempt() |
boolean |
getClearDigitBuffer()
If set to true, clears the digit buffer before playing the initial prompt.
|
char |
getEndInputKey()
Specifies a key that signals the end of digit collection or voice recording.
|
Playlist |
getFailureAnnouncement() |
Playlist |
getInitialPrompt() |
boolean |
getNonInterruptibleAudio()
If set to true, initial prompt is not interruptible by either voice or digits.
|
Playlist |
getNoSpeechReprompt() |
int |
getNumberOfAttempts()
The number of attempts the user needed to enter a valid digit pattern or to make a recording.
|
char |
getPositionKey()
Defines a key with the following action.
|
int |
getPostSpeechTimer()
The amount of silence necessary after the end of the last speech segment for the recording to be considered complete.
Specified in units of 100 milliseconds. |
int |
getPreSpeechTimer()
The amount of time to wait for the user to initially speak.
Specified in units of 100 milliseconds.Defaults to 30 (3 seconds). |
String |
getRecordId()
Gets the path where the recording will be stored.
|
char |
getReinputKey()
Defines a key sequence consisting of a command key optionally followed by zero or more keys.
|
Playlist |
getReprompt() |
char |
getRestartKey()
Defines a key sequence consisting of a command key optionally followed by zero or more keys.
|
int |
getReturnCode() |
char |
getReturnKey()
Defines a key sequence consisting of a command key optionally followed by zero or more keys.
|
char |
getStopKey()
Defines a key with the following action.
|
Playlist |
getSuccessAnnouncement() |
char |
getTone() |
int |
getTotalRecordingLengthTimer()
The maximum allowable length of the recording, not including pre or post speech silence.
Specified in units of 100 milliseconds. |
boolean |
hasFailureAnnouncement() |
boolean |
hasMoreAttempts() |
boolean |
hasRecording()
Gets whether the recording file exists in the file system.
|
boolean |
hasSuccessAnnouncement() |
boolean |
isSpeechDetected() |
protected void |
newAttempt()
Resets the collected digits and increments the attempts counter.
|
protected void |
setReturnCode(int returnCode) |
void |
setSpeechDetected(boolean speechDetected) |
void |
setTone(char tone) |
public Playlist getInitialPrompt()
public Playlist getReprompt()
public Playlist getNoSpeechReprompt()
public Playlist getFailureAnnouncement()
public boolean hasFailureAnnouncement()
public Playlist getSuccessAnnouncement()
public boolean hasSuccessAnnouncement()
public String getRecordId()
public boolean hasRecording()
public boolean getNonInterruptibleAudio()
Defaults to false. Valid values are the text strings "true" and "false".
public boolean getClearDigitBuffer()
Defaults to false. Valid values are the text strings "true" and "false".
public int getPreSpeechTimer()
public int getPostSpeechTimer()
public int getTotalRecordingLengthTimer()
public char getRestartKey()
No default. An application that defines more than one command key sequence, will typically use the same command key for all command key sequences.
If more than one command key sequence is defined, then all key sequences must consist of a command key plus at least one other key.
public char getReinputKey()
No default.
An application that defines more than one command key sequence, will typically use the same command key for all command key sequences.If more than one command key sequence is defined, then all key sequences must consist of a command key plus at least one other key.
public char getReturnKey()
No default. An application that defines more than one command key sequence, will typically use the same command key for all command key sequences.
If more than one command key sequence is defined, then all key sequences must consist of a command key plus at least one other key.
public char getPositionKey()
No default. The actions for the position key are fst, lst, prv, nxt, and cur.
public char getStopKey()
No default.
public char getEndInputKey()
The default end input key is the # key. To specify that no End Input Key be used the parameter is set to the string "null".
The default behavior not to return the End Input Key in the digits returned to the call agent. This behavior can be overridden by the Include End Input Key (eik) parameter.
public int getNumberOfAttempts()
Defaults to 1. Also used as a return parameter to indicate the number of attempts the user made.
public char getTone()
public void setTone(char tone)
public int getAttempt()
public boolean hasMoreAttempts()
public int getReturnCode()
protected void setReturnCode(int returnCode)
public boolean isSpeechDetected()
public void setSpeechDetected(boolean speechDetected)
protected void newAttempt()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.