Skip to content

KeyError: 'sapi5' when using pyttsx3 #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Thayneee opened this issue Oct 14, 2021 · 2 comments
Open

KeyError: 'sapi5' when using pyttsx3 #22

Thayneee opened this issue Oct 14, 2021 · 2 comments

Comments

@Thayneee
Copy link

Thayneee commented Oct 14, 2021

I keep getting this error when running the code:

    19     try:
---> 20         eng = _activeEngines[driverName]
    21     except KeyError:

/opt/anaconda3/lib/python3.8/weakref.py in __getitem__(self, key)
   130             self._commit_removals()
--> 131         o = self.data[key]()
   132         if o is None:

KeyError: 'sapi5'

I've tried different versions of pyttsx3 and that didn't help.

@yashrajput0508
Copy link

Use latest version of pyttsx3

@RivardJR
Copy link

Are you using Windows, or a different OS? Sapi5 only works with Windows. For Linux or Mac try using gTTS or espeak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants