Ok, well managed to get makepy to run through the Viz 4 interactive prompt (is this a valid method of doing this?) using this code:-
Code:
import win32com.client.makepy
win32com.client.makepy.ShowInfo("")
- select the MS Speech object from the list and it spits out this
Code:
Microsoft Speech Object Library
{C866CA3A-32F7-11D2-9602-00C04F8EE628}, lcid=0, major=5, minor=4
>>> # Use these commands in Python code to auto generate .py support
>>> from win32com.client import gencache
>>> gencache.EnsureModule('{C866CA3A-32F7-11D2-9602-00C04F8EE628}', 0, 5, 4)
However when I then run the speech.py script I get this error message-
Code:
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Users\APD\Documents\Nige_PHD\Vizard_Python Development\speek.py", line 56, in <module>
class ContextEvents(win32com.client.getevents("SAPI.SpSharedRecoContext")):
TypeError: Error when calling the metaclass bases
cannot create 'NoneType' instances
Any ideas?? Am I doing something wrong
I got it to work in Viz3 with very little problem.