I am trying to run a Python script from the Terminal that uses portaudio to record from the mic.
Since macOS 12.x, it no longer requests permission to access the mic and simply returns an error.
PortAudioError: Error opening InputStream: Invalid number of channels [PaErrorCode -9998]
Any ideas on how to allow mic access to a Python script?