Skip to content
프로젝트

tonarino/webrtc-audio-processing

GitHub에서 보기

소개

Rust bindings for the webrtc-audio-processing library

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

webrtc-audio-processing

Crates.io Docs.rs dependency status

A wrapper around PulseAudio's repackaging of WebRTC's AudioProcessing module.

webrtc-audio-processing can remove echo from an audio input stream in the situation where a speaker is feeding back into a microphone, as well as noise-removal, auto-gain-control, voice-activity-detection, and more!

Example Usage

See examples/simple.rs for an example of how to use this crate.

Versioning

Major version of this Rust wrapper tracks the major version of the PulseAudio WebRTC AudioProcessing upstream; minor and patch versions are independent.

As a result, Rust webrtc-audio-processing doesn't fully conform to semantic versioning: for example version 2.3 can introduce an API-breaking change over 2.2. Patch versions are backwards compatible.

It is therefore suggested that you use tilde requirements when pulling this crate:

webrtc-audio-processing = "~2.0"

Building

Feature Flags

  • bundled - Build webrtc-audio-processing from the included C++ code; also enables symbol mangling in the built WebRTC library so that multiple major versions of webrtc-audio-processing can be linked together
  • serde - Derive serialize and deserialize traits for Serde use
  • experimental-aec3-config - allow access to detailed EchoCanceller3 config from the C++ code; experimental, not subject to semver guarantees; activates the bundled flag (needs private WebRTC headers)
  • experimental-unlink-ns - unlinks noise suppression between channels, preventing a loud/quiet channel from affecting the noise suppression applied to other channels; activates the bundled flag; requires patch to be installed

Development Feature Flags

  • portaudio - To build recording and karaoke examples. Does not affect the library build.

Dynamic linking

By default the build will attempt to dynamically link with the library installed via your OS's package manager.

You can specify an include path yourself by setting the environment variable WEBRTC_AUDIO_PROCESSING_INCLUDE.

Packages

sudo apt install libwebrtc-audio-processing-dev # Ubuntu/Debian
sudo pacman -S webrtc-audio-processing # Arch

Build from source

The webrtc source code is included as a git submodule. Be sure to clone this repo with the --recursive flag, or pull the submodule with git submodule update --init.

Building from source and static linking can be enabled with the bundled feature flag. You need the following tools to build from source:

  • clang or gcc
  • pkg-config (macOS: brew install pkg-config)
  • meson (masOS: brew install meson)
  • ninja-build (macOS: brew install ninja)

Publishing

  1. cargo release --verbose <new-version>, double-check and follow instructions
  2. Create a GitHub release from the pushed tag and highlight any important or breaking changes.

관련 프로젝트 살펴보기

불러오는 중…