tsc-audio: echo cancellation, noise suppression, gain control, VAD, client volume, device hotplug
- process: Processor on sonora (pure Rust WebRTC APM: AEC3, NS, AGC2, high-pass) with serde ProcessingSettings; far end fed from what is played - vad: level gate with hangover, optional RNN speech probability - mixer: Mixer wraps the vendored AudioHandler with per-client volume/mute - settings: AudioSettings bundles transmit mode, processing, VAD, devices - device: stable device ids, default flags, loss detection through the error callback, Managed reopen/fallback policy - tests: synthetic echo >= 10 dB, noise suppression keeps tone bursts, per-client gain, one-hour drift simulation at +-200 ppm - dev profile optimises the sonora crates (real-time in debug builds) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
12 files changed
+1716
-26
No files matched your search
+17
@@ -59,6 +59,23 @@ all = { level = "warn", priority = -1 }
|
||||
# it takes seconds.
|
||||
opt-level = 3
|
||||
|
||||
# Audio processing (echo cancellation, noise suppression) runs in real time on
|
||||
# every 10 ms of microphone audio; unoptimized it needs about a third of a core.
|
||||
[profile.dev.package.sonora]
|
||||
opt-level = 3
|
||||
[profile.dev.package.sonora-aec3]
|
||||
opt-level = 3
|
||||
[profile.dev.package.sonora-agc2]
|
||||
opt-level = 3
|
||||
[profile.dev.package.sonora-common-audio]
|
||||
opt-level = 3
|
||||
[profile.dev.package.sonora-fft]
|
||||
opt-level = 3
|
||||
[profile.dev.package.sonora-ns]
|
||||
opt-level = 3
|
||||
[profile.dev.package.sonora-simd]
|
||||
opt-level = 3
|
||||
|
||||
[profile.dev]
|
||||
# Line tables (for backtraces) for workspace crates, no debug info for
|
||||
# dependencies: keeps target/ several times smaller. Override locally for
|
||||
|
||||
Reference in new issue
Block a user