Package com.twilio.voice
Class OpusCodec
- java.lang.Object
-
- com.twilio.voice.AudioCodec
-
- com.twilio.voice.OpusCodec
-
public class OpusCodec extends AudioCodec
Lossy audio coding format.- See Also:
- Opus
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxAverageBitrate()
-
Methods inherited from class com.twilio.voice.AudioCodec
getName, toString
-
-
-
-
Field Detail
-
NAME
@NonNull public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OpusCodec
public OpusCodec()
-
OpusCodec
public OpusCodec(int maxAverageBitrate)
A constructor to initialize the OpusCodec with non-default attributes.- Parameters:
maxAverageBitrate
- `maxAverageBitrate` - The maximum average audio bitrate to use, in bits per second (bps) based on [RFC-7587 7.1](https://tools.ietf.org/html/rfc7587#section-7.1). By default, the setting is not used. If you specify 0, then the setting is not used. Any positive integer is allowed, but values outside the range 6000 to 510000 are ignored and treated as 0. The recommended bitrate for speech is between 8000 and 40000 bps as noted in [RFC-7587 3.1.1](https://tools.ietf.org/html/rfc7587#section-3.1.1).
-
-