Simply add a reference to
System.Speech
and include the following code to your project.using System.Speech.Synthesis; SpeechSynthesizer synthesizer = new SpeechSynthesizer(); synthesizer.Volume = 50; // 0...100 synthesizer.Rate = 3; // -10...10 // Synchronous synthesizer.Speak("Welcome to the WPF."); // Asynchronous synthesizer.SpeakAsync("Welcome to the WPF.");
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন