{"id":13423513,"url":"https://github.com/deweller/switchaudio-osx","last_synced_at":"2025-05-15T05:08:18.242Z","repository":{"id":37549690,"uuid":"21323300","full_name":"deweller/switchaudio-osx","owner":"deweller","description":"Change the audio source for Mac OS X from the command line.","archived":false,"fork":false,"pushed_at":"2024-07-07T17:06:56.000Z","size":67,"stargazers_count":1262,"open_issues_count":16,"forks_count":91,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-11T20:43:02.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deweller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-29T12:59:57.000Z","updated_at":"2025-05-05T20:19:26.000Z","dependencies_parsed_at":"2024-01-12T18:39:06.447Z","dependency_job_id":"b7ab0ca6-56ae-46a8-9f99-49a625869a6e","html_url":"https://github.com/deweller/switchaudio-osx","commit_stats":{"total_commits":23,"total_committers":10,"mean_commits":2.3,"dds":0.5217391304347826,"last_synced_commit":"c3820fef50494f06cd21ebfb53f247e9539f236b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deweller%2Fswitchaudio-osx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deweller%2Fswitchaudio-osx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deweller%2Fswitchaudio-osx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deweller%2Fswitchaudio-osx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deweller","download_url":"https://codeload.github.com/deweller/switchaudio-osx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T00:00:36.394Z","updated_at":"2025-05-15T05:08:13.233Z","avatar_url":"https://github.com/deweller.png","language":"C","funding_links":[],"categories":["C","Uncategorized","macOS"],"sub_categories":["Uncategorized"],"readme":"switchaudio-osx\n===============\n\nA command-line utility to switch the audio source on Mac OS X.\n\nDescription\n-----------\n\nThis utility switches the audio source for Mac OS X.\n\nYou specify the name of the audio source, such as Built-in Digital Output, and the utility switches the source immediately without any GUI interaction.\n\nThis is a command-line utility only and has no graphical user interface.  Tested on OS 10.7 - 11.2.\n\nInstalling from homebrew\n------------------------\n```\nbrew install switchaudio-osx\n```\n\nUsage\n-----\n\nSwitchAudioSource [-a] [-c] [-f format] [-t type] [-n] -s device\\_name | -i device\\_id | -u device\\_uid \n\n - **-a**               : shows all devices\n - **-c**               : shows current device\n - **-f** _format_      : output format (cli/human/json). Defaults to human.\n - **-t** _type_        : device type (input/output/system).  Defaults to output.\n - **-m** _mute_mode_   : sets the mute status (mute/unmute/toggle).\n - **-n**               : cycles the audio device to the next one\n - **-i** _device_id_   : sets the audio device to the given device by id\n - **-u** _device_uid_  : sets the audio device to the given device by uid or a substring of the uid\n - **-s** _device_name_ : sets the audio device to the given device by name\n\n### Muting\n\nThe `-m` flag can be used to mute input or output devices.\n\nDefine the device via `-t`.\n\nExample for toggling the mute state for the currently selected input, e.g. microphone:\n\n```shell\nSwitchAudioSource -m toggle -t input\n```\n\nThis is useful on a hotkey, e.g. to mute your Teams or Zoom input.\n\nThanks\n-------\n\nThanks to Christian Zuckschwerdt for migrating this to github and adding the next option.\n\nLicense\n-------\n\nMIT License, see license.txt  \n\nCopyright (c) 2008-2021 Devon Weller \u003cwellerco@gmail.com\u003e  \nCopyright (c) 2011 Christian Zuckschwerdt \u003czany@triq.net\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeweller%2Fswitchaudio-osx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeweller%2Fswitchaudio-osx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeweller%2Fswitchaudio-osx/lists"}