명령줄에서 오디오 밸런스 설정

명령줄에서 오디오 밸런스 설정

명령줄(Linux)에서 오디오 밸런스를 설정하고 싶습니다. 'aumix'를 살펴봤지만(검색해 본 결과) 옵션이 없는 것 같습니다. 어떤 방법을 제안해 주실 수 있나요?

답변1

와 함께믹서를 사용하면 왼쪽 및 오른쪽 ALSA 채널의 볼륨을 설정할 수 있습니다. 예를 들어,

amixer sset Master 80%,20%

균형을 왼쪽으로 이동하게 됩니다.

답변2

나는 이 답변을 찾기 위해 모든 곳을 검색했고 여기에 내가 얻은 것이 있습니다.

  1. 알사믹서를 다운로드하세요.
  2. 설정으로 이동하여 "alsa_amixer 컨트롤" 또는 모드 아래의 두 번째 옵션을 선택하세요.
  3. 모든 명령에서 "Headphone Volume"을 검색하고 값을 63,0 또는 0,63으로 변경합니다.

답변3

MacOS를 사용하는 경우 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

관련 정보