Since macOS Mojave apps now need to ask for permission to record audio. I want to record it from the built-in microphone of my Macbook.

This means that a lot of old tools are broken. For example, sox and ffmpeg don't work anymore.

With ffmpeg I tried ffmpeg -f avfoundation -i ":1" -t 10 output.mp3, which results in no file being even created.

With sox I tried sox -d output.wav, which produces a file but with no sound in it.

So does anyone have a workaround or other CLI utility that can do this?

  • 10.14.1 beta seems less restrictive & has fixed a lot of my 'hang-over' gripes from the point zero, though idk for your particular requirement, sorry. – Tetsujin Oct 18 '18 at 15:21

They have restricted access to the microphone from the terminal by default after the update.

You need to go to System Preferences > Security & Privacy > Privacy > Microphone and tick the box for the terminal and it should all work again.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .