public static interface UtteranceSpecification.Builder extends SdkPojo, CopyableBuilder<UtteranceSpecification.Builder,UtteranceSpecification>
| Modifier and Type | Method and Description |
|---|---|
UtteranceSpecification.Builder |
associatedIntentName(String associatedIntentName)
The name of the intent that the utterance is associated to.
|
UtteranceSpecification.Builder |
associatedSlotName(String associatedSlotName)
The name of the slot that the utterance is associated to.
|
UtteranceSpecification.Builder |
audioVoiceDurationMillis(Long audioVoiceDurationMillis)
The duration in milliseconds of the audio associated with the utterance.
|
UtteranceSpecification.Builder |
botAliasId(String botAliasId)
The identifier of the alias of the bot that the utterance was made to.
|
UtteranceSpecification.Builder |
botResponseAudioVoiceId(String botResponseAudioVoiceId)
The identifier for the audio of the bot response.
|
UtteranceSpecification.Builder |
botResponses(Collection<UtteranceBotResponse> botResponses)
A list of objects containing information about the bot response to the utterance.
|
UtteranceSpecification.Builder |
botResponses(Consumer<UtteranceBotResponse.Builder>... botResponses)
A list of objects containing information about the bot response to the utterance.
|
UtteranceSpecification.Builder |
botResponses(UtteranceBotResponse... botResponses)
A list of objects containing information about the bot response to the utterance.
|
UtteranceSpecification.Builder |
botVersion(String botVersion)
The version of the bot that the utterance was made to.
|
UtteranceSpecification.Builder |
channel(String channel)
The channel that is integrated with the bot that the utterance was made to.
|
UtteranceSpecification.Builder |
conversationEndTime(Instant conversationEndTime)
The date and time when the conversation in which the utterance took place ended.
|
UtteranceSpecification.Builder |
conversationStartTime(Instant conversationStartTime)
The date and time when the conversation in which the utterance took place began.
|
UtteranceSpecification.Builder |
dialogActionType(String dialogActionType)
The type of dialog action that the utterance is associated to.
|
UtteranceSpecification.Builder |
inputType(String inputType)
The input type of the utterance.
|
UtteranceSpecification.Builder |
intentState(IntentState intentState)
The state of the intent that the utterance is associated to.
|
UtteranceSpecification.Builder |
intentState(String intentState)
The state of the intent that the utterance is associated to.
|
UtteranceSpecification.Builder |
localeId(String localeId)
The locale of the bot that the utterance was made to.
|
UtteranceSpecification.Builder |
mode(AnalyticsModality mode)
The mode of the session.
|
UtteranceSpecification.Builder |
mode(String mode)
The mode of the session.
|
UtteranceSpecification.Builder |
outputType(String outputType)
The output type of the utterance.
|
UtteranceSpecification.Builder |
sessionId(String sessionId)
The identifier of the session that the utterance was made in.
|
UtteranceSpecification.Builder |
slotsFilledInSession(String slotsFilledInSession)
The slots that have been filled in the session by the time of the utterance.
|
UtteranceSpecification.Builder |
utterance(String utterance)
The text of the utterance.
|
UtteranceSpecification.Builder |
utteranceRequestId(String utteranceRequestId)
The identifier of the request associated with the utterance.
|
UtteranceSpecification.Builder |
utteranceTimestamp(Instant utteranceTimestamp)
The date and time when the utterance took place.
|
UtteranceSpecification.Builder |
utteranceUnderstood(Boolean utteranceUnderstood)
Specifies whether the bot understood the utterance or not.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildUtteranceSpecification.Builder botAliasId(String botAliasId)
The identifier of the alias of the bot that the utterance was made to.
botAliasId - The identifier of the alias of the bot that the utterance was made to.UtteranceSpecification.Builder botVersion(String botVersion)
The version of the bot that the utterance was made to.
botVersion - The version of the bot that the utterance was made to.UtteranceSpecification.Builder localeId(String localeId)
The locale of the bot that the utterance was made to.
localeId - The locale of the bot that the utterance was made to.UtteranceSpecification.Builder sessionId(String sessionId)
The identifier of the session that the utterance was made in.
sessionId - The identifier of the session that the utterance was made in.UtteranceSpecification.Builder channel(String channel)
The channel that is integrated with the bot that the utterance was made to.
channel - The channel that is integrated with the bot that the utterance was made to.UtteranceSpecification.Builder mode(String mode)
The mode of the session. The possible values are as follows:
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses.
MultiMode – The session consisted of multiple modes.
mode - The mode of the session. The possible values are as follows:
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key
presses.
MultiMode – The session consisted of multiple modes.
AnalyticsModality,
AnalyticsModalityUtteranceSpecification.Builder mode(AnalyticsModality mode)
The mode of the session. The possible values are as follows:
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses.
MultiMode – The session consisted of multiple modes.
mode - The mode of the session. The possible values are as follows:
Speech – The session consisted of spoken dialogue.
Text – The session consisted of written dialogue.
DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key
presses.
MultiMode – The session consisted of multiple modes.
AnalyticsModality,
AnalyticsModalityUtteranceSpecification.Builder conversationStartTime(Instant conversationStartTime)
The date and time when the conversation in which the utterance took place began. A conversation is defined as
a unique combination of a sessionId and an originatingRequestId.
conversationStartTime - The date and time when the conversation in which the utterance took place began. A conversation is
defined as a unique combination of a sessionId and an originatingRequestId.UtteranceSpecification.Builder conversationEndTime(Instant conversationEndTime)
The date and time when the conversation in which the utterance took place ended. A conversation is defined as
a unique combination of a sessionId and an originatingRequestId.
conversationEndTime - The date and time when the conversation in which the utterance took place ended. A conversation is
defined as a unique combination of a sessionId and an originatingRequestId.UtteranceSpecification.Builder utterance(String utterance)
The text of the utterance.
utterance - The text of the utterance.UtteranceSpecification.Builder utteranceTimestamp(Instant utteranceTimestamp)
The date and time when the utterance took place.
utteranceTimestamp - The date and time when the utterance took place.UtteranceSpecification.Builder audioVoiceDurationMillis(Long audioVoiceDurationMillis)
The duration in milliseconds of the audio associated with the utterance.
audioVoiceDurationMillis - The duration in milliseconds of the audio associated with the utterance.UtteranceSpecification.Builder utteranceUnderstood(Boolean utteranceUnderstood)
Specifies whether the bot understood the utterance or not.
utteranceUnderstood - Specifies whether the bot understood the utterance or not.UtteranceSpecification.Builder inputType(String inputType)
The input type of the utterance. The possible values are as follows:
PCM format: audio data must be in little-endian byte order.
audio/l16; rate=16000; channels=1
audio/x-l16; sample-rate=16000; channel-count=1
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
Opus format
audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4
Text format
text/plain; charset=utf-8
inputType - The input type of the utterance. The possible values are as follows:
PCM format: audio data must be in little-endian byte order.
audio/l16; rate=16000; channels=1
audio/x-l16; sample-rate=16000; channel-count=1
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
Opus format
audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4
Text format
text/plain; charset=utf-8
UtteranceSpecification.Builder outputType(String outputType)
The output type of the utterance. The possible values are as follows:
audio/mpeg
audio/ogg
audio/pcm (16 KHz)
audio/ (defaults to mpeg)
text/plain; charset=utf-8
outputType - The output type of the utterance. The possible values are as follows:
audio/mpeg
audio/ogg
audio/pcm (16 KHz)
audio/ (defaults to mpeg)
text/plain; charset=utf-8
UtteranceSpecification.Builder associatedIntentName(String associatedIntentName)
The name of the intent that the utterance is associated to.
associatedIntentName - The name of the intent that the utterance is associated to.UtteranceSpecification.Builder associatedSlotName(String associatedSlotName)
The name of the slot that the utterance is associated to.
associatedSlotName - The name of the slot that the utterance is associated to.UtteranceSpecification.Builder intentState(String intentState)
The state of the intent that the utterance is associated to.
intentState - The state of the intent that the utterance is associated to.IntentState,
IntentStateUtteranceSpecification.Builder intentState(IntentState intentState)
The state of the intent that the utterance is associated to.
intentState - The state of the intent that the utterance is associated to.IntentState,
IntentStateUtteranceSpecification.Builder dialogActionType(String dialogActionType)
The type of dialog action that the utterance is associated to. See the type field in DialogAction
for more information.
dialogActionType - The type of dialog action that the utterance is associated to. See the type field in DialogAction
for more information.UtteranceSpecification.Builder botResponseAudioVoiceId(String botResponseAudioVoiceId)
The identifier for the audio of the bot response.
botResponseAudioVoiceId - The identifier for the audio of the bot response.UtteranceSpecification.Builder slotsFilledInSession(String slotsFilledInSession)
The slots that have been filled in the session by the time of the utterance.
slotsFilledInSession - The slots that have been filled in the session by the time of the utterance.UtteranceSpecification.Builder utteranceRequestId(String utteranceRequestId)
The identifier of the request associated with the utterance.
utteranceRequestId - The identifier of the request associated with the utterance.UtteranceSpecification.Builder botResponses(Collection<UtteranceBotResponse> botResponses)
A list of objects containing information about the bot response to the utterance.
botResponses - A list of objects containing information about the bot response to the utterance.UtteranceSpecification.Builder botResponses(UtteranceBotResponse... botResponses)
A list of objects containing information about the bot response to the utterance.
botResponses - A list of objects containing information about the bot response to the utterance.UtteranceSpecification.Builder botResponses(Consumer<UtteranceBotResponse.Builder>... botResponses)
A list of objects containing information about the bot response to the utterance.
This is a convenience method that creates an instance of theUtteranceBotResponse.Builder avoiding the need to
create one manually via
UtteranceBotResponse.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #botResponses(List.
botResponses - a consumer that will call methods on
UtteranceBotResponse.Builder#botResponses(java.util.Collection) Copyright © 2023. All rights reserved.