Class AudioFillerSettings
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AudioFillerSettings.Builder,AudioFillerSettings>
Configuration that plays background filler audio during speech-to-speech interactions to mask processing delays and improve the perceived responsiveness of the bot.
Audio filler requires unifiedSpeechSettings (speech-to-speech) to be enabled on the bot locale when
enabled is true.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AudioFillerTypeThe identifier of the audio filler to play while Amazon Lex processes the user's input.final StringThe identifier of the audio filler to play while Amazon Lex processes the user's input.static AudioFillerSettings.Builderbuilder()final Booleanenabled()Specifies whether audio filler playback is enabled for the bot locale.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe minimum time, in milliseconds, that audio filler plays once it has started, even if the bot response becomes ready sooner.final IntegerThe silent delay, in milliseconds, inserted between the end of audio filler playback and the start of the bot's response.static Class<? extends AudioFillerSettings.Builder> final IntegerThe time, in milliseconds, to wait after the end of the user's utterance before starting audio filler playback.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
enabled
Specifies whether audio filler playback is enabled for the bot locale. Set to
trueto play filler audio while Amazon Lex processes a user utterance. Set tofalseto disable filler audio.- Returns:
- Specifies whether audio filler playback is enabled for the bot locale. Set to
trueto play filler audio while Amazon Lex processes a user utterance. Set tofalseto disable filler audio.
-
audioType
The identifier of the audio filler to play while Amazon Lex processes the user's input. This field is required when
enabledistrue.If the service returns an enum value that is not available in the current SDK version,
audioTypewill returnAudioFillerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaudioTypeAsString().- Returns:
- The identifier of the audio filler to play while Amazon Lex processes the user's input. This field is
required when
enabledistrue. - See Also:
-
audioTypeAsString
The identifier of the audio filler to play while Amazon Lex processes the user's input. This field is required when
enabledistrue.If the service returns an enum value that is not available in the current SDK version,
audioTypewill returnAudioFillerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaudioTypeAsString().- Returns:
- The identifier of the audio filler to play while Amazon Lex processes the user's input. This field is
required when
enabledistrue. - See Also:
-
startDelayInMilliseconds
The time, in milliseconds, to wait after the end of the user's utterance before starting audio filler playback. Valid range is
500to5000milliseconds. If not specified, Amazon Lex uses a default of2500milliseconds.- Returns:
- The time, in milliseconds, to wait after the end of the user's utterance before starting audio filler
playback. Valid range is
500to5000milliseconds. If not specified, Amazon Lex uses a default of2500milliseconds.
-
minimumPlayDurationInMilliseconds
The minimum time, in milliseconds, that audio filler plays once it has started, even if the bot response becomes ready sooner. Valid range is
1000to5000milliseconds. If not specified, Amazon Lex uses a default of3000milliseconds.- Returns:
- The minimum time, in milliseconds, that audio filler plays once it has started, even if the bot response
becomes ready sooner. Valid range is
1000to5000milliseconds. If not specified, Amazon Lex uses a default of3000milliseconds.
-
responseDeliveryDelayInMilliseconds
The silent delay, in milliseconds, inserted between the end of audio filler playback and the start of the bot's response. Valid range is
200to1000milliseconds. If not specified, Amazon Lex uses a default of500milliseconds.- Returns:
- The silent delay, in milliseconds, inserted between the end of audio filler playback and the start of the
bot's response. Valid range is
200to1000milliseconds. If not specified, Amazon Lex uses a default of500milliseconds.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AudioFillerSettings.Builder,AudioFillerSettings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-