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?
Asked
Active
Viewed 2.1k times
15
-
1`alsamixer` gives GUI in terminal, but it is not probably what you want – Jul 31 '11 at 09:24
3 Answers
16
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.
phihag
- 2,737
- 23
- 33
-
what's the difference between `set` and `sset`, and `get` and `sget`? The help doesn't mention it. – Torben Gundtofte-Bruun Feb 14 '16 at 09:03
-
3A look into the source code shows there is no difference on modern versions of alsa-utils. `set` and `get` where introduced in commit c569788bf207a0aa6e4a475e36062a3546b689bb, for compatibility with a mixer API. So both work fine. – phihag Feb 14 '16 at 20:57
-
3
0
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
Alwin
- 101
- 3
0
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.
Nifle
- 34,203
- 26
- 108
- 137