Euan M
1
Q:

pyttsx3 linux

# pip install pyttsx3 pypiwin32import pyttsx3# One time initializationengine = pyttsx3.init()# Set properties _before_ you add things to sayengine.setProperty('rate', 150)    # Speed percent (can go over 100)engine.setProperty('volume', 0.9)  # Volume 0-1# Queue up things to say.# There will be a short break between each one# when spoken, like a pause between sentences.engine.say("You've got mail!")engine.say("You can queue up multiple items")# Flush the say() queue and play the audioengine.runAndWait()# Program will not continue execution until# all speech is done talking
0

New to Communities?

Join the community