__zero__

speak

Dec 20th, 2018
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # O:
  2.  
  3. import win32com.client as wincl
  4.  
  5. def text2Speech(text):
  6.     service = wincl.Dispatch("SAPI.SpVoice")
  7.     service.speak(text)
  8.  
  9. text2Speech("Hi mate")
Advertisement
Add Comment
Please, Sign In to add comment