Closed StuartIanNaylor closed 1 year ago
I am doing the same again @Rikorose Hendrik as libdeep_filter_ladspa.so is 10mb larger than the release version and apols but apart from cargo build --release
I really struggle how to build for specifics with Rust.
I guess I can just turn the logging to a much lower level and compile but once more just need the specific compile for the ladspa
Which do you recommend logging error or just off ?
You can silence the logging via the environmental variable RUST_LOG=ERROR
. I will add some more documentation about this and also about compiling.
Cheers Hendrik PS I found a solution anyway as it gets lost in a pcm chain.
/etc/asound.conf
pcm.ladspa {
type ladspa
slave.pcm "agcin";
path "/usr/lib/ladspa";
plugins [{
label deep_filter_mono
input {
control [ "Attenuation Limit (dB)" 28 ]
}
}]
}
pcm.deepfilter {
type=plug
slave = {
pcm "ladspa"
channels 1
rate 48000}
}
pcm.agcin {
type speex
slave.pcm "plughw:1,0"
agc 1
agc_level 8000
denoise no
dereverb no
}
pcm.agcout {
type speex
slave.pcm "deepfilter"
agc 1
agc_level 8000
denoise no
dereverb no
}
Posting as well as using speexdsp on pre and post filter is working great with my KWS with no retraining of data. PS anyone using speex dsp not sure why as its absolutely ancient but rc1 of speex and speexdsp is installed in debians whilst asound_plugins expects the release so git clone the latest and gran the asound_plugins source and recompile. I did a bit of a rough howto on https://community.rhasspy.org/t/asound-conf-agc-denoise/1361 PS turn off denoise as its not in the same universe as DeepFilterNet
Also maybe due to be called via another process but RUST_LOG=ERROR
doesn't work
Hm I run it via a pipewire user space process, so using env vars works here. FYI: You may also set envs for an alsa systemd service via the service file.
@Rikorose Hendrik would you give me the right build command as apols as after cargo build --release
I can never seem to work out specifics but it produces a ladsap plugin about 10mb bigger than the release version so presume that is not right.
I may hack out the log entries or maybe add another control to log or not?
You can look at the publish CI for the exact command: https://github.com/Rikorose/DeepFilterNet/blob/main/.github/workflows/publish.yml#L430
I also added instructions here: https://github.com/Rikorose/DeepFilterNet/tree/main/ladspa
The size may also depend on the exact commit. Since 0.3.1, the model has been updated so expect a different size.
Edit: The ladspa plugin should be around 25 MB again. Please update to latest main.
Doh now I am getting it so workflows/publish.yml is what I was looking for apols for my stupidity as it was there to be found.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Anyone got any ideas as think I got pipewire going as pipewire noob
Dunno went for Alsa as more used to it as struggling with pipewire on Ubuntu22.04
Using the slave allows resampling but does anyone no how to turn off the info?
Even though its an alsa ladsap plugin the calling recording app gets all the filters stdout?
@Rikorose Is there a silent or quiet mode in the ladspa commands?