import pyttsx3
import random
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voices', voices[1].id)
engine.setProperty('rate', 110)
words = ["word 1", "word 2", "word 3, etc"]
engine.say(random.choice(words))
engine.runAndWait()
I want to run this script at every random interval between 30 mins to 60 mins
Aucun commentaire:
Enregistrer un commentaire