title: .NET 3.0 Text to speech WAV output too big and slow process
body: <p>I wrote a little application that takes in some text and converts it to an audio wav.
  now, it works fine except that the wav file produced is too big.</p>
  
  <p>I'm looking on ways to make the wav output smaller and make the whole process take less time.</p>
  
  <p>Sample Code :</p>
  
  <pre><code> public byte[] ConvertText2Wav(string text)
      {
          MemoryStream wavAudioStream = new MemoryStream();            
          SpeechSynthesizer speechEngine = new SpeechSynthesizer();
          speechEngine.SetOutputToWaveStream(wavAudioStream);
          speechEngine.Speak(text);
          wavAudioStream.Flush();
          Byte[] wavBytes = wavAudioStream.GetBuffer();
          return wavBytes;  
      }
  </code></pre>