Skip to content

Instantly share code, notes, and snippets.

Created September 27, 2020 12:35
What would you like to do?
Speaking a list of sentences
def say_tasks(tasks,name):
speaker = pyttsx3.init() # Initializing the speaker
voices = speaker.getProperty("voices") # Getting the available voices
speaker.setProperty("voice",voices[1].id) # Setting a nicer voice than default
speaker.say("Good Morning Lucas, your tasks for today are:") # Introducing the task-list
for task in tasks: # Speaking each task sequentially from a list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment