[Nvda-dev] Help needed on new driver
Gianluca Casalino
gianluca.casalino at poste.it
Wed Apr 9 08:47:43 UTC 2008
ok.Open the sapi5.py driver and temporarily modify this method:
def speakText(self,text,wait=False,index=None):
flags=constants.SVSFIsXML
text=text.replace("<","<")
pitch=(self._pitch/2)-25
if isinstance(index,int):
bookmarkXML="<Bookmark Mark=\"%d\" />"%index
else:
bookmarkXML=""
flags=constants.SVSFIsXML
# if wait is False:
# flags+=constants.SVSFlagsAsync
self.tts.Speak("<pitch
absmiddle=\"%s\">%s%s</pitch>"%(pitch,bookmarkXML,text),flags)
save and try to use this syntheziser performing sayLine and immediately
something else.
The behaviour you obtain is the same I have now without stopping
syntheziser before speaking.
Ok. For timer I use wx.timer or Python has something else?
regards
More information about the Nvda-dev
mailing list