Skip to content

Add RNNoise for noise cancellation on Android #3

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,31 @@ android {

If necessary, in the same `build.gradle` you will need to increase `minSdkVersion` of `defaultConfig` up to `23` (currently default Flutter generator set it to `16`).

### Virtual Background (Work in Progress - Only Android)
The Virtual Background feature allows users to set a background image for their video stream during video calls. This feature is powered by the WebRTC plugin and enables users to replace their real background with a custom image.

#### How to Use

- Enable virtual background

```dart
final ByteData data = await rootBundle.load(
Assets.images.virtualBackgroundSimple.path,
);
final Uint8List virtualBackgroundImage = data.buffer.asUint8List();

rtc.Helper.enableVirtualBackground(
backgroundImage: virtualBackgroundImage,
thresholdConfidence: 0.6,
);
```

- Disable virtual background

```dart
rtc.Helper.disableVirtualBackground();
```

### Important reminder
When you compile the release apk, you need to add the following operations,
[Setup Proguard Rules](https://github.com/flutter-webrtc/flutter-webrtc/commit/d32dab13b5a0bed80dd9d0f98990f107b9b514f4)
Expand Down
Loading