[python-win32] possible to save the output of TTS to a WAV file?

Alec Bennett whatyoulookin at yahoo.com
Fri Mar 7 21:53:47 CET 2008


I'm trying to save the output of some TTS to a sound file, is this possible?

Here's how I'm doing the TTS, though am certainly open to other methods:

import pythoncom, win32com
import win32api, win32com.client
pythoncom.CoInitialize ()

s = win32com.client.Dispatch("SAPI.SpVoice")
s.Speak("hi there")

Thanks for any help.





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the python-win32 mailing list