Interface AudioBlock.Builder

  • Method Details

    • format

      AudioBlock.Builder format(String format)

      The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.

      Parameters:
      format - The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • format

      The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.

      Parameters:
      format - The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

      The source of the audio data, which can be provided as raw bytes or an S3 location.

      Parameters:
      source - The source of the audio data, which can be provided as raw bytes or an S3 location.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source of the audio data, which can be provided as raw bytes or an S3 location.

      This is a convenience method that creates an instance of the AudioSource.Builder avoiding the need to create one manually via AudioSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(AudioSource).

      Parameters:
      source - a consumer that will call methods on AudioSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • error

      Error information if the audio block could not be processed or contains invalid data.

      Parameters:
      error - Error information if the audio block could not be processed or contains invalid data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Error information if the audio block could not be processed or contains invalid data.

      This is a convenience method that creates an instance of the ErrorBlock.Builder avoiding the need to create one manually via ErrorBlock.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to error(ErrorBlock).

      Parameters:
      error - a consumer that will call methods on ErrorBlock.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: