public class Interaction extends VoiceXmlOutputTurn
Interaction
is a VoiceXmlOutputTurn
that represents a list
of Interaction.Prompt
with an optional Interaction.FinalRecognitionWindow
or
Interaction.FinalRecordingWindow
phase.
Each Interaction.Prompt
represents a phase of the interaction with a
sequence of AudioItem
and optional speech/DTMF recognition
configurations.
Modifier and Type | Class and Description |
---|---|
static class |
Interaction.BargeInType
Barge-in types.
|
static class |
Interaction.Builder
Builder used to ease the creation of instances of
Interaction . |
static class |
Interaction.FinalRecognitionWindow
A
Interaction.FinalRecognitionWindow is an optional final phase of an
Interaction . |
static class |
Interaction.FinalRecordingWindow
A
Interaction.FinalRecordingWindow is an optional final phase of an
Interaction . |
static class |
Interaction.Prompt
A
Interaction.Prompt represent a phase in an Interaction and is
composed of a sequence of AudioItem and optionally a speech
and/or a DTMF recognition configuration. |
Constructor and Description |
---|
Interaction(String name,
List<Interaction.Prompt> prompts) |
Interaction(String name,
List<Interaction.Prompt> prompts,
Interaction.FinalRecognitionWindow finalRecognitionWindow) |
Interaction(String name,
List<Interaction.Prompt> prompts,
Interaction.FinalRecordingWindow finalRecordingWindow) |
Modifier and Type | Method and Description |
---|---|
protected void |
addTurnProperties(javax.json.JsonObjectBuilder builder) |
protected void |
fillVoiceXmlDocument(Document document,
Element formElement,
VoiceXmlDialogueContext dialogueContext) |
protected String |
getOuputTurnType() |
List<Interaction.Prompt> |
getPrompts() |
Interaction.FinalRecognitionWindow |
getRecognition() |
Interaction.FinalRecordingWindow |
getRecording() |
addEventHandlerScript, addTopLevelProperties, createVoiceXmlDocument
addAdapter, asJson, equals, getName, getVoiceXmlDocument, hashCode, toString
public Interaction(String name, List<Interaction.Prompt> prompts)
name
- The name of this turn. Not empty.prompts
- The list of Interaction.Prompt
. Not null.public Interaction(String name, List<Interaction.Prompt> prompts, Interaction.FinalRecognitionWindow finalRecognitionWindow)
name
- The name of this turn. Not empty.prompts
- The list of Interaction.Prompt
. Not null.finalRecognitionWindow
- The final recognition phase configuration.
Not null.public Interaction(String name, List<Interaction.Prompt> prompts, Interaction.FinalRecordingWindow finalRecordingWindow)
name
- The name of this turn. Not empty.prompts
- The list of Interaction.Prompt
. Not null.finalRecordingWindow
- The final recording phase configuration. Not
null.public final List<Interaction.Prompt> getPrompts()
public final Interaction.FinalRecognitionWindow getRecognition()
public final Interaction.FinalRecordingWindow getRecording()
protected final String getOuputTurnType()
getOuputTurnType
in class VoiceXmlOutputTurn
protected void addTurnProperties(javax.json.JsonObjectBuilder builder)
addTurnProperties
in class VoiceXmlDocumentTurn
protected void fillVoiceXmlDocument(Document document, Element formElement, VoiceXmlDialogueContext dialogueContext) throws VoiceXmlDocumentRenderingException
fillVoiceXmlDocument
in class VoiceXmlOutputTurn
VoiceXmlDocumentRenderingException
Copyright © 2019 Nu Echo Inc..