RTC Room Engine
SDK to implement audio effect settings.RTC Room Engine
SDK, you need to complete the SDK login.setAllMusicVolume
API and passing an Int value.setAllMusicVolume
to set the background music volume:import RTCRoomEngineimport TXLiteAVSDK_Professionallet audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager()let volume = 60audioEffectManager.setAllMusicVolume(volume)
TXAudioEffectManager audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager();int volume = 60;audioEffectManager.setAllMusicVolume(volume);
setVoiceVolume
API and passing an Int value.setVoiceVolume
to set the voice volume to 60:import RTCRoomEngineimport TXLiteAVSDK_Professionallet audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager()let volume = 60audioEffectManager.setVoiceVolume(volume)
TXAudioEffectManager audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager();int volume = 60;audioEffectManager.setVoiceCaptureVolume(volume);
enableVoiceEarMonitor
API and passing a Bool value.enableVoiceEarMonitor
API to enable IEMs:import RTCRoomEngineimport TXLiteAVSDK_Professionallet audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager()let enable = trueaudioEffectManager.enableVoiceEarMonitor(enable)
TXAudioEffectManager audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager();boolean enable = true;audioEffectManager.enableVoiceEarMonitor(enable);
setVoiceEarMonitorVolume
API and passing an Int value.setVoiceEarMonitorVolume
API to set the ear monitoring volume to 60:import RTCRoomEngineimport TXLiteAVSDK_Professionallet audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager()let volume = 60audioEffectManager.setVoiceEarMonitorVolume
(volume)
TXAudioEffectManager audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager();int volume = 60;audioEffectManager.setVoiceEarMonitorVolume(volume);
setVoiceChangerType
API and passing a TXVoiceChangeType
value.TXVoiceChangeType
is an enumeration that includes the following types:Enumeration | Value | Description |
TXVoiceChangeType_0 | 0 | Off |
TXVoiceChangeType_1 | 1 | Naughty kid |
TXVoiceChangeType_2 | 2 | Lolita |
TXVoiceChangeType_3 | 3 | Uncle |
TXVoiceChangeType_4 | 4 | Heavy metal |
TXVoiceChangeType_5 | 5 | Cold |
TXVoiceChangeType_6 | 6 | Foreign accent |
TXVoiceChangeType_7 | 7 | Trapped beast |
TXVoiceChangeType_8 | 8 | Otaku |
TXVoiceChangeType_9 | 9 | Strong electric current |
TXVoiceChangeType_10 | 10 | Heavy Machinery |
TXVoiceChangeType_11 | 11 | Ethereal voice |
setVoiceChangerType
API to set the voice changing effect to Naughty Kid:import RTCRoomEngineimport TXLiteAVSDK_Professionallet audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager()let type: TXVoiceChangeType = ._1audioEffectManager.setVoiceChangerType
(type)
TXAudioEffectManager audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager();TXAudioEffectManager.TXVoiceChangerType type = TXAudioEffectManager.TXVoiceChangerType.TXLiveVoiceChangerType_1;audioEffectManager.setVoiceChangerType(type);
setVoiceReverbType
API and passing a TXVoiceReverbType
value.TXVoiceReverbType
is an enumeration that includes the following types:Enumeration | Value | Description |
TXVoiceReverbType_0 | 0 | Turn off effects |
TXVoiceReverbType_1 | 1 | KTV |
TXVoiceReverbType_2 | 2 | Small Room |
TXVoiceReverbType_3 | 3 | Hall |
TXVoiceReverbType_4 | 4 | Low-pitched |
TXVoiceReverbType_5 | 5 | Loud |
TXVoiceReverbType_6 | 6 | Metallic sound |
TXVoiceReverbType_7 | 7 | Magnetic |
TXVoiceReverbType_8 | 8 | Ethereal voice |
TXVoiceReverbType_9 | 9 | Recording studio |
TXVoiceReverbType_10 | 10 | Melodious |
TXVoiceReverbType_11 | 11 | Recording studio 2 |
setVoiceReverbType
API to set the reverb effect to KTV:import RTCRoomEngineimport TXLiteAVSDK_Professionallet audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager()let type: TXVoiceReverbType = ._1audioEffectManager.setVoiceReverbType
(type)
TXAudioEffectManager audioEffectManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getAudioEffectManager();TXAudioEffectManager.TXVoiceReverbType type = TXAudioEffectManager.TXVoiceReverbType.TXLiveVoiceReverbType_1;audioEffectManager.setVoiceReverbType(type);
Was this page helpful?