Adding audio updates to python

2 posts / 0 new
Last post
robgentile
Offline
Joined: 08/05/2014 - 10:29
Adding audio updates to python

So, should the need arise to get text prompts from python, I tested it and this works:
 

  •             import win32com.client
  •             speaker = win32com.client.Dispatch("SAPI.SpVoice")
  •             say_this="Something to say, like now processing the second file"
  •             speaker.Speak(say_this)  

 
At least, it worked on my system. 
I tend to use text prompts for long running scripts to let me know they are still alive.  I would not use it within IDEA, but rather for external python scripts.
Anyway, enjoy....
Rob 
 

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

That is interesting Rob, thanks for sharing.