Exemplo n.º 1
0
        public MicrosoftVoiceReader()
        {
            foreach (InstalledVoice iv in Synth.GetInstalledVoices())
            {
                Voicers.Add(iv.VoiceInfo.Name);
            }


            //选择不同的发音
            //synth.SelectVoice("Microsoft Anna");//美式发音,但只能读英文
            //synth.SelectVoice("Microsoft Lili");//能读中英文
            //语音识别
            //SpeechRecognitionEngine sre = new SpeechRecognitionEngine();
        }