Jump to content
paulsri

AirPods Audio Source Selector

Recommended Posts

Since getting the AirPods, I wanted to be able to switch between them and the default audio device(s) with Alfred.

 

And I wanted to change both the input and output devices to the AirPods and back. e.g. avoiding the state of input = Built-in Microphone, while output = AirPods.

 

Usage is pretty simple with the default being to enable the AirPods:

 

airpods

or 

airpods on

or

airpods blah

and to disable the AirPods or revert back:

airpods off

More detailed setup and configuration as well as dependencies and code are here:

 

https://github.com/paulsri/alfred-airpods-selector

 

Share this post


Link to post

Unfortunately with macOS 10.12 High Sierra, it didn't work for me.

The command SwitchAudioSource -a didn't show my AirPods.

Just editing the workflow of course was also not working. :/

Share this post


Link to post
1 hour ago, DJay said:

Unfortunately with macOS 10.12 High Sierra, it didn't work for me.

The command SwitchAudioSource -a didn't show my AirPods.

Just editing the workflow of course was also not working. :/

 

Thanks for the update, DJay. I haven't upgraded to 10.13 yet, so I can't say for sure. You could try upgrading the switchaudio-osx package via brew:

 

https://github.com/deweller/switchaudio-osx

 

Though I'm not sure if that has been tested with 10.13 yet. 

Share this post


Link to post

`SwitchAudioSource -a` only reports the Airpods after they've been connected at least once since your Mac has been awake (or maybe there is a timeout, I haven't thoroughly tested).

 

As a result, this workflow only works after having already connected the Airpods once. Is that the intended behaviour, or has this changed in 10.13?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...