Answer the question
In order to leave comments, you need to log in
How to change voice tone in pyttsx3 library?
There is a code that says the text:
import pyttsx3
engine = pyttsx3.init()
message = 'Текст для произношения'
print(message)
engine.say(message)
engine.runAndWait()
Answer the question
In order to leave comments, you need to log in
If we slightly modify the example , we will see the available votes and their id.
engine = pyttsx3.init()
voices = engine.getProperty('voices')
for voice in voices:
print('Now speaking:', voice.id)
engine.setProperty('voice', voice.id)
engine.say('The quick brown fox jumped over the lazy dog.')
engine.runAndWait()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question