Closed johnfelipe closed 3 years ago
Although pyttsx3
module has multiple languages, it depends on what your system configuration is. I'd recommend running the following piece of code to determine if pyttsx3
and your machine supports Spanish.
from pyttsx3 import init
from sys import stdout
speaker = init()
voices = speaker.getProperty("voices")
# noinspection PyTypeChecker
print(f'Available voices: {len(voices)}')
# noinspection PyTypeChecker
for num in range(len(voices)):
# noinspection PyUnresolvedReferences
speaker.setProperty("voice", voices[num].id)
stdout.write(f'\rTesting my voice module number: {num}')
speaker.say(f'Testing my voice module number: {num}')
speaker.runAndWait()
Can u help me for do it this in local windows?