NoiseTorch
NoiseTorch copied to clipboard
Deal with fake stereo microphones
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.
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 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?
Sounds good.