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

Doesn't seem to achived the desired result with Monterey or bluetooth devices #4

Open
octavteodorescu opened this issue Nov 12, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@octavteodorescu
Copy link

Unfortunately I can't test on a previous OS version, as I only have Monterey - but whilst the device is discovered it does not identify its state properly.
For example:
2021-11-12 15:15:18.480 ___go_build_main_go[55356:1699628] C.IsMicrophoneOn(): 0 | NO | 00-16-94-00-00-01:input (name: 'Sennheiser MB Pro 2', model: '40 82', is exclusively used: 0)
See attached screenshot

I have to mention that while playing with pyobjc I couldn't get it to work either for bluetooth microphones, which leads me to believe it is rather a problem of the updated OS. I'll dig more into this and if I get some add'l info, will let you know.

What I have observed is that using AVAudioSession.sharedInstance() and getting the current route - it does help me to identify if a bluetooth microphone is used, however - that works well when you set the default OS audio. If I have my airdpods for example set as system default and have them connected, but I set sennheiser headsets in my webex settings (or any other similar tool), it doesn't pick those up.

Sorry, I'm a bit lost when it comes to apple related dev and documentation doesn't help much.
Screenshot 2021-11-12 at 15 26 40

@antonfisher antonfisher added the bug Something isn't working label Nov 17, 2021
@antonfisher
Copy link
Owner

Hi @octavteodorescu, thanks for the report! Let me check it with an external mic as well, not sure it ever worked for external mic 😬

@nasenfloete
Copy link

nasenfloete commented Dec 13, 2021

hey @antonfisher and @octavteodorescu I observed the same behaviour while building a busy light - it works perfectly for the internal mic but with my jabra elite 75t it keeps saying that no microphone is running even if i'm speaking in a MS Teams call. So I'd be glad if you could check it @antonfisher 😊️
I really liked the idea of checking if the microphone is used instead of checking every single api of Team, Zoom etc, so this would really be a win 👍

Btw. I also have a mac with Monterey

@robscetury
Copy link

robscetury commented Jul 6, 2022

Yeah, I think Apple changed something with Monterey. I got here via some pyobjc code that is exhibiting the same issue, and the command line "ioreg -l AppleHDAEngineInput | grep "IOAudioEngineState"\ =\ 1 is also failing to detect bluetooth microphone use but picks up USB mic just fine. On Monterey, m1 pro 14".

At this point, I'm half tempted to just start programmatically looking for the orange dot in the menu bar...

@rafaelsales
Copy link

@robscetury did you succeed with any alternative approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants