I am trying to work with the pyttsx module. I read the documentation and followed everything to the letter. However, when I try to run a script as simple as this:
import pyttsx
engine = pyttsx.init()
engine.say('Sally sells seashells by the seashore.')
engine.say('The quick brown fox jumped over the lazy dog.')
engine.runAndWait()
Launches an error that is as follows:
ModuleNotFoundError: No module named 'engine'
Install the module in a virtual environment. So I went to the folder where it is housed in the module code. Alli has its script init in it the engine module is imported in the following way
from engine import Engine
You are importing the Engine class that is hosted on engine. However he does not let me run the script because he can not find this module. Check already and are even at the same level. I appreciate your help.