jxhyc
0
Q:

pyttsx3 set volume

import pyttsx3

engine = pyttsx3.init()
engine.setProperty("rate", 178)
engine.say("I am the text spoken after changing the speech rate.")
engine.runAndWait()
1
import pyttsx3

engine = pyttsx3.init()

new_vol = .5 #volume between 0 and 1
engine.setProperty("volume", new_vol)
0

New to Communities?

Join the community