Skip to content

Instantly share code, notes, and snippets.

@yazdipour
Created October 5, 2017 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yazdipour/b02cde6cef3c31206ab5bed690b61e75 to your computer and use it in GitHub Desktop.
Save yazdipour/b02cde6cef3c31206ab5bed690b61e75 to your computer and use it in GitHub Desktop.
Preparing for IELTS Listening Numbers
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