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

Microphone recording no sound when opened from Finder #50

Closed
chidiwilliams opened this issue Oct 11, 2022 · 6 comments
Closed

Microphone recording no sound when opened from Finder #50

chidiwilliams opened this issue Oct 11, 2022 · 6 comments

Comments

@chidiwilliams
Copy link
Owner

chidiwilliams commented Oct 11, 2022

When the app is opened from Finder on Mac (via double-clicking the app from Finder or opening from Spotlight Search), the recording stream returns arrays of all zeroes. But it works fine when the program is opened from the terminal (via python main.py or ./dist/Buzz.app/Contents/MacOS/Buzz).

This seems related: https://stackoverflow.com/questions/69193993/pyinstaller-app-not-getting-microphone-permission-works-fine-with-terminal

@chidiwilliams
Copy link
Owner Author

It seems to work after signing a new version??

@chidiwilliams
Copy link
Owner Author

Finally figured it out 🤦🏾‍♂️

The second step of code signing overwrites the previous entitlement for requesting audio input. Fix is to add the audio permission to the entitlements.plist file

@transitive-bullshit
Copy link

I'm getting the same issue using the latest release 0.5.2 on MacOS Monterey. If I open it through finder, it doesn't request Microphone permissions, but if I open the python app directly through the terminal, it spawns the GUI and requests Microphone access correctly.

@chidiwilliams
Copy link
Owner Author

I'm getting the same issue using the latest release 0.5.2 on MacOS Monterey. If I open it through finder, it doesn't request Microphone permissions, but if I open the python app directly through the terminal, it spawns the GUI and requests Microphone access correctly.

Ah, I'll have a look at this

@chidiwilliams chidiwilliams reopened this Oct 25, 2022
@chidiwilliams
Copy link
Owner Author

@transitive-bullshit, this should be fixed in the latest release https://github.com/chidiwilliams/buzz/releases/tag/v0.5.4

@transitive-bullshit
Copy link

Huzzah! 😄

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