@Generated(value="software.amazon.awssdk:codegen") public class AudioInputEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>, StartConversationRequestEventStream
Represents a chunk of audio sent from the client application to Amazon Lex V2. The audio is all or part of an utterance from the user.
Amazon Lex V2 accumulates audio chunks until it recognizes a natural pause in speech before processing the input.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AudioInputEvent.Builder |
protected static class |
AudioInputEvent.BuilderImpl |
StartConversationRequestEventStream.EventType| Modifier | Constructor and Description |
|---|---|
protected |
AudioInputEvent(AudioInputEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
SdkBytes |
audioChunk()
An encoded stream of audio.
|
static AudioInputEvent.Builder |
builder() |
Long |
clientTimestampMillis()
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
|
String |
contentType()
The encoding used for the audio chunk.
|
AudioInputEvent |
copy(Consumer<? super AudioInputEvent.Builder> modifier) |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventId()
A unique identifier that your application assigns to the event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AudioInputEvent.Builder> |
serializableBuilderClass() |
AudioInputEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaudioInputEventBuilder, configurationEventBuilder, disconnectionEventBuilder, dTMFInputEventBuilder, playbackCompletionEventBuilder, sdkEventType, textInputEventBuilderprotected AudioInputEvent(AudioInputEvent.BuilderImpl builder)
public final SdkBytes audioChunk()
An encoded stream of audio.
public final String contentType()
The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian format. The value of the field should be:
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
public final String eventId()
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
public final Long clientTimestampMillis()
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
public AudioInputEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>public static AudioInputEvent.Builder builder()
public static Class<? extends AudioInputEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final AudioInputEvent copy(Consumer<? super AudioInputEvent.Builder> modifier)
copy in interface ToCopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>Copyright © 2023. All rights reserved.