Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
elebumm
GitHub Repository: elebumm/RedditVideoMakerBot
Path: blob/master/ptt.py
326 views
1
import pyttsx3
2
3
engine = pyttsx3.init()
4
voices = engine.getProperty("voices")
5
for voice in voices:
6
print(voice, voice.id)
7
engine.setProperty("voice", voice.id)
8
engine.say("Hello World!")
9
engine.runAndWait()
10
engine.stop()
11
12