Welcome

Welcome Anonymous

Friday, April 30, 2010

Saving Text in Wav Format

Include the name space System.Speech
saveFileDialog1.ShowDialog();

string str = saveFileDialog1.FileName;

System.Speech.Synthesis.SpeechSynthesizer synth = new
System.Speech.Synthesis.SpeechSynthesizer();

synth.SetOutputToWaveFile(str+".wav" );
synth.Speak(textBox1.Text);

MessageBox.Show("File Saved Successfully");
synth.Dispose();

No comments:

Post a Comment