Skip to content

deps: bump sonora from 0.2.0 to 0.3.0 - #143

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sonora-0.3.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sonora-0.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps sonora from 0.2.0 to 0.3.0.

Release notes

Sourced from sonora's releases.

v0.3.0

The port now tracks M145 plus 15 later upstream WebRTC changes, up to M156. cpp/NEWS lists them. Three of them (multi-channel defaults, shared comfort noise, joint coarse/refined filter choice) were already in 0.2.0.

Code written for 0.2.0 compiles unchanged. The version is 0.3.0 because of the behaviour changes below, which change the output for some callers.

Behaviour changes

  • Input volume controller: the default config is now upstream's production config (upstream d9b92fe1bc). With input_volume_controller enabled, recommended_stream_analog_level() targets a speech level in [-50, -12] dBFS instead of [-30, -18] dBFS, updates the volume from the speech level at most once every 100 frames, and also lowers it when clipping is predicted. The controller does not modify samples itself, but its recommendation reaches the output whenever it is applied: through capture_level_adjustment.analog_mic_gain_emulation, or when the caller passes it back with set_stream_analog_level(), where each volume change resets AGC2's adaptive digital level estimate and, with the echo canceller enabled, signals an echo path gain change to AEC3. So the output changes for callers that apply the recommendation.
  • Floating-point environment: like upstream, each process_* call now sets hardware flush-to-zero for its duration (MXCSR FTZ and DAZ on x86/x86_64 with SSE, FPCR.FZ on aarch64 with NEON). This targets the AEC3 slowdown on x86 while the render reference is silent (#34). Code that a call reaches, such as tracing subscribers and the global allocator, runs in that mode, and the output can differ by tiny amounts on near-silent input. Upstream sets the x86 bits only in clang builds, so on x86 a caller that replaces a GCC-built C++ library gets FTZ/DAZ where it had IEEE gradual underflow. Changing the floating-point environment is formally undefined behavior in Rust, and upstream's DenormalDisabler, nih-plug and the no_denormals crate also change it; sonora sets flush-to-zero only on the calling thread and restores that thread's setting after each call, but a thread started during a call can inherit flush-to-zero and keep it (on Linux, for example). Other targets do not flush and log "Denormal disabler unsupported" when the processor is built. The "Floating-point environment" section on AudioProcessing has the details.
  • Arithmetic on targets without native FMA (#37): on x86/x86_64 without the fma target feature (including the default x86_64 target), i686, armv7, wasm32 and riscv64, the biquad filters, the three-band filter bank and fft4g now use the C++ expressions instead of f32::mul_add, which compiled to an fmaf library call there. The pipeline is 1.1-2.2x faster on default x86_64, and output differs from 0.2.0 by small rounding amounts on those targets, closer to C++. AArch64 and x86 built with fma are unchanged. New: sonora_simd::NATIVE_FMA; sonora-fft now depends on sonora-simd.

Other changes

  • AudioProcessingBuilder::echo_canceller3_config sets the AEC3 tuning (#47, building on #41 by Roman Ernst), like C++ SetEchoCancellerConfig without a multichannel config. The configuration also applies to multichannel render, and an invalid one is clamped to valid ranges with a warning. EchoCanceller3Config is re-exported from sonora::config.
  • AGC2 no longer allocates in steady state (#47, building on #41 by Roman Ernst). sonora-agc2 adds Limiter::process_owned_signal, AdaptiveDigitalGainController::process_owned_frame, GainApplier::apply_gain_to_owned_signal and NoiseLevelEstimator::analyze_owned_frame; the existing methods keep their signatures.
  • Echo cancellation no longer allocates in steady state (#40, building on #39 by Roman Ernst): through the float and int16 APIs, with rate conversion, downmixing and stereo. sonora-aec3 adds FrameBlocker::insert_owned_sub_frame_and_extract_block; the existing method keeps its signature.
  • AEC3: ports the render buffer headroom fix for underruns (d460e60e19). Two further changes are internal and change no behaviour: the code that applies suppressor config updates (e10cd19640) is ported, but nothing in the port triggers it, and the code for three field-trial kill switches that the port never enabled is removed.
Changelog

Sourced from sonora's changelog.

0.3.0

The port now tracks M145 plus 15 later upstream WebRTC changes, up to M156. cpp/NEWS lists them. Three of them (multi-channel defaults, shared comfort noise, joint coarse/refined filter choice) were already in 0.2.0.

Code written for 0.2.0 compiles unchanged. The version is 0.3.0 because of the behaviour changes below, which change the output for some callers.

Behaviour changes

  • Input volume controller: the default config is now upstream's production config (upstream d9b92fe1bc). With input_volume_controller enabled, recommended_stream_analog_level() targets a speech level in [-50, -12] dBFS instead of [-30, -18] dBFS, updates the volume from the speech level at most once every 100 frames, and also lowers it when clipping is predicted. The controller does not modify samples itself, but its recommendation reaches the output whenever it is applied: through capture_level_adjustment.analog_mic_gain_emulation, or when the caller passes it back with set_stream_analog_level(), where each volume change resets AGC2's adaptive digital level estimate and, with the echo canceller enabled, signals an echo path gain change to AEC3. So the output changes for callers that apply the recommendation.
  • Floating-point environment: like upstream, each process_* call now sets hardware flush-to-zero for its duration (MXCSR FTZ and DAZ on x86/x86_64 with SSE, FPCR.FZ on aarch64 with NEON). This targets the AEC3 slowdown on x86 while the render reference is silent (#34). Code that a call reaches, such as tracing subscribers and the global allocator, runs in that mode, and the output can differ by tiny amounts on near-silent input. Upstream sets the x86 bits only in clang builds, so on x86 a caller that replaces a GCC-built C++ library gets FTZ/DAZ where it had IEEE gradual underflow. Changing the floating-point environment is formally undefined behavior in Rust, and upstream's DenormalDisabler, nih-plug and the no_denormals crate also change it; sonora sets flush-to-zero only on the calling thread and restores that thread's setting after each call, but a thread started during a call can inherit flush-to-zero and keep it (on Linux, for example). Other targets do not flush and log "Denormal disabler unsupported" when the processor is built. The "Floating-point environment" section on AudioProcessing has the details.
  • Arithmetic on targets without native FMA (#37): on x86/x86_64 without the fma target feature (including the default x86_64 target), i686, armv7, wasm32 and riscv64, the biquad filters, the three-band filter bank and fft4g now use the C++ expressions instead of f32::mul_add, which compiled to an fmaf library call there. The pipeline is 1.1-2.2x faster on default x86_64, and output differs from 0.2.0 by small rounding amounts on those targets, closer to C++. AArch64 and x86 built with fma are unchanged. New: sonora_simd::NATIVE_FMA; sonora-fft now depends on sonora-simd.

Other changes

  • AudioProcessingBuilder::echo_canceller3_config sets the AEC3 tuning (#47, building on #41 by Roman Ernst), like C++ SetEchoCancellerConfig without a multichannel config. The configuration also applies to multichannel render, and an invalid one is clamped to valid ranges with a warning. EchoCanceller3Config is re-exported from sonora::config.
  • AGC2 no longer allocates in steady state (#47, building on #41 by Roman Ernst). sonora-agc2 adds Limiter::process_owned_signal, AdaptiveDigitalGainController::process_owned_frame, GainApplier::apply_gain_to_owned_signal and NoiseLevelEstimator::analyze_owned_frame; the existing methods keep their signatures.
  • Echo cancellation no longer allocates in steady state (#40, building on #39 by Roman Ernst): through the float and int16 APIs, with rate conversion, downmixing and stereo. sonora-aec3 adds FrameBlocker::insert_owned_sub_frame_and_extract_block; the existing method keeps its signature.
  • AEC3: ports the render buffer headroom fix for underruns (d460e60e19). Two further changes are internal and change no behaviour: the code that applies suppressor config updates (e10cd19640) is ported, but nothing in the port triggers it, and the code for three field-trial kill switches that the port never enabled is removed.
Commits
  • 1632d47 chore: Release
  • c6bbfda Merge pull request #48 from dignifiedquire/release-prep-0.3.0
  • 315f65d chore: update lockfiles
  • 0f0f4cc docs(changelog): title the unreleased changes 0.3.0, behaviour changes first
  • ab39e59 docs(changelog): add the 0.2.0 section and mark 0.1.0 as released
  • 2db4315 Merge pull request #47 from dignifiedquire/aec3-config-agc2-followup
  • 00da3e8 docs(changelog): add the entries for #47
  • 44a95da fix(sonora): warn when a custom AEC3 config is clamped
  • 7a81a5f fix(sonora): preallocate every AGC2 channel buffer
  • 33f0a55 fix(agc2): keep the 0.2.0 signatures of the gain stages
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Bumps [sonora](https://github.com/dignifiedquire/sonora) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/dignifiedquire/sonora/releases)
- [Changelog](https://github.com/dignifiedquire/sonora/blob/main/CHANGELOG.md)
- [Commits](dignifiedquire/sonora@sonora-v0.2.0...sonora-v0.3.0)

---
updated-dependencies:
- dependency-name: sonora
  dependency-version: 0.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants