Skip to content

Instantly share code, notes, and snippets.

@zwongeer
Created March 2, 2022 12:30
Show Gist options
  • Save zwongeer/c15be42faf9db1b8a3003890ce2d4f66 to your computer and use it in GitHub Desktop.
Save zwongeer/c15be42faf9db1b8a3003890ce2d4f66 to your computer and use it in GitHub Desktop.

https://askubuntu.com/questions/17791/can-i-downmix-stereo-audio-to-mono 1.Find the name of your audio sink by running

pacmd list-sinks | grep name:

2.Then run this command (taking care to remove the angled brackets from the result of previous command):

pacmd load-module module-remap-sink sink_name=mono master=NAME_OF_AUDIO_SINK_GIVEN_BY_PREVIOUS_COMMAND channels=2 channel_map=mono,mono

or add

load-module module-remap-sink sink_name=mono master=NAME_OF_AUDIO_SINK_GIVEN_BY_PREVIOUS_COMMAND channels=2 channel_map=mono,mono

to /etc/pulse/default.pa to have it run at startup. 3. Then in Sound Preferences choose "Mono" as the output, but remember to reduce volumes by half, since two channels are getting mixed into one, or else you'll have distortion. To test, run:

speaker-test -c 2 -t sine

Same thing in a single command:

pacmd load-module module-remap-sink sink_name=mono master=$(pacmd list-sinks | grep -m 1 -oP 'name:\s<\K.*(?=>)') channels=2 channel_map=mono,mono
  1. To remove the mono channel, just use:
pacmd unload-module module-remap-sink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment