Enum ZegoANSMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZegoANSMode>

    public enum ZegoANSMode
    extends java.lang.Enum<ZegoANSMode>
    Active Noise Suppression mode.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ZegoANSMode getZegoANSMode​(int value)  
      int value()  
      static ZegoANSMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ZegoANSMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SOFT

        public static final ZegoANSMode SOFT
        Soft ANS. In most instances, the sound quality will not be damaged, but some noise will remain.
      • MEDIUM

        public static final ZegoANSMode MEDIUM
        Medium ANS. It may damage some sound quality, but it has a good noise reduction effect.
      • AGGRESSIVE

        public static final ZegoANSMode AGGRESSIVE
        Aggressive ANS. It may significantly impair the sound quality, but it has a good noise reduction effect.
      • AI

        public static final ZegoANSMode AI
        AI mode ANS. It will cause great damage to music, so it can not be used for noise suppression of sound sources that need to collect background sound. Please contact ZEGO technical support before use.
      • AI_BALANCED

        public static final ZegoANSMode AI_BALANCED
        Balanced AI mode ANS. It will cause great damage to music, so it can not be used for noise suppression of sound sources that need to collect background sound. Please contact ZEGO technical support before use.
      • AI_LOW_LATENCY

        public static final ZegoANSMode AI_LOW_LATENCY
        Low latency AI mode ANS. It will cause great damage to music, so it can not be used for noise suppression of sound sources that need to collect background sound. Please contact ZEGO technical support before use.
    • Method Detail

      • values

        public static ZegoANSMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZegoANSMode c : ZegoANSMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoANSMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public int value()
      • getZegoANSMode

        public static ZegoANSMode getZegoANSMode​(int value)