-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
[Solved] AudioIn needs to be granted audio device access to capture sound on Mac OSX 10.14 Mojave #30
Comments
Thanks for reporting, have you tried changing the input away from the default audio device? Call
to see the list of available audio devices on your computer, you can then select which device (and input channel) to record from as documented here: https://processing.org/reference/libraries/sound/Sound_inputDevice_.html |
I added this to the IO example and tried with the microphone (1) and the default device (0). Output from
Code:
|
I found the solution after an openframeworks app also has stopped working. On Mac OSX 10.14 Mojave an application has to be given microphone access explicitly. There are two ways to do it. One is by requesting authorization for media capture through the application. It will then ask the user during the first startup. The other one is by the user in System Preferences -> Security & Privacy -> Privacy. |
Thanks for the detailed report, I'll keep this issue open so that other people can find it too if they run into the same problem. |
Hi, guys. I'm having the same problem with audio and camera input with Processing in Mojave 10.14.4. I can't explicitly give access of the Macbook inputs cause Processing isn't even asking for permission. The code shows no errors and the devices are correctly listed with Sound.list(), but no audio input. Any tips? Thanks in advance. |
@guilebarros have you tried the solution in #30 (comment) above? Regarding getting a permission request popup during runtime instead of having to set the permission manually up front in the MacOS system settings, this will have to be fixed in the Processing app itself (see #51 @benfry), not at the level of individual libraries. |
Hi, Kevin. Thanks for the reply. The #30 solution didn't work cause I don't have Processing in the list to give it permission. I don't know if I understood the #51 solution. But I've edited the info.plist file from Processing Plugin folder and added these lines: NSCameraUsageDescription But it made no difference in the behaviour regarding the camera and microphone inputs. |
Hi @guilebarros, I guess I am at the same point as you. In Mojave 10.14.6, without microfone and camera on my application, althought I can list the devices from there. The application doesn`t ask permission for use, so it stops running on device.start(). I have edited info.plist from processing and the plugin folder as described in #51 solution. I can´t (or I still haven't found) a way to manually give access to processing in System Preferences (2nd solution suggested by @i3games), therefore Processing isn't listed as solution #30. Let's keep it rolling... if I find something new, I will share with you here! |
Hi, @dantfv , thanks for your input. It's somewhat comforting knowing that I'm not alone on this issue. :) If somehow I found a solution, I will share it here too. |
Simply changing the info.plist files didn't do it for me. I see other discussions that indicate it would probably require resigning the app or even forcing OS to ask for mic/cam permissions by altering deeper db files, but I haven't gotten around to trying that yet. (MacOS catalina) |
Also having this issue. I went into System Preferences > Security and Privacy and attempted to give Processing permission to access the microphone but it appears that you cannot manually add an application. Or perhaps I just do not know how. I'm using Processing 3.5.4 in macOS Catalina 10.15.3. Any help is appreciated! |
Thanks, @hedbergj. Regarding deeper db files, not sure if I'm willing to go so deep to solve this issue. But I'll be in the fence, if someone find a less scary solution I'll be glad. :) |
Hi @hedbergj, please, could you share this other discussion, so I can give a read and maybe a try... Like @guilebarros, I also didn't want to go so deep, but right now I am probably taking anything that comes... :) |
@dantfv This post seems to offer a solution: https://www.reddit.com/r/macgaming/comments/dk1t47/heres_how_to_get_your_microphone_to_work_on/ |
Hi @hedbergj, thank you very much! I followed the idea from that solution and with some small changes it worked for me!! I will try to share with you guys in case you want to go with it. ALERT: Do it at your own risk, ok?! I am not really sure/confident about everything that I've done... STEP 1 : Disable The System Integrity Check so that you can access the relevant system database. STEP 2 : Manually add permission for Processing to access the microphone/camera. Then, I performed:
Finally, adding permission to mic: To leave the sqlite3, just give the command .quit. Step 3: Cleanup IMPORTANT: Before trying this steps, I had already changed the Plist from processing and jre pluggin in the processing content as described in #51 . Thanks again everybody, I hope that helps you somehow (and specially don't crash any SO)! |
nice @dantfv ! Glad it worked. |
In case anyone is looking for another way to get around this, I tried the solution in this comment and it worked for me. |
AudioIn
does not work, no audio from microphone, no error message shown.The microphone works in other applications (e.g. Skype) and
AudioIn
has worked in previous versions of the Processing Sound library.To replicate, start:
File > Examples > Libraries> Sound > IO
Processing 3.5.3, Sound 2.1.0, Macbook Pro, Mac OSX 10.14.4
The text was updated successfully, but these errors were encountered: