Interface AudioResponseEvent.Builder

    • Method Detail

      • audioChunk

        AudioResponseEvent.Builder audioChunk​(SdkBytes audioChunk)

        A chunk of the audio to play.

        Parameters:
        audioChunk - A chunk of the audio to play.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contentType

        AudioResponseEvent.Builder contentType​(String contentType)

        The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.

        Parameters:
        contentType - The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventId

        AudioResponseEvent.Builder eventId​(String eventId)

        A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N , where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.

        Parameters:
        eventId - A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.