Catalina microphone issue with Audacity

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Catalina microphone issue with Audacity

Post by steve » Mon Jan 13, 2020 9:19 am

Schowider wrote:
Mon Jan 13, 2020 1:57 am
Does anyone know how to "force" an app to show up in that SysPrefs>Privacy>Microphone panel?
This is the crux of the problem. Apple have now made it impossible to grant "permissions" to an application unless it has been "notarized" (approved) by Apple. Apple introduced this restriction in Catalina, shortly after Audacity 2.3.3 was released.

The recommended workaround is to launch Audacity from a Terminal. The Terminal is an official Apple app, so it is approved by Apple and can be given permissions. When Audacity is launched from the Terminal, the Terminal asks permission to use the microphone, and you can grant that permission. Audacity then inherits that permissions from the Terminal, but only when launched from the Terminal. See: viewtopic.php?f=47&t=107162
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Sylaris
Posts: 1
Joined: Sat Feb 15, 2020 3:01 am
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by Sylaris » Sat Feb 15, 2020 3:04 am

Any other workarounds on this? I've tried the Terminal suggestion and it doesn't work. It still won't ask for permission to use the mic and won't record sound.

waxcylinder
Forum Staff
Posts: 14571
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Catalina microphone issue with Audacity

Post by waxcylinder » Sat Feb 15, 2020 11:40 am

Sylaris wrote:
Sat Feb 15, 2020 3:04 am
Any other workarounds on this?
Sorry no ...

This issue will be fixed in the next release 2.4.0 scheduled for the end of March (I have been QA testing it on my Macbook Pro with 10.15.2 and latterly 10.15.3 where it records fine with no Terminal app workaround required.

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Blix
Posts: 1
Joined: Fri Feb 21, 2020 5:34 am
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by Blix » Fri Feb 21, 2020 7:25 am

SOLUTION

The Catalina Terminal workaround as posted in FAQ>Tutorial>Audacity Manual in this forum doesn't work, as far as entering those specific commands in Terminal. Which is to say, it didn't work for me on Catalina 10.15.1 with Audacity 2.3.3 - Terminal wouldn't recognise any of it, as is.
This workaround was posted: viewtopic.php?f=47&t=107162

BUT despair not, The Audacity Terminal launch workaround for MacOS Catalina will work automatically using Finder:

This solution is newbie-level simple; No typing anything in Terminal,,,and should have Audacity recording from Microphone/USB device - as well as allowing audio through to the computer's speakers/headphone jack (to live-monitor your recording) if you want.

Open a Finder window, click:
>Applications
>Audacity (the app- if you located it here as per default install)
Then on the top bar of window select the button with the cog.
On drop-down menu select "Show Package Contents"

A folder called "Contents" appears, by itself in the finder window
Click to open it, then click to open:
>MacOS
Then double-click:
>Audacity (the black-looking exec. file) - which should open a Terminal window and then proceed to automatically launch the Audacity app.
(can alternatively be opened by clicking the cog button>Open With>Terminal)

Wait for a Microphone Permission terminal box to appear to approve permissions (only need to do this the first time) * [see note below]

Audacity will now record with microphone/USB device!

(NOTE if you're using one, your USB device should be already plugged in prior to app launch in order to appear as a recording input option under 'built-in microphone' menu - if not there, plug USB device in and quit Audacity and Terminal, and relaunch as per above method).

IMPORTANT : You have to keep the Terminal window open in background while app is running, otherwise the App will quit too. Also, if you quit the Audacity app, it must be opened via this Terminal workaround again, each time, for it to be able to record anything.


OPTIONAL
To get audio to play through so you can live-monitor what you're recording...

Inside Audacity App:
go to Transport (top of screen)
>Transport Options
and select "Software Playthrough (on/off)" (should have a tick)

This allows audio to output through computer speakers / headphone jack while recording from the microphone/USB device.
This would only be good turned off if audio output from speaker was interfering with your recording e.g. Speaking live into a microphone. (you could also just mute volume on computer)

Hope this helps someone, as it took me some time to figure this all out when nothing else seemed to work. :roll:
Hopefully Audacity will upgrade soon and all this won't be necessary.

* NOTE : this all requires Terminal to have Microphone permissions in System Preferences.
Check it if you still have an issue:
System Preferences app
>Security & Privacy
>Privacy (tab)
>Microphone
Terminal should be on the list with green tick. Unlock the padlock in lower left corner of window to make changes.

lucyaaker
Posts: 1
Joined: Fri Feb 21, 2020 8:05 pm
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by lucyaaker » Fri Feb 21, 2020 8:06 pm

Thanks for this! But I do not get the box popping up when I open Audacity that asks for permission to use the microphone, and when I go to System Preferences, Audacity doesn't show up in the list!

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Catalina microphone issue with Audacity

Post by steve » Fri Feb 21, 2020 8:19 pm

lucyaaker wrote:
Fri Feb 21, 2020 8:06 pm
Thanks for this! But I do not get the box popping up when I open Audacity that asks for permission to use the microphone, and when I go to System Preferences, Audacity doesn't show up in the list!
Do these steps work for you: viewtopic.php?f=47&t=107162
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Jonsie
Posts: 1
Joined: Fri Feb 21, 2020 9:57 pm
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by Jonsie » Fri Feb 21, 2020 10:41 pm

Hi,
I'm having the same problem. Yesterday, Feb 20th, everything worked well. Started Audacity through terminal. No problem. Today, Feb 21st, I can still open Audacity through terminal, but I press "click to start monitoring" the Yeti mic responds for one second, and then nothing.
In "terminal" it says /bin/bash is no good, change to /bin/zsh (terminal preferences), which I tried, and still no mic sound, beyond one second. Any thoughts on this are most welcome.
MacOS Catalina 10.15.3

tkdlover19
Posts: 1
Joined: Mon Apr 13, 2020 4:07 pm
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by tkdlover19 » Mon Apr 13, 2020 4:09 pm

Thank you so incredibly much for the code and instructions, I have been wrestling with Audacity not recording audio for the last three days, and it was such a relief to see it actually working! All the trouble-shooting solutions that I'd tried up to this point all involved making sure the sample rate was correct and that the microphone was actually paired with Audacity, but everything was set correctly, so it's a huge weight off my chest now that I can actually begin using the software! :D

rtestroet
Posts: 3
Joined: Fri Apr 17, 2020 1:42 am
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by rtestroet » Fri Apr 17, 2020 1:54 am

x3rxes wrote:
Mon Nov 18, 2019 8:26 pm
stevegoldfield wrote:
Tue Nov 12, 2019 9:27 pm
I tried the terminal workaround, but it did not work for me. When I clicked the red record button, I did not get the popup to grant terminal access to the microphone.
Are you also getting a message that says "Error code: -9997 Invalid sample rate"? That's what's happening to me and it seems to be a different problem than the one addressed by the Terminal workaround.
Has anyone figured out how to resolve this issue? I've seen a couple folks on this board have it. I was plugging along just fine using the Terminal workaround until this evening, when out of nowhere this began happening to me. When I run the terminal command I now get an enormous long terminal list of errors that read like "PaMacCore (AUHUL)||Failed to open AUHAL component" etc etc etc "OpenStream 44100 returned -9986: Internal PortAudio error" (Not just 44100, but also 48000, 22050, etc etc etc). See attached image.

When I am in Audacity, and regardless whether I opened it with the terminal command or in the standard way, when I attempt to play a sound file I get "Error opening sound device. Try changing the audio host, playback device and the project sample rate" and when I try to record I get "Error opening recording device. Error code: -9997 Invalid sample rate." See images.

Also of note: 1) All these errors happen whether I'm using an external microphone or just my computer's mic/speakers. 2) Both Audacity and Terminal are granted audio access in permissions. 3) The sample rate is consistent (44110) in all places, Audacity and across my system, and 4) Garageband and Quicktime audio recording both work just fine. Only Audacity is screwed up, it seems. I have also tried reinstalling Audacity to no avail, and even resetting my NVRAM.

