Issue with class string/ProgID for TTS components to be used from python

  • From: Jacob Kruger <jacobk@xxxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Thu, 26 May 2011 09:59:34 +0200

Ok, for whatever reason, while in something like .net I can use the 
System.Speech.Synthesis.SpeechSynthesizer object to get windows7's TTS to talk, 
and can also use SayTools from within .Net code, neither of them want to be 
used from within python itsself using it's attempt to create a com object, and 
I am also unable to run something like regsvr32 on any of the 3 instances of 
the MS System.Speech.dll files I found, or on SayTools.dll itsself, since they 
all get rejected as such.

However, what have thus far implemented easily enough is to make copies of 
SayTools.dll, SayLine.exe etc. in the folder where the python code is running 
from, and then use it's sort of command line execution item to get SayTools to 
speak for me in background, etc.:
#code starts
import os
os.system("sayline 'hullo there'")
#end code

Stay well
(and hope this isn't a form of duplicate message)

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts:

  • » Issue with class string/ProgID for TTS components to be used from python - Jacob Kruger