title: How to save text to speech to wav file using VB6 and SAPI 4
body: <p>I've managed to record to a file using this method:</p>
  
  <p>Include the Microsoft Direct Speech Synthesis Component. A component shows on the toolbar resembling a mouth</p>
  
  <p>Put that component on a form and write some code for the click event:</p>
  
  <pre><code>DirectSS1.filename = "audiofile.wav"
  DirectSS1.Speak "Insert a long text here"
  </code></pre>
  
  <p>That works but it has 2 problems for me:</p>
  
  <ol>
  <li><p>It takes too long to generate the wav file, because the component
  reads the text at normal speaking speed.  I need to generate the
  file faster.</p></li>
  <li><p>It is Asynchronous. I need somehow to wait until the file is
      ready in order to continue.</p></li>
  </ol>
  
  <p>(Can't use SAPI 5 as I need to use SAPI 4 voices.)</p>
  
  <p>Any help is much appreciated.</p>