public class InteractionConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AudioEncoding |
DEFAULT_AUDIO_ENCODING |
static int |
DEFAULT_END_POINTING_THRESHOLD |
static float |
DEFAULT_LRT_THRESHOLD |
static int |
DEFAULT_MAX_SPEECH_TIMEOUT_INTERVAL |
static int |
DEFAULT_NO_SPEECH_TIMEOUT_INTERVAL |
static int |
DEFAULT_START_POINTING_THRESHOLD |
Constructor and Description |
---|
InteractionConfig(java.lang.String botName,
java.lang.String botAlias)
Creates a new instance of this object, with no global attributes.
|
InteractionConfig(java.lang.String botName,
java.lang.String botAlias,
java.lang.String userId)
Creates a new instance of this object, with no global attributes.
|
InteractionConfig(java.lang.String botName,
java.lang.String botAlias,
java.lang.String userId,
java.util.Map<java.lang.String,java.lang.String> globalSessionAttributes)
Creates a new instance of this object, with global attributes.
|
Modifier and Type | Method and Description |
---|---|
AudioEncoding |
getAudioEncoding()
Returns current audio encoding, if no encoding is set returns default
encoding.
|
java.lang.String |
getBotAlias()
Returns bot alias.
|
java.lang.String |
getBotName()
Returns bot name.
|
int |
getEndPointingThreshold()
Get current end point threshold.
|
java.util.Map<java.lang.String,java.lang.String> |
getGlobalSessionAttributes()
Get the global SessionAtributes
|
float |
getLrtThreshold()
Returns the likely hood ration threshold
|
int |
getMaxSpeechTimeoutInterval()
Returns maximum interval for speech.
|
int |
getNoSpeechTimeoutInterval()
Returns current no speech time-out value.
|
int |
getStartPointingThreshold()
Get current star point threshold.
|
java.lang.String |
getUserId()
Get the user id
|
boolean |
isEnableAudioPlayback()
Returns current audio playback setting.
|
void |
setAudioEncoding(AudioEncoding audioEncoding)
Set audio encoding.
|
void |
setBotAlias(java.lang.String botAlias)
Sets bot alias.
|
void |
setBotName(java.lang.String botName)
Sets bot name.
|
void |
setEnableAudioPlayback(boolean enableAudioPlayback)
Set this to true if the audio response from Amazon Lex service should be
played back by the SDK.
|
void |
setEndPointingThreshold(int endPointingThreshold)
Set endpoint threshold.
|
void |
setGlobalSessionAttributes(java.util.Map<java.lang.String,java.lang.String> globalSessionAttributes)
Set the global SessionAtributes
|
void |
setLrtThreshold(float lrtThreshold)
Sets the Likely hood ration threshold for the VAD
|
void |
setMaxSpeechTimeoutInterval(int maxSpeechTimeoutInterval)
Set maximum interval for speech.
|
void |
setNoSpeechTimeoutInterval(int noSpeechTimeoutInterval)
Set no speech time out interval.
|
void |
setStartPointingThreshold(int startPointingThreshold)
Set start point threshold.
|
void |
setUserId(java.lang.String userId)
Sets the user id
|
InteractionConfig |
withAudioEncoding(AudioEncoding audioEncoding)
Set audio encoding.
|
InteractionConfig |
WithEnableAudioPlayback(boolean enableAudioPlayback)
Set this to true if the audio response from Amazon Lex service should be
played back by the SDK.
|
InteractionConfig |
withEndPointingThreshold(int endPointingThreshold)
Set endpoint threshold.
|
InteractionConfig |
withGlobalSessionAttributes(java.util.Map<java.lang.String,java.lang.String> globalSessionAttributes)
Set the global SessionAtributes
|
InteractionConfig |
withLrtThreshold(float lrtThreshold)
Sets the Likely hood ration threshold for the VAD
|
InteractionConfig |
withMaxSpeechTimeoutInterval(int maxSpeechTimeoutInterval)
Set maximum interval for speech.
|
InteractionConfig |
withNoSpeechTimeoutInterval(int noSpeechTimeoutInterval)
Set no speech time out interval.
|
InteractionConfig |
withStartPointingThreshold(int startPointingThreshold)
Set start point threshold.
|
InteractionConfig |
withUserId(java.lang.String userId)
Sets the user id
|
public static final int DEFAULT_NO_SPEECH_TIMEOUT_INTERVAL
public static final int DEFAULT_MAX_SPEECH_TIMEOUT_INTERVAL
public static final int DEFAULT_START_POINTING_THRESHOLD
public static final int DEFAULT_END_POINTING_THRESHOLD
public static final float DEFAULT_LRT_THRESHOLD
public static final AudioEncoding DEFAULT_AUDIO_ENCODING
public InteractionConfig(java.lang.String botName, java.lang.String botAlias, java.lang.String userId)
botName
- Name of the bot, should match a bot in set in the service.botAlias
- Bot alias.public InteractionConfig(java.lang.String botName, java.lang.String botAlias)
botName
- Name of the bot, should match a bot in set in the service.botAlias
- Bot alias.public InteractionConfig(java.lang.String botName, java.lang.String botAlias, java.lang.String userId, java.util.Map<java.lang.String,java.lang.String> globalSessionAttributes)
botName
- Name of the bot, should match a bot in set in the service.botAlias
- Bot alias.globalSessionAttributes
- Map
.public java.lang.String getBotName()
String
.public void setBotName(java.lang.String botName)
botName
- Bot name as a String
.public java.lang.String getBotAlias()
String
.public void setBotAlias(java.lang.String botAlias)
botAlias
- Bots alias as a String
.public AudioEncoding getAudioEncoding()
AudioEncoding
public InteractionConfig withAudioEncoding(AudioEncoding audioEncoding)
audioEncoding
- AudioEncoding
, encoding used for audio
streamed to the service.InteractionConfig
public void setAudioEncoding(AudioEncoding audioEncoding)
audioEncoding
- AudioEncoding
, encoding used for audio
streamed to the service.public boolean isEnableAudioPlayback()
public void setEnableAudioPlayback(boolean enableAudioPlayback)
enableAudioPlayback
- boolean
public InteractionConfig WithEnableAudioPlayback(boolean enableAudioPlayback)
enableAudioPlayback
- boolean
InteractionConfig
public void setNoSpeechTimeoutInterval(int noSpeechTimeoutInterval)
noSpeechTimeoutInterval
- time out interval in milli-seconds.public InteractionConfig withNoSpeechTimeoutInterval(int noSpeechTimeoutInterval)
noSpeechTimeoutInterval
- time out interval in milli-seconds.InteractionConfig
public int getNoSpeechTimeoutInterval()
public void setMaxSpeechTimeoutInterval(int maxSpeechTimeoutInterval)
maxSpeechTimeoutInterval
- maximum speech time out interval in
milli-seconds.public InteractionConfig withMaxSpeechTimeoutInterval(int maxSpeechTimeoutInterval)
maxSpeechTimeoutInterval
- maximum speech time out interval in
milli-seconds.InteractionConfig
public int getMaxSpeechTimeoutInterval()
public void setStartPointingThreshold(int startPointingThreshold)
startPointingThreshold
- public InteractionConfig withStartPointingThreshold(int startPointingThreshold)
startPointingThreshold
- InteractionConfig
public int getStartPointingThreshold()
public void setEndPointingThreshold(int endPointingThreshold)
endPointingThreshold
- public InteractionConfig withEndPointingThreshold(int endPointingThreshold)
endPointingThreshold
- InteractionConfig
public int getEndPointingThreshold()
public java.util.Map<java.lang.String,java.lang.String> getGlobalSessionAttributes()
public void setGlobalSessionAttributes(java.util.Map<java.lang.String,java.lang.String> globalSessionAttributes)
globalSessionAttributes
- the global session attributes.public InteractionConfig withGlobalSessionAttributes(java.util.Map<java.lang.String,java.lang.String> globalSessionAttributes)
globalSessionAttributes
- the global session attributes.InteractionConfig
public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- public InteractionConfig withUserId(java.lang.String userId)
userId
- InteractionConfig
public float getLrtThreshold()
public void setLrtThreshold(float lrtThreshold)
lrtThreshold
- public InteractionConfig withLrtThreshold(float lrtThreshold)
lrtThreshold
- Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.