Mar-12-2022, 11:48 PM
(This post was last modified: Mar-12-2022, 11:52 PM by Yoriz.
Edit Reason: Added code tags
)
I have a list of words that I want Python to turn into speech:
Currently, the time between each word is too long (over a second), even with time.sleep set to 0. Why does the .runAndWait() method even have a built-in wait time and how can this delay be decreased?
1 2 3 4 5 6 7 8 9 10 11 |
import pyttsx3 import time words = [ 'this' , 'is' , 'my' , 'list' ] engine = pyttsx3.init() for i in words: engine.say(i) engine.runAndWait() time.sleep( 0 ) |