#

Voice Games
Voice games, such as "Werewolf" and "Mafia", allow players to play games using their voices. The games control different stages through the app: allowing speaking, muting, allowing listening, and muting listening.
Speech Recognition (ASR)
Sud games, such as "Pictionary", "Guess the Word", "Number Bomb", support players to play games using speech recognition.
Integration Method:
Android, using version V1.3.2.1154 as an example: implementation 'tech.sud.mgp:SudASR:1.3.2.1154'
iOS: pod 'MicrosoftCognitiveServicesSpeech-iOS', '1.23.0'
Business Steps:
- The game starts ASR, sends MG_COMMON_GAME_ASR state to the app, isOpen=true
- App responds to MG_COMMON_GAME_ASR, isOpen=true, calls RTC interface to start collecting PCM data, and sends the PCM data to SudFSTAPPDecorator.pushAudio, can call the pushAudio interface in a working thread
PCM data format must be: sample rate: 16000, sample bit depth: 16, number of channels: MONO
PCM data length can be adjusted based on the effect, longer length: better accuracy but longer delay, shorter length: shorter delay but sacrifices accuracy - The game ends ASR, sends MG_COMMON_GAME_ASR state to the app, isOpen=false
- App responds to MG_COMMON_GAME_ASR, isOpen=false, calls RTC interface to stop collecting PCM data
Integration Documents for RTC Providers
- Zego Android Speech Recognition Access
- Zego iOS Speech Recognition Access
- Agora Android 4.x Speech Recognition Access
- Agora iOS 4.x Speech Recognition Access
- Tencent Cloud Android Speech Recognition Access
- Tencent Cloud iOS Speech Recognition Access
- Volcano Android Speech Recognition Access
- Volcano iOS Speech Recognition Access
- NetEase Android Speech Recognition Access
- NetEase iOS Speech Recognition Access
- Rongyun Android Speech Recognition Access
- Rongyun iOS Speech Recognition Access </div>