WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 04-08-2011, 04:17 AM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
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.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viz speech cutting off early Enlil Vizard 7 01-27-2016 04:41 AM
Speech Bubbles jassel41 Vizard 0 11-30-2009 10:12 PM
Vizard tech tip: Text to Speech Jeff Vizard 1 01-15-2009 09:39 PM
Avatar finish speech ? djdesmangles Vizard 2 02-15-2008 06:56 AM
Speech Recognition Johannes Vizard 1 05-16-2005 10:46 AM


All times are GMT -7. The time now is 08:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC