Skip to content
프로젝트

소개

명령줄에서 Mac OS X의 오디오 소스를 변경합니다.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
+6

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

switchaudio-osx

A command-line utility to switch the audio source on Mac OS X.

Description

This utility switches the audio source for Mac OS X.

You specify the name of the audio source, such as Built-in Digital Output, and the utility switches the source immediately without any GUI interaction.

This is a command-line utility only and has no graphical user interface. Tested on OS 10.7 - 11.2.

Installing from homebrew

brew install switchaudio-osx

Usage

SwitchAudioSource [-a] [-c] [-f format] [-t type] [-n] -s device_name | -i device_id | -u device_uid

  • -a : shows all devices
  • -c : shows current device
  • -f format : output format (cli/human/json). Defaults to human.
  • -t type : device type (input/output/system). Defaults to output.
  • -m mute_mode : sets the mute status (mute/unmute/toggle).
  • -n : cycles the audio device to the next one
  • -i device_id : sets the audio device to the given device by id
  • -u device_uid : sets the audio device to the given device by uid or a substring of the uid
  • -s device_name : sets the audio device to the given device by name

Muting

The -m flag can be used to mute input or output devices.

Define the device via -t.

Example for toggling the mute state for the currently selected input, e.g. microphone:

SwitchAudioSource -m toggle -t input

This is useful on a hotkey, e.g. to mute your Teams or Zoom input.

Thanks

Thanks to Christian Zuckschwerdt for migrating this to github and adding the next option.

License

MIT License, see license.txt

Copyright (c) 2008-2021 Devon Weller [email protected]
Copyright (c) 2011 Christian Zuckschwerdt [email protected]

관련 프로젝트 살펴보기

불러오는 중…