Package io.agora.rtc2
Enum Class Constants.AudioProfile
- All Implemented Interfaces:
Serializable,Comparable<Constants.AudioProfile>,Constable
- Enclosing class:
- Constants
Sets the audio profile sampling rate, bitrate, encode mode, and the number of channels.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription0: The default audio profile.4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 96 Kbps.5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps.2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps.1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate up to 18 Kbps. -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic Constants.AudioProfileReturns the enum constant of this class with the specified name.static Constants.AudioProfile[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate up to 18 Kbps. -
MUSIC_STANDARD
2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps. -
MUSIC_STANDARD_STEREO
3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps. -
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
5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
-