Class 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  
    • Constructor Summary

      Constructors 
      Constructor Description
      OpusCodec()  
      OpusCodec​(boolean useDtx)
      A constructor to initialize the OpusCodec with non-default attributes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDtxEnabled()
      Reports whether DTX is enabled or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpusCodec

        public OpusCodec()
      • OpusCodec

        public OpusCodec​(boolean useDtx)
        A constructor to initialize the OpusCodec with non-default attributes.
        Parameters:
        useDtx - Discontinuous transmission reduces the bitrate for certain input signals, like periods of silence [RFC-7587 3.1.3](https://tools.ietf.org/html/rfc7587#section-3.1.3). The default is false. This setting applies to sender and receiver transmission.
    • Method Detail

      • isDtxEnabled

        public boolean isDtxEnabled()
        Reports whether DTX is enabled or not.
        Returns:
        true if DTX is enabled.