Interface OpusSettings.Builder

All Superinterfaces:
Buildable, CopyableBuilder<OpusSettings.Builder,OpusSettings>, SdkBuilder<OpusSettings.Builder,OpusSettings>, SdkPojo
Enclosing class:
OpusSettings

public static interface OpusSettings.Builder extends SdkPojo, CopyableBuilder<OpusSettings.Builder,OpusSettings>
  • Method Details

    • bitrate

      OpusSettings.Builder bitrate(Integer bitrate)
      Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
      Parameters:
      bitrate - Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • channels

      OpusSettings.Builder channels(Integer channels)
      Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
      Parameters:
      channels - Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleRate

      OpusSettings.Builder sampleRate(Integer sampleRate)
      Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
      Parameters:
      sampleRate - Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.