Can anyone help me? I am on Macos Catalina (of course) and Audacity 2.3.3 I'm at my wits end and need this for work. Sincere, humble thanks in advance. :(
Attachments
Screen Shot 2020-04-16 at 9.45.04 PM.png
Screen Shot 2020-04-16 at 9.45.04 PM.png (1.59 MiB) Viewed 942 times
Screen Shot 2020-04-16 at 9.45.20 PM.png
Screen Shot 2020-04-16 at 9.45.20 PM.png (151.95 KiB) Viewed 942 times
Screen Shot 2020-04-16 at 9.45.37 PM.png
Screen Shot 2020-04-16 at 9.45.37 PM.png (213.65 KiB) Viewed 942 times

buddhageorge
Posts: 1
Joined: Tue Apr 21, 2020 8:12 pm
Operating System: macOS 10.15 Catalina or later

Re: Catalina microphone issue with Audacity

Post by buddhageorge » Tue Apr 21, 2020 9:01 pm

MacOS 10.15.4
Audacity 2.3.3
I implemented Waldon's Automator fix which will allow you to call up the Terminal script as an automated application from your dock and it works to enable my Blue Yeti and allows recording in Audacity each time I run the "Audacity Launcher" app from my dock. Once you implement this, it is transparent to you whether the terminal script is running in background. You just open the "Audacity Launcher" app, check your Audacity settings and then begin recording.

In Applications, open Automator app, select Application as document type then Choose.
Select Utilities under Library on left side in first column, double click on Run Shell Script in second column.
The Run Shell Script window opens on right side of screen. Select "/bin/bask" under Shell:, then select as "arguments" under Pass input:
Paste: "/Applications/Audacity.app/Contents/MacOS/Audacity;" into window just below.
Go to Automator menu bar, select File, Save.

When dialogue box opens, Save As: "Audacity Launcher" for file name (or whatever you want), Where: select Applications folder, select Save.
Quit Automator.
Go to Applications, open "Audacity Launcher". It should ask for permission to use your microphone the first time.
If it works and you can record in Audacity then drag a copy from Applications to your dock and each time you want to use Audacity, select "Audacity Launcher" from the dock and it will open Audacity by running the shell script and enable your mic.

I went to System Preferences, Security & Privacy, Microphone and ensured the Audacity Launcher app showed up under apps list and was selected.
I also went to System Preferences, Users & Groups, Current User profile, Login Items and added the Audacity Launcher app, so it will always open the app each time I log into my profile.

Post Reply