public final class Recording extends Object implements JsonSerializable
Recording
represents the description of a recording final phase of
an interaction.
It may have an optional DtmfRecognition
to recognize DTMF input while
recording. A DTMF input matching one of the DtmfRecognition
grammar
will terminate the recording and place the recording in a variable.
Constructor and Description |
---|
Recording() |
Modifier and Type | Method and Description |
---|---|
javax.json.JsonValue |
asJson() |
boolean |
equals(Object obj) |
Boolean |
getBeep() |
String |
getClientSideAssignationDestination() |
Boolean |
getDtmfTerm() |
DtmfRecognition |
getDtmfTermRecognition() |
Duration |
getFinalSilence() |
Duration |
getMaximumTime() |
String |
getType() |
int |
hashCode() |
boolean |
isPostAudioToServer() |
void |
setBeep(Boolean beep) |
void |
setClientSideAssignationDestination(String clientSideAssignationDestination) |
void |
setDtmfTerm(Boolean dtmfTerm) |
void |
setDtmfTermRecognition(DtmfRecognition dtmfRecognition) |
void |
setFinalSilence(Duration finalSilence) |
void |
setMaximumTime(Duration maximumTime) |
void |
setPostAudioToServer(boolean postAudioToServer) |
void |
setType(String type) |
String |
toString() |
public Recording()
public void setDtmfTermRecognition(DtmfRecognition dtmfRecognition)
dtmfRecognition
- The DtmfRecognition
used to interrupt the
recording. null
to use the VoiceXML platform
defaultpublic void setBeep(Boolean beep)
beep
- If true, a tone is emitted just prior to recording.
null
to use the VoiceXML platform default.public void setMaximumTime(Duration maximumTime)
maximumTime
- The maximum duration to record. null
to
use the VoiceXML platform default.public void setFinalSilence(Duration finalSilence)
finalSilence
- The interval of silence that indicates end of speech.
null
to use the VoiceXML platform defaultpublic void setType(String type)
type
- The media format of the resulting recording.
null
to use the VoiceXML platform default.public void setClientSideAssignationDestination(String clientSideAssignationDestination)
clientSideAssignationDestination
- The variable where the recording
will be stored.public void setDtmfTerm(Boolean dtmfTerm)
dtmfTerm
- If true, any DTMF keypress not matched by an active
grammar will be treated as a match of an active local DTMF
grammar. null
to use the VoiceXML platform
defaultpublic void setPostAudioToServer(boolean postAudioToServer)
postAudioToServer
- If true, recording will be posted to server and
made available in the file
property of the
RecordingInfo
.public DtmfRecognition getDtmfTermRecognition()
public Duration getMaximumTime()
public Duration getFinalSilence()
public Boolean getDtmfTerm()
public String getClientSideAssignationDestination()
public boolean isPostAudioToServer()
public javax.json.JsonValue asJson()
asJson
in interface JsonSerializable
Copyright © 2019 Nu Echo Inc..