- 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
36 lines
888 B
TOML
36 lines
888 B
TOML
[package]
|
|
name = "tsc-audio"
|
|
version = "0.1.0"
|
|
description = "Voice pipeline: Opus encoding, framing, resampling, jitter buffer/mixer and audio devices."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["device"]
|
|
# Audio device I/O through cpal (needs ALSA headers on Linux).
|
|
device = ["dep:cpal", "dep:rtrb"]
|
|
|
|
[dependencies]
|
|
cpal = { version = "0.18", optional = true }
|
|
hound = "3.5.1"
|
|
opus2 = "0.4"
|
|
rtrb = { version = "0.4.0", optional = true }
|
|
rubato = "5.0.0"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
sonora = "0.2"
|
|
sonora-agc2 = "0.2"
|
|
sonora-simd = "0.2"
|
|
thiserror = "2.0.21"
|
|
tracing = "0.1.44"
|
|
tsclientlib = { path = "../proto/tsclientlib" }
|
|
tsproto-packets = { path = "../proto/tsproto-packets" }
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1"
|
|
|
|
[lints]
|
|
workspace = true
|