How to make pyttsx module's voice go slower

Vagos A. picture Vagos A. · Sep 5, 2017 · Viewed 7k times · Source

My code:

import pyttsx3
import random

engine = pyttsx3.init()
words = ['hello', 'word']     
engine.say(random.choice(words)) #Say these words slower

I don't want it to go really slow just slow enough to be easy for a non native speaker to undersatnd the words in the words list. Also if it is impossible to do it using the pyttsx module can you suggest a module that can do that?

Answer

Sarborup Sarkar picture Sarborup Sarkar · Feb 12, 2020
newVoiceRate = 145
engine.setProperty('rate',newVoiceRate)