Class AudioInputEvent

    • Method Detail

      • audioChunk

        public final SdkBytes audioChunk()

        An encoded stream of audio.

        Returns:
        An encoded stream of audio.
      • contentType

        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

        Returns:
        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

      • eventId

        public final String eventId()

        A unique identifier that your application assigns to the event. You can use this to identify events in logs.

        Returns:
        A unique identifier that your application assigns to the event. You can use this to identify events in logs.
      • clientTimestampMillis

        public final Long clientTimestampMillis()

        A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.

        Returns:
        A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)