NoiseTorch icon indicating copy to clipboard operation
NoiseTorch copied to clipboard

Deal with fake stereo microphones

Open lawl opened this issue 4 years ago • 3 comments

Some microphones report being stereo, but only supply valid audio on one channel, see #78

We should research if we can get PA to properly downmix these for us, so that if the wrong channel is picked, we don't just get silence. A consideration is that the other channel may also be static and that's not possible.

I'm not sure to which extent we should work around broken hardware in software.

lawl avatar Jan 27 '21 04:01 lawl

I am not sure if it is something this application needs to handle, as the mic in that config would generally not behave as intended. To work around this issue I am simply creating a separate device in /etc/pulse/default.pa:

# separate device for the mic input (left channel of the stereo source)
# https://askubuntu.com/questions/1179356/split-stereo-usb-audio-interface-line-in-to-two-mono-devices
load-module module-remap-source source_name=Focusrite_Mic source_properties="device.description='Focusrite Mic'" master=alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y7KKNF4053B26F-00.analog-stereo master_channel_map=front-left,front-left channel_map=front-left,front-right

And this new device is then used as the NoiseTorch source.

inv3rse avatar Mar 30 '21 08:03 inv3rse

@inv3rse I tend to agree that we shouldn't handle this. Do you mind if I take your work around and add it to the wiki?

lawl avatar Mar 31 '21 11:03 lawl

Sounds good.

inv3rse avatar Apr 01 '21 11:04 inv3rse