|
PipeWire 1.6.4
|
Toggle the rnnoise noise suppression source
rnnoise-toggle [-q] on
rnnoise-toggle [-q] off [\fIsource\fR]
rnnoise-toggle [-q] status
rnnoise-toggle -h
rnnoise-toggle switches the default PipeWire capture source to or from the rnnoise noise-suppression source (effect_output.rnnoise).
It is a convenience wrapper around pactl set-default-source that complements the rnnoise filter-chain configuration (see source-rnnoise.conf).
When enabling noise suppression with the on command, the current default source is saved to a per-user runtime state file ($XDG_RUNTIME_DIR/rnnoise-toggle-original-source) so that it can be restored later. When disabling with off, the saved source is restored automatically unless an explicit source name is given. The state file is cleared on logout/reboot, which is the desired behaviour since the saved source name may not be valid after reinitialisation.
The state file is written atomically and with access mode 0600 to prevent tampering or race conditions. Source names passed to off or read from the state file are validated to contain only safe characters (a-z A-Z 0-9 . _ -). All toggle actions (on, off, success, failure) are logged to the system journal via logger -t rnnoise-toggle for audit purposes.
effect_output.rnnoise. The current default source is saved to the state file. Fails if the rnnoise source node is not present, indicating that the filter-chain configuration is not loaded.on when the default source is effect_output.rnnoise, off otherwise. If pactl fails to query the default source (e.g. pipewire-pulse is not running), the command prints an error to standard error and exits with code 3 instead of printing a potentially misleading off.pactl was not found in PATH.pactl command failed: the rnnoise source is not available, setting the default source failed, or querying the default source failed (in status mode).rnnoise-toggle on
rnnoise-toggle off
rnnoise-toggle off alsa_input.pci-0000_00_1f.3.HiFi__Mic__source
state=$(rnnoise-toggle status)
The PipeWire Developers https://github.com/deepin-community/pipewire/issues; PipeWire is available from https://github.com/deepin-community/pipewire
pipewire(1), pw-cli(1), pactl(1)
The rnnoise filter-chain configuration is typically located at: /usr/share/pipewire/filter-chain.conf.d/source-rnnoise.conf