Interface AudioBlock.Builder

    • Method Detail

      • 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:
        AudioFormat, AudioFormat
      • format

        AudioBlock.Builder format​(AudioFormat 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:
        AudioFormat, AudioFormat
      • source

        AudioBlock.Builder source​(AudioSource 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.
      • error

        AudioBlock.Builder error​(ErrorBlock 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.