Skip to content

Instantly share code, notes, and snippets.

@lpenz
Last active March 26, 2017 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpenz/218b6efc05689ec73446fb223b518d07 to your computer and use it in GitHub Desktop.
Save lpenz/218b6efc05689ec73446fb223b518d07 to your computer and use it in GitHub Desktop.
Join audio sink channels into a single mono channel, for stereo audio files with sound in only a channel
#!/bin/bash
set -e -x
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment