werman / noise-suppression-for-voice

Noise suppression plugin based on Xiph's RNNoise
GNU General Public License v3.0
4.8k stars 229 forks source link

Created virtual device defaults as an output #103

Open ellieisjelly opened 2 years ago

ellieisjelly commented 2 years ago

While using pulseaudio, on ubuntu 20.04, i follow all the instructions and yet when they are done, the monitor and Null Output are classified as outputs, not inputs. i've checked using ubuntu's sound manager and also using other applications like discord. I would like some help

werman commented 2 years ago

Please attach the output of pactl list as a file and post your config here.

ellieisjelly commented 2 years ago

my config: pacmd load-module module-null-sink sink_name=mic_denoised_out rate=44000 load-module module-ladspa-sink sink_name=mic_raw_in sink_master=mic_denoised_out label=noise_suppressor_mono plugin=/my/path/to/librrnoise_ladspa.so control=50 load-module module-loopback source=alsa_input.pci-0000_08_00.6.analog-stereo sink=mic_raw_in channels=1 source_dont_move=true sink_dont_move=true output: output.txt

werman commented 2 years ago

You attach something like pactl list short but I need the full list - pactl list

ellieisjelly commented 2 years ago

You attach something like pactl list short but I need the full list - pactl list

here: output2.txt

ellieisjelly commented 2 years ago

here: output2.txt

I should also clarify that i want the noise suppression for my rear microphone, not front

werman commented 2 years ago

Configuration is probably alright. Likely you are using discord in Chromium or its derivatives so you should also do:

Chrome and other Chromium based browsers will ignore monitor devices and you will not be able to select the "Monitor of Null Output". To work around this, either use pavucontrol to assign the input to Chrome, or remap this device in PulseAudio to create a regular source:

pacmd load-module module-remap-source source_name=denoised master=mic_denoised_out.monitor channels=1

the monitor and Null Output are classified as outputs, not inputs.

Yes: https://github.com/werman/noise-suppression-for-voice/issues/57#issuecomment-727204400

ellieisjelly commented 2 years ago

Configuration is probably alright. Likely you are using discord in Chromium or its derivatives so you should also do:

Chrome and other Chromium based browsers will ignore monitor devices and you will not be able to select the "Monitor of Null Output". To work around this, either use pavucontrol to assign the input to Chrome, or remap this device in PulseAudio to create a regular source:

pacmd load-module module-remap-source source_name=denoised master=mic_denoised_out.monitor channels=1

the monitor and Null Output are classified as outputs, not inputs.

Yes: #57 (comment)

i will try again and see if it'll work this time

ellieisjelly commented 2 years ago

i will try again and see if it'll work this time

what im getting from the remapped input is silence, and silence only. is it possible that its denoising my front microphone (with nothing plugged on the port) and not my rear microphone (which is where my actual microphone is?

werman commented 2 years ago

Ugh, ugh, so alsa_input.pci-0000_08_00.6.analog-stereo has three ports:

    Ports:
        analog-input-front-mic: Front Microphone (priority: 8500, available)
        analog-input-rear-mic: Rear Microphone (priority: 8200, available)
        analog-input-linein: Line In (priority: 8100, not available)
    Active Port: analog-input-front-mic

and you want to get audio from the analog-input-rear-mic. You could try doing

pacmd set-source-port alsa_input.pci-0000_08_00.6.analog-stereo analog-input-rear-mic

But that's first time I'm seeing such case.

werman commented 2 years ago

Also afterwards, if Active Port becomes the one you need and you still would hear silence - try to check in pavucontrol that volumes aren't at near zero.

ellieisjelly commented 2 years ago

Ugh, ugh, so alsa_input.pci-0000_08_00.6.analog-stereo has three ports:

  Ports:
      analog-input-front-mic: Front Microphone (priority: 8500, available)
      analog-input-rear-mic: Rear Microphone (priority: 8200, available)
      analog-input-linein: Line In (priority: 8100, not available)
  Active Port: analog-input-front-mic

and you want to get audio from the analog-input-rear-mic. You could try doing

pacmd set-source-port alsa_input.pci-0000_08_00.6.analog-stereo analog-input-rear-mic

But that's first time I'm seeing such case.

i forgot to ask, but am i supposed to set the source port before or after all of the other commands? does the order even matter?

werman commented 2 years ago

I don't know - I have no idea how pulseaudio is working. TBH it would be more productive to ask them in your case.

ellieisjelly commented 2 years ago

I don't know - I have no idea how pulseaudio is working. TBH it would be more productive to ask them in your case.

lol what is my system that messed up