Class AudioOptions.Builder

java.lang.Object
com.twilio.voice.AudioOptions.Builder
Enclosing class:
AudioOptions

public static final class AudioOptions.Builder extends Object
Builds new AudioOptions.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • echoCancellation

      public AudioOptions.Builder echoCancellation(boolean echoCancellation)
      Audio processing that attempts to filter away the output signal from later inbound pickup. Default is set to true.
      Parameters:
      echoCancellation - - true enables echo cancellation and false disables it.
      Returns:
      AudioOptions.Builder
    • autoGainControl

      public AudioOptions.Builder autoGainControl(boolean autoGainControl)
      Audio processing that adjusts the sensitivity of the local microphone dynamically. Default is set to true.
      Parameters:
      autoGainControl - - true enables automatic gain control and false disables it.
      Returns:
      AudioOptions.Builder
    • noiseSuppression

      public AudioOptions.Builder noiseSuppression(boolean noiseSuppression)
      Enable audio processing that filters out background noise. Default is set to true.
      Parameters:
      noiseSuppression - - true filters out background noise and false disables the filtering.
      Returns:
      AudioOptions.Builder
    • highpassFilter

      public AudioOptions.Builder highpassFilter(boolean highpassFilter)
      Enable audio processing that removes background noise of lower frequencies. Default is set to true.
      Parameters:
      highpassFilter - - true removes lower frequency background noise and false disables the removal.
      Returns:
      AudioOptions.Builder
    • audioJitterBufferMaxPackets

      public AudioOptions.Builder audioJitterBufferMaxPackets(int maxPackets)
      Audio receiver jitter buffer (NetEq) max capacity in number of packets. Minimum allowed value is 20. Default is set at 200 packets.
      Parameters:
      maxPackets - - Max capacity in number of packets.
      Returns:
      AudioOptions.Builder
    • audioJitterBufferMinDelayMs

      public AudioOptions.Builder audioJitterBufferMinDelayMs(int minDelayMs)
      Audio receiver jitter buffer (NetEq) minimum target delay in milliseconds. Minimum allowed value is zero msec. Default is set at zero msec.
      Parameters:
      minDelayMs - - Minimum target delay in milliseconds.
      Returns:
      AudioOptions.Builder
    • build

      public AudioOptions build()