I'd like to set audio balance from command line (linux), I'v looked at 'aumix' (and googled around) but it seems it does not have an option... can you suggest any method?
3 Answers
With amixer, you can set the volumes of the left and right ALSA channels. For example,
amixer sset Master 80%,20%
will shift the balance toward the left.
-
what's the difference between
set
andsset
, andget
andsget
? The help doesn't mention it. Feb 14, 2016 at 9:03 -
3A look into the source code shows there is no difference on modern versions of alsa-utils.
set
andget
where introduced in commit c569788bf207a0aa6e4a475e36062a3546b689bb, for compatibility with a mixer API. So both work fine.– phihagFeb 14, 2016 at 20:57 -
3
I searched everywhere for this answer and here what I got
- Download Alsamixer.
- Go to settings and select "alsa_amixer controls" or the second option under the mode
- From all commands search for "Headphone Volume" and change the values to 63,0 or 0,63.
-
1
If you are using MacOS you create an AppleScript:
# Start preferences with the right page
tell application "System Preferences"
activate
reveal anchor "output" of pane id "com.apple.preference.sound"
delay 0.5 -- If you get an error, it's possible this delay isn't long enough.
end tell
# Set volume balance to normal
tell application "System Events"
tell slider 1 of group 1 of tab group 1 of window 1 of process "System Preferences"
set value to 0.2
end tell
end tell
# Quit system preferences
tell application "System Preferences"
quit
end tell
alsamixer
gives GUI in terminal, but it is not probably what you want