Jump to content

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

 

Link to comment
  • 2 months later...
  • 6 months later...
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. 

Link to comment
  • 2 months later...

`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?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...