I have the same issue on
macOS 12.5.1
Anki 2.1.54 (b6a7760c)
Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Anki does have permission to access the microphone.
Error message in GUI is:
Couldn’t record audio. Have you installed ‘lame’?
Full error message in terminal is:
Can’t init infile ‘/var/folders/vs/ytbn9scj1ks_yq34nzpjh2l80000gn/T/anki_temp/rec.wav’
Error running /Applications/Anki.app/Contents/MacOS/…/Resources/lame /var/folders/vs/ytbn9scj1ks_yq34nzpjh2l80000gn/T/anki_temp/rec.wav /var/folders/vs/ytbn9scj1ks_yq34nzpjh2l80000gn/T/anki_temp/rec1663083244.mp3 --noreplaygain --quiet
I tried replacing the lame executable with a bash script that lists out the content of anki_temp, and as you suspected the rec.wav file is not created.
I can successfully record audio using the macOS Voice Memo app.
My audio input devices are configured as follows:
Switching to the Qt5 version does seem to solve the problem.