Interface AudioInputEvent.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>, SdkBuilder<AudioInputEvent.Builder,AudioInputEvent>, SdkPojo
All Known Subinterfaces:
DefaultAudioInputEvent.Builder
Enclosing class:
AudioInputEvent

public static interface AudioInputEvent.Builder extends SdkPojo, CopyableBuilder<AudioInputEvent.Builder,AudioInputEvent>
  • Method Details

    • audioChunk

      AudioInputEvent.Builder audioChunk(SdkBytes audioChunk)

      An encoded stream of audio.

      Parameters:
      audioChunk - An encoded stream of audio.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentType

      AudioInputEvent.Builder contentType(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

      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.
    • eventId

      AudioInputEvent.Builder eventId(String eventId)

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

      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.
    • clientTimestampMillis

      AudioInputEvent.Builder clientTimestampMillis(Long clientTimestampMillis)

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

      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.