AudioProfileType enum

Sound quality

Inheritance

Constructors

AudioProfileType()
const

Values

def → const AudioProfileType

Default sound quality

The sound quality is configured via the RoomProfile sent from the server or set by the client.

fluent → const AudioProfileType

Fluent

  • Sample rate: 16 KHz
  • Mono-channel
  • Encoding bitrate: 32 Kbps

Low resource consumption and small network packets guarantee a smooth call. It is suitable for most game scenarios, such as team-wide voice chat, group-wide voice chat, nation-wide voice chat.

standard → const AudioProfileType

Mono-channel standard

  • Sample rate: 24 KHz
  • Encoding bitrate: 48 Kbps

For scenarios where distinct voice quality is required, you can choose this mode, which achieves balanced latency, consumption, and network packets. It is suitable for educational Apps and the online Mafia Games.

hd → const AudioProfileType

Dual-channel music

  • Sample rate: 48 KHz
  • Encoding bitrate: 128 Kbps

This mode provides high-resolution audio at a cost of high latency, consumption, and large network packets. It is suitable for music Apps such as co-hosting and online talent contests.
Not recommended for game Apps.

standardStereo → const AudioProfileType

Dual-channel standard

  • Sample rate: 48 KHz
  • Encoding bitrate: 80 Kbps
hdMono → const AudioProfileType

Mono-channel music

  • Sample rate: 48 KHz
  • Encoding bitrate: 64 Kbps

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AudioProfileType>
A constant List of the values in this enum, in order of their declaration.