Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to identify the Built-in audio output device? Can I rely on the UID(BuiltInSpeakerDevice)? #60

Open
deevannaveed opened this issue Sep 19, 2023 · 3 comments

Comments

@deevannaveed
Copy link

I am trying to figure out which device is the built-in output device on my Mac? when I use exec -a -f json in the list I can see

{"name": "MacBook Pro Speakers", "type": "output", "id": "366", "uid": "BuiltInSpeakerDevice"}

But my concern is that is it safe to use the uid BuiltInSpeakerDevice? will it be the same on all Mac devices and OS versions?

@deevannaveed
Copy link
Author

deevannaveed commented Sep 29, 2023

I have found a solution to this problem, I will be opening a PR as soon I have time, so that others can also benefit from it.

@bigplayer-ai
Copy link

I have found a solution to this problem, I will be opening a PR as soon I have time, so that others can also benefit from it.

what is the solution?

@deevannaveed
Copy link
Author

deevannaveed commented Aug 20, 2024

@bigplayer-ai

what is the solution?

I still could not manage time for writing the whole solution here. I can provide you with the command line utility(my personal build) that already have the -b flag which should return the built-in device, I have build it already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants