Answers for "import pyttsx3 engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) def speak(audio): engine.say(audio) engine.runAndWait() if __name__ == "__main__": speak("vikram singh")"

1

how to change the rate of speech in pyttsx3

import pyttsx3

engine = pyttsx3.init()
engine.setProperty("rate", 178)
engine.say("I am the text spoken after changing the speech rate.")
engine.runAndWait()
Posted by: Guest on May-02-2020

Code answers related to "import pyttsx3 engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) def speak(audio): engine.say(audio) engine.runAndWait() if __name__ == "__main__": speak("vikram singh")"

Python Answers by Framework

Browse Popular Code Answers by Language