Package com.twilio.voice
Class AudioOptions.Builder
java.lang.Object
com.twilio.voice.AudioOptions.Builder
- Enclosing class:
- AudioOptions
Builds new
AudioOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaudioJitterBufferMaxPackets
(int maxPackets) Audio receiver jitter buffer (NetEq) max capacity in number of packets.audioJitterBufferMinDelayMs
(int minDelayMs) Audio receiver jitter buffer (NetEq) minimum target delay in milliseconds.autoGainControl
(boolean autoGainControl) Audio processing that adjusts the sensitivity of the local microphone dynamically.build()
echoCancellation
(boolean echoCancellation) Audio processing that attempts to filter away the output signal from later inbound pickup.highpassFilter
(boolean highpassFilter) Enable audio processing that removes background noise of lower frequencies.noiseSuppression
(boolean noiseSuppression) Enable audio processing that filters out background noise.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
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
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
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
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
-