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.
I'm looking on ways to make the wav output smaller and make the whole process take less time.
Sample 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;
}