Recording synthesized text-to-speech to a file in Python
<p>I am attempting to find a way to take synthesized speech and record it to an audio file. I am currently using <a href="https://github.com/parente/pyttsx" rel="nofollow">pyttsx</a> as my text-to-speech library, but there isn't a mechanism for saving the output to a file, only playing it directly from the speakers. I've looked into <a href="http://stackoverflow.com/questions/892199/detect-record-audio-in-python">detecting and recording audio</a> as well as <a href="http://people.csail.mit.edu/hubert/pyaudio/" rel="nofollow">PyAudio</a>, but these seem to take input from a microphone rather than redirecting outgoing audio to a file. Is there a known way to do this?</p>
