0

I use pyttsx3 to generate voices, but there is no sound when running, here is my code:

import pyttsx3 as tts

e = tts.init(driverName="espeak")
e.say("hello")
e.runAndWait()

And I try to print the voices list, finding that the list is empty:

voices = e.getProperty("voices")
print(voices)

the output is []

After that, I go to look up my directory /usr/lib/x86_linux_gnu/espeak-data/voices, only find it's empty, too.

I just want to know why my pyttsx3 has no sound, and how can I solve this problem, thanks

0 Answers0