Package com.amazonaws.ivs.broadcast
Class StageAudioConfiguration
- java.lang.Object
-
- com.amazonaws.ivs.broadcast.StageAudioConfiguration
-
public class StageAudioConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StageAudioConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enableNoiseSuppression(boolean enable)
Setting this to true will enable noise suppression.int
getMaxBitrate()
boolean
isNoiseSuppressionEnabled()
void
setMaxBitrate(int maxBitrate)
Sets the maximum bitrate for the publishing audio stream.
-
-
-
Method Detail
-
getMaxBitrate
public int getMaxBitrate()
- Returns:
- The maximum bitrate for the publishing audio stream. By default this is 64k.
-
setMaxBitrate
public void setMaxBitrate(int maxBitrate)
Sets the maximum bitrate for the publishing audio stream. This value must be between 12k and 128k. If the provided bitrate falls outside this range, the bitrate will not be set and anIllegalArgumentException
will be thrown.- Parameters:
maxBitrate
- the desired maximum bitrate- Throws:
java.lang.IllegalArgumentException
- if bitrate is not valid
-
isNoiseSuppressionEnabled
public boolean isNoiseSuppressionEnabled()
- Returns:
- Whether noise suppression is enabled.
-
enableNoiseSuppression
public void enableNoiseSuppression(boolean enable)
Setting this to true will enable noise suppression. By default this is true.- Parameters:
enable
- whether to enable noise suppression
-
-