Created
October 5, 2017 21:02
-
-
Save yazdipour/b02cde6cef3c31206ab5bed690b61e75 to your computer and use it in GitHub Desktop.
Preparing for IELTS Listening Numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client as wincl | |
import random | |
from time import sleep | |
speak = wincl.Dispatch("SAPI.SpVoice") | |
problems=[13,30,4,14,40,5,15,50,6,16,60,70,17,'seventh','sixth','fifth','fourth'] | |
while True: | |
rnd=str(random.choice(problems)) | |
speak.Speak(rnd) | |
print(rnd) | |
sleep(0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment