Skip to main content

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