Closed hick closed 11 years ago
BTW, my testing code is just the sample:
import pyttsx engine = pyttsx.init() engine.say('Greetings!') engine.say('How are you today?') engine.runAndWait()
so sorry for this!
I just made a mistake, I installed python on Drive D:, but I reinstall the windows xp several days ago, pywin32 need to be reinstalled. After that, it goes well!
thx a lot!
Traceback (most recent call last): File "F:\test.py", line 2, in
engine = pyttsx.init()
File "D:\Program\Python27\lib\site-packages\pyttsxinit.py", line 39, in i
nit
eng = Engine(driverName, debug)
File "D:\Program\Python27\lib\site-packages\pyttsx\engine.py", line 45, in i
nit
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "D:\Program\Python27\lib\site-packages\pyttsx\driver.py", line 64, in i
nit
self._module = import(name, globals(), locals(), [driverName])
File "D:\Program\Python27\lib\site-packages\pyttsx\drivers\sapi5.py", line 19,
in
import win32com.client
File "D:\Program\Python27\lib\site-packages\win32cominit.py", line 5, in