Interface AudioConfiguration.Builder

    • Method Detail

      • channels

        AudioConfiguration.Builder channels​(Long channels)

        Number of audio channels.

        Parameters:
        channels - Number of audio channels.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • codec

        AudioConfiguration.Builder codec​(String codec)

        Codec used for the audio encoding.

        Parameters:
        codec - Codec used for the audio encoding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampleRate

        AudioConfiguration.Builder sampleRate​(Long sampleRate)

        Number of audio samples recorded per second.

        Parameters:
        sampleRate - Number of audio samples recorded per second.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetBitrate

        AudioConfiguration.Builder targetBitrate​(Long targetBitrate)

        The expected ingest bitrate (bits per second). This is configured in the encoder.

        Parameters:
        targetBitrate - The expected ingest bitrate (bits per second). This is configured in the encoder.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • track

        AudioConfiguration.Builder track​(String track)

        Name of the audio track (if the stream has an audio track). If multitrack is not enabled, this is track0 (the sole track).

        Parameters:
        track - Name of the audio track (if the stream has an audio track). If multitrack is not enabled, this is track0 (the sole track).
        Returns:
        Returns a reference to this object so that method calls can be chained together.