as-sound-switch is a small package for switching macOS audio input/output devices from our beloved Emacs.
- macOS
- Emacs 28.1 or newer
SwitchAudioSourcefromswitchaudio-osx
Install the external dependency with Homebrew:
brew install switchaudio-osx(use-package as-sound-switch
:vc (:url "https://github.com/nuno69/as-sound-switch"
:rev :newest)
:commands (as-set-input as-set-output))Put as-sound-switch.el somewhere in your load-path, then:
(require 'as-sound-switch)Run:
M-x as-set-output
M-x as-set-input
Example key bindings:
(use-package as-sound-switch
:bind (("S-<f9>" . as-set-output)
("S-<f10>" . as-set-input)))If you like my package, feel free to write about it somewhere in your spaces. It will motivate me to continue trying to make useful software for everyone.