Can't record audio on Ubuntu 22.04, Anki Snap Package

Hello, I’m using I’m using Ubuntu 22.04 and using the “Anki: Powerful, intelligent flash cards” from the Snap Store.

I’ve gone into the Ubuntu software center and given recording permissions to the application, but when I try and record audio I get this error message…

Unable to record. Please ensure a microphone is connected, and Anki has permission to use the microphone. If other programs are using your microphone, closing them may help. Original error: ⁨No module named 'PyQt5.QtMultimedia’⁩

I tried switch to PyAudio driver and then I get this error. Afterwords I installed ‘lame’ locally but that didn’t fix it. My understanding is that snap packages are self-contained, so it wouldn’t use my locally installed version.

An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.49 (dc80804a) Python 3.8.10 Qt 5.15.3 PyQt 5.15.4
Platform: Linux
Flags: frz=False ao=False sv=2
Add-ons, last update check: 2022-05-14 09:02:31

Exception in thread Thread-4:
Traceback (most recent call last):
File “/usr/lib/python3.8/threading.py”, line 932, in _bootstrap_inner
self.run()
File “/snap/anki-ppd/5/lib/python3.8/site-packages/aqt/sound.py”, line 646, in run
p = pyaudio.PyAudio()
AttributeError: ‘NoneType’ object has no attribute ‘PyAudio’
Exception in threading.excepthook:
Exception ignored in thread started by: <bound method Thread._bootstrap of <PyAudioThreadedRecorder(Thread-4, started 140066903013120)>>
Traceback (most recent call last):
File “/usr/lib/python3.8/threading.py”, line 890, in _bootstrap
self._bootstrap_inner()
File “/usr/lib/python3.8/threading.py”, line 934, in _bootstrap_inner
self._invoke_excepthook(self)
File “/usr/lib/python3.8/threading.py”, line 1212, in invoke_excepthook
local_print(“Exception in threading.excepthook:”,
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’
Exception ignored in sys.unraisablehook:
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’

Here’s the debug info from my application. Is this the appropriate place to report or should I try contacting the snap package maintainer on their github repository?

Anki 2.1.49 (dc80804a) Python 3.8.10 Qt 5.15.3 PyQt 5.15.4
Platform: Linux
Flags: frz=False ao=False sv=2
Add-ons, last update check: 2022-05-14 09:02:31


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])


===IDs of active AnkiWeb add-ons===


===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Please contact the maintainer: Linux Distro Packages - Anki Manual

Thanks for the info! I’ll let them known on their github page.