This document describes how to choose sound quality in the GME SDK.
|Sound Quality Type||Description||Parameter||Bitrate||Sample Rate||Volume Type||Applicable Scenario|
|ITMG_ROOM_TYPE_FLUENCY||Smooth||1||30 Kbps||16 kHz||Smooth sound quality and ultra-low delay, which is suitable for group chat in games like FPS and MOBA games.|
|ITMG_ROOM_TYPE_STANDARD||Standard||2||64 Kbps||48 kHz||Good sound quality with a moderate latency, which is suitable for voice chat in casual games such as Werewolves and board games.|
|ITMG_ROOM_TYPE_HIGHQUALITY||HD||3||64 Kbps||48 kHz||HD sound quality with a relatively high latency, which is suitable for music and dancing games that require high sound quality such as music playback and online karaoke.|
Currently, only the ITMG_ROOM_TYPE_FLUENCY audio quality type is provided by default. To use other audio quality types, submit a ticket.
Two volume modes are configured in a mobile phone: Media volume and call volume. Media volume is generally used to playback media files, and call volume is used in phone calls and communications.
For an Android mobile phone, the current volume mode is displayed on the screen when you press the volume key. As shown below, the call volume is on the left and the media volume is on the right.
Q: What should I do if the mobile phone volume level becomes very low after room entry but becomes very high after mic-on? A: Troubleshoot as instructed in Sound and Audio.
There are two Bluetooth headset protocols with different audio performance:
|Protocol||Playback Performance||Capturing Performance|
|HFP||The headset audio is mono only.||The headset audio can be captured.|
|A2DP||The headset audio is stereo and has a better audio quality.||The headset audio cannot be directly captured through this channel, and you need to use the phone or the PC mic to capture the audio.|
The traffic is subject to the bitrate and number of users speaking in the room. The specific calculation formula is: bitrate * number of users / 8 = number of bytes.
The audio signal is collected by the capturing module on the mobile device, and is encoded by an audio encoder after audio preprocessing processes such as mixing cancellation, noise reduction, and automatic gain control. The methods used in the preprocessing processes, acoustic echo canceling (AEC), automatic gain control (AGC), and automatic noise suppression (ANS, also known as noise cancellation and noise suppression), are commonly known as 3A.