MeetingEngine.setAudioCaptureProcessor, available since 2.0.43. The most common use is attaching the SRTC AI noise suppression plugin cn.seastart.rtc:denoise. It is based on DeepFilterNet3, uses the same algorithm and model as the Web and iOS SDKs, and lets you adjust the suppression strength and bypass it at runtime.
The plugin is a separate, optional dependency; apps that don’t use AI noise suppression don’t need it. For the plugin’s own API, strength, overload handling, and device checks, see the SRTC page AI noise suppression (DeepFilterNet). This page only covers how to wire it into a meeting.
1. Add the dependency
- Meeting
2.0.43transitively depends on RTC2.0.39, and the plugin requires RTC2.0.39or later, so the two versions match. - The plugin supports
arm64-v8aandarmeabi-v7a. The model is bundled, so you don’t need to copy any extra assets.
2. Enable and disable
3. Meeting-layer behavior
- The setting persists: once attached, it applies to all later meetings. After
release()and anotherinitSdk(), the SDK attaches it again automatically, so you don’t need to set it again. Passnullwhen you no longer need it. - The SDK holds a strong reference: when you replace it or clear it with
null, the SDK callsrelease()on the old processor, and the old instance can’t be used again. Create a new one to turn it back on. - Attaching turns off the built-in noise suppression of the system and WebRTC, and detaching restores it, so the two don’t stack and muffle voices. Echo cancellation and automatic gain control are not affected. Switching restarts microphone capture once, leaving a gap of under half a second. To turn noise suppression off temporarily, use the plugin’s
setEnabled(false), which doesn’t restart capture. - The local volume (speaker level) reflects the volume before noise suppression.
4. Unsupported devices and CPU overload
- Before enabling: only devices with low-performance little cores (common on some TVs, set-top boxes, and entry-level phones) are unsupported.
isSupported()returnsfalse, and the constructor throwsDenoiseNotSupportedException(102032). Check first, then show the switch. - While running: when the device stays overloaded, the plugin switches to bypass automatically to keep the call smooth and calls
overloadListener. Let the user know and let them decide whether to callsetEnabled(true)to turn it back on.
5. Custom capture processors
setAudioCaptureProcessor accepts any processor that implements the RTC AudioCaptureProcessor interface, such as a voice changer or your own noise suppression. For the interface contract, see the SRTC section Custom capture processors. Only one processor can be attached at a time.