Files
RedditVideoMakerBot/ptt.py
T
2022-07-27 23:41:02 +05:30

9 lines
239 B
Python

import pyttsx3
engine = pyttsx3.init()
voices = engine.getProperty('voices')
for voice in voices:
print(voice, voice.id)
engine.setProperty('voice', voice.id)
engine.say("Hello World!")
engine.runAndWait()
engine.stop()