You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So from the docs..
onWord and onEnd are not reliably giving back location, length.. its basically unreliable this as an event handler for word level.
Mac - nice!
import pyttsx3
def onStart(name):
print("starting", name)
def onWord(name, location, length):
print("word", name, location, length)
def onEnd(name, completed):
print("finishing", name, completed)
engine = pyttsx3.init()
engine.connect("started-utterance", onStart)
engine.connect("started-word", onWord)
engine.connect("finished-utterance", onEnd)
engine.say("The quick brown fox jumped over the lazy dog.")
engine.runAndWait()
on a mac
starting None
word None 0 3
word None 4 5
word None 10 5
word None 16 3
word None 20 6
word None 27 4
word None 32 3
word None 36 4
word None 41 4
finishing None True
on Windows
starting None
word None 1 0
finishing None True
The text was updated successfully, but these errors were encountered:
So from the docs..
onWord and onEnd are not reliably giving back location, length.. its basically unreliable this as an event handler for word level.
Mac - nice!
on a mac
on Windows
The text was updated successfully, but these errors were encountered: