ModuleNotFoundError: No module named 'speechd' on Anki installed in a venv

I’m attempting to add another voice to the add-on “HyperTTS”, however I’m running into this error. I think the problem is with my install of Anki: I installed it in a venv using the instructions for Linux (ARM) at, though I removed --pre so that I have the stable version of Anki and not a beta. I can import speechd successfully when I’m outside of the venv, but when inside the venv I get ModuleNotFoundError: No module named 'speechd'

Full log:

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '??HyperTTS - Add speech to your flashcards??':
??Traceback (most recent call last):
  File "/home/anki-user/pyenv/lib/python3.9/site-packages/aqt/", line 247, in loadAddons
  File "/sdcard/Anki/addons21/111623432/", line 134, in <module>
  File "/sdcard/Anki/addons21/111623432/", line 87, in init_services
  File "/sdcard/Anki/addons21/111623432/", line 96, in import_services
    __import__(self.package_name, globals(), locals(), [module_name], sys._addon_import_level_base)
  File "/sdcard/Anki/addons21/111623432/services/", line 6, in <module>
    import speechd
ModuleNotFoundError: No module named 'speechd'

Maybe a stupid question, but did you install speechd inside the venv?

I didn’t, figuring it was included with my installed packages when --system-site-packages was included. However it seems it’s not a pypi/pip package because I also can’t install it with pyenv/bin/pip install speechd. It must be a module that came with the speechd package installed via apt, but I can’t get the venv to see it.

Sorry if this is something trivial. This is my first time wrangling a venv outside of a tutorial.

I found the root of the problem and a very flimsy solution.

The problem: The speech-dispatcher package on Debian installs the speechd python module in the site packages as expected. It does this only in the Python 3.11 site packages. Anki and the venv that it is installed in is using the Python 3.9 site packages, which doesn’t contain the speechd module.

My bad solution: copy the 3.11 speechd site package into the venv site packages. I can’t tell yet if I can actually use the module for the add-on in this way, but at least it’s no longer giving the ModuleNotFoundError.

It technically works but could break and I’d appreciate ideas for a more stable solution

Sorry for the notifications, this is the last one. The best solution I found was to install the apt install python3-speechd package on Debian 11.6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.