Feb-12-2021, 12:12 AM
After reading your email, I believe that this is what you are trying to accomplish. Let me know if this is correct.
Depois de ler seu e-mail, acredito que é isso que você está tentando realizar.Deixe-me saber se isso está correto.
Depois de ler seu e-mail, acredito que é isso que você está tentando realizar.Deixe-me saber se isso está correto.
import pyttsx3 from time import sleep from random import shuffle numbers = [k for k in range (1, 16)] shuffle (numbers) print ('\n\n\n\n') speaker = pyttsx3.init () voices = speaker.getProperty ('voices') speaker.setProperty ('voice', voices [1].id) speaker.setProperty ('rate', 100) for count in range (15) : input ('\nPressione digitar para o próximo número.') output = f'o número saiu {numbers [count]}' print (output) speaker.say (output) speaker.runAndWait () sleep (1) speaker.say (output) speaker.runAndWait ()Felicidades