The Push software development kit (SDK), version 4.4.9 and later, offers an intelligent audio noise reduction feature to improve your stream ingest experience. This topic describes how to use intelligent audio noise reduction on Android.
Notes
The Basic and Interactive editions of the Push SDK support the intelligent audio noise reduction feature.
The Push SDK provides two audio denoising features: standard denoising and intelligent noise reduction. These features are mutually exclusive. You can only use one at a time.
The intelligent audio noise reduction feature will not work if the component is not integrated correctly.
If you need libraries for other instruction sets, contact technical support. For more information, see Developer support.
Environment requirements
Android Studio 3.0 or later. For more information, see Android Studio.
Android NDK 14 or later. For other prerequisites, see the requirements for compiling the demo.
Integrated development environment
Create an Android Studio project. For more information, see Android Developers.
Integrate the Push SDK. For more information, see SDK integration.
NoteIntegrate Push SDK version 4.4.9 or later. To download the SDK, see SDK download.
Integrate the intelligent audio noise reduction component.
Add the following code to the `dependencies` block in your project's `build.gradle` file:
implementation 'com.alivc.live.component:intelligentdenoise:1.0.0'Compile the project. A successful compilation indicates that the intelligent audio noise reduction component is integrated.
If a compilation conflict occurs due to duplicate `.so` files, use the `pickFirst` syntax from the demo project's Gradle file:
android { packagingOptions { pickFirst '**/libc++_shared.so' pickFirst '**/libMNN.so' } }Example of a compilation error:
Caused by: com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'lib/arm64-v8a/lib???.so'
Use the feature
To use the intelligent audio noise reduction feature, call the intelligent denoising API.
To enable intelligent audio noise reduction:
mAlivcLivePusher.startIntelligentDenoise();To disable intelligent audio noise reduction:
mAlivcLivePusher.stopIntelligentDenoise();
For an example of how to call the API and test the feature, see the Push Demo.