try { using (SpeechSynthesizer speechSynthesizerObj = new SpeechSynthesizer()) { PromptBuilder builder = new PromptBuilder(new System.Globalization.CultureInfo("hi")); builder.AppendText(txtText.Text); speechSynthesizerObj.SetOutputToWaveFile(@"D:\Work\AudioFile\NugetTestAudio.wav"); // Speak the prompt. speechSynthesizerObj.Speak(builder); } MessageBox.Show("Text to media file conversion done!!!"); } catch (Exception ex) { string message = ex.Message; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)