Package io.agora.rtc2

Enum Class Constants.AudioProfile

java.lang.Object
java.lang.Enum<Constants.AudioProfile>
io.agora.rtc2.Constants.AudioProfile
All Implemented Interfaces:
Serializable, Comparable<Constants.AudioProfile>, Constable
Enclosing class:
Constants

public static enum Constants.AudioProfile extends Enum<Constants.AudioProfile>
Sets the audio profile sampling rate, bitrate, encode mode, and the number of channels.
  • Enum Constant Details

    • DEFAULT

      public static final Constants.AudioProfile DEFAULT
      0: The default audio profile. - In the Communication profile, the default value is the same with `AUDIO_PROFILE_SPEECH_STANDARD`(1). - In the Live-broadcast profile, it represents a sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
    • SPEECH_STANDARD

      public static final Constants.AudioProfile SPEECH_STANDARD
      1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate up to 18 Kbps.
    • MUSIC_STANDARD

      public static final Constants.AudioProfile MUSIC_STANDARD
      2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
    • MUSIC_STANDARD_STEREO

      public static final Constants.AudioProfile MUSIC_STANDARD_STEREO
      3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps.
    • MUSIC_HIGH_QUALITY

      public static final Constants.AudioProfile MUSIC_HIGH_QUALITY
      4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 96 Kbps.
    • MUSIC_HIGH_QUALITY_STEREO

      public static final Constants.AudioProfile MUSIC_HIGH_QUALITY_STEREO
      5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps.
  • Method Details

    • values

      public static Constants.AudioProfile[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Constants.AudioProfile valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public static int getValue(Constants.AudioProfile type)