go-media-devices-state icon indicating copy to clipboard operation
go-media-devices-state copied to clipboard

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

Open octavteodorescu opened this issue 3 years ago • 3 comments

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

octavteodorescu avatar Nov 12 '21 13:11 octavteodorescu

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

antonfisher avatar Nov 17 '21 05:11 antonfisher

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

nasenfloete avatar Dec 13 '21 13:12 nasenfloete

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...

robscetury avatar Jul 06 '22 13:07 robscetury