1import pyttsx3
2
3engine = pyttsx3.init()
4engine.setProperty("rate", 178)
5engine.say("I am the text spoken after changing the speech rate.")
6engine.runAndWait()
1import pyttsx3
2
3engine = pyttsx3.init()
4
5new_vol = .5 #volume between 0 and 1
6engine.setProperty("volume", new_vol)