Class AudioInputEvent.BuilderImpl

    • Constructor Detail

      • BuilderImpl

        protected BuilderImpl()
    • Method Detail

      • getAudioChunk

        public final ByteBuffer getAudioChunk()
      • setAudioChunk

        public final void setAudioChunk​(ByteBuffer audioChunk)
      • getContentType

        public final String getContentType()
      • setContentType

        public final void setContentType​(String contentType)
      • contentType

        public final AudioInputEvent.Builder contentType​(String contentType)
        Description copied from interface: AudioInputEvent.Builder

        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

        Specified by:
        contentType in interface AudioInputEvent.Builder
        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • getEventId

        public final String getEventId()
      • setEventId

        public final void setEventId​(String eventId)
      • eventId

        public final AudioInputEvent.Builder eventId​(String eventId)
        Description copied from interface: AudioInputEvent.Builder

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

        Specified by:
        eventId in interface AudioInputEvent.Builder
        Parameters:
        eventId - A unique identifier that your application assigns to the event. You can use this to identify events in logs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getClientTimestampMillis

        public final Long getClientTimestampMillis()
      • setClientTimestampMillis

        public final void setClientTimestampMillis​(Long clientTimestampMillis)
      • clientTimestampMillis

        public final AudioInputEvent.Builder clientTimestampMillis​(Long clientTimestampMillis)
        Description copied from interface: AudioInputEvent.Builder

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

        Specified by:
        clientTimestampMillis in interface AudioInputEvent.Builder
        Parameters:
        clientTimestampMillis - A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
        Returns:
        Returns a reference to this object so that method calls can be chained together.