noise-suppression-for-voice icon indicating copy to clipboard operation
noise-suppression-for-voice copied to clipboard

Created virtual device defaults as an output

Open ellieisjelly opened this issue 2 years ago • 13 comments

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

ellieisjelly avatar Jan 07 '22 04:01 ellieisjelly

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

werman avatar Jan 07 '22 20:01 werman

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

ellieisjelly avatar Jan 07 '22 21:01 ellieisjelly

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

werman avatar Jan 07 '22 21:01 werman

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

here: output2.txt

ellieisjelly avatar Jan 07 '22 21:01 ellieisjelly

here: output2.txt

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

ellieisjelly avatar Jan 07 '22 21:01 ellieisjelly

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

werman avatar Jan 07 '22 22:01 werman

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 avatar Jan 07 '22 22:01 ellieisjelly

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?

ellieisjelly avatar Jan 07 '22 22:01 ellieisjelly

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 avatar Jan 07 '22 22:01 werman

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.

werman avatar Jan 07 '22 22:01 werman

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?

ellieisjelly avatar Jan 09 '22 12:01 ellieisjelly

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

werman avatar Jan 09 '22 12:01 werman

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

ellieisjelly avatar Jan 09 '22 12:01 ellieisjelly