deweller/switchaudio-osx

C

代替: SoundSource

Change the audio source for Mac OS X from the command line.

audiomacoscommand-lineswitch-source
スター成長
スター
1.4k
フォーク
102
週間成長
+1
Issue
15
5001k
2023年1月2024年3月2025年6月2026年9月
README

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 wellerco@gmail.com
Copyright (c) 2011 Christian Zuckschwerdt zany@triq.net

関連リポジトリ
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

PythonPyPIApache License 2.0nlpnatural-language-processing
huggingface.co/transformers
165k34.5k
FFmpeg/FFmpeg

Mirror of https://git.ffmpeg.org/ffmpeg.git

COtherffmpegvideo
ffmpeg.org
64.1k14.3k
mpv-player/mpv

🎥 Command line media player

COthermpvmplayer
mpv.io
36.9k3.5k
OpenBMB/VoxCPM

VoxCPM2: Tokenizer-Free TTS for Multilingual Speech Generation, Creative Voice Design, and True-to-Life Cloning

PythonPyPIApache License 2.0audiodeeplearning
voxcpm.com
36.9k4.2k
ossrs/srs

SRS is a simple, high-performance, AI-driven real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181, with codec support for H.264, H.265, AV1, VP9, AAC, Opus, and G.711.

C++MIT Licensertmplive-streaming
ossrs.io
29.2k5.7k
Anjok07/ultimatevocalremovergui

GUI for a Vocal Remover that uses Deep Neural Networks.

PythonPyPIMIT Licensevocal-removerpytorch
26.2k2k
goldfire/howler.js

Javascript audio library for the modern web.

JavaScriptnpmlibraryMIT Licensejavascriptaudio
howlerjs.com
25.3k2.3k
modelscope/FunASR

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

PythonPyPIMIT Licensepytorchspeech-recognition
funasr.com
20.2k2k
ExistentialAudio/BlackHole

BlackHole is a modern macOS audio loopback driver that allows applications to pass audio to other applications with zero additional latency.

COtheraudiodriver
19.7k839
kyleneideck/BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.

C++appGNU General Public License v2.0audioaudio-utility
19.3k776
alyssaxuu/screenity

The free and privacy-friendly screen recorder with no limits 🎥

JavaScriptnpmappGNU General Public License v3.0screen-capturescreencast
screenity.io
18.7k1.5k
audacity/audacity

Audio Editor

C++Otheraudioeditor
wiki.audacityteam.org/wiki/For_Developers
18.4k2.7k