.net语音播放,自定义播报文字

 

.net语音播放,自定义播报文字_第1张图片

 

 

                // using System.Speech.Synthesis;
                SpeechSynthesizer synth = new SpeechSynthesizer();
                // Configure the audio output.   
                synth.SetOutputToDefaultAudioDevice();

                synth.Speak("请说一句话");
                synth.Speak("Speak English,please");

                // Speak a string.  
                synth.Speak("This example demonstrates a basic use of Speech Synthesizer");

                Console.WriteLine();
                Console.WriteLine("Press any key to exit...");
                Console.ReadKey();
                return 0;

 

转载于:https://www.cnblogs.com/minily/p/9970658.html

你可能感兴趣的:(c#)