Interface AudioMetadata.Builder

    • Method Detail

      • codec

        AudioMetadata.Builder codec​(String codec)

        The audio codec used to encode or decode the audio stream.

        Parameters:
        codec - The audio codec used to encode or decode the audio stream.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationMillis

        AudioMetadata.Builder durationMillis​(Long durationMillis)

        The duration of the audio stream in milliseconds.

        Parameters:
        durationMillis - The duration of the audio stream in milliseconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampleRate

        AudioMetadata.Builder sampleRate​(Long sampleRate)

        The sample rate for the audio stream.

        Parameters:
        sampleRate - The sample rate for the audio stream.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • numberOfChannels

        AudioMetadata.Builder numberOfChannels​(Long numberOfChannels)

        The number of audio channels in the segment.

        Parameters:
        numberOfChannels - The number of audio channels in the segment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.