解决方案 »

  1.   

    控件名.Text=DateTime.Now.Tostring();
    2楼已经说了,还不明白》》???
    非要写明才明白。。
      

  2.   

    难道lz是想要朗读出来?
                System.Speech.Synthesis.SpeechSynthesizer synth = new System.Speech.Synthesis.SpeechSynthesizer();
                synth.Speak(DateTime.Now.ToString());
    ?
      

  3.   

    http://blog.sina.com.cn/s/blog_6cf3e9940100pqq5.html
    就是语音开发吧,念出字符串,字符串自己组合分割出  ”现在时间是““点“”分“”秒“  加进去
    项目添加引用:Microsoft Speech Object Libray
    下面这个例子可以播放指定音频文件,而且还可以读字符串:
    /// <summary>
            /// 播放声音文件
            /// </summary>
            /// <param name="FileName">文件全名</param>
            public void PlaySound(string FileName)
            {//要加载COM组件:Microsoft speech object Library
                if (!System.IO.File.Exists(FileName))
                {
                    return;
                }
                SpeechLib.SpVoiceClass pp = new SpeechLib.SpVoiceClass();
     
                SpeechLib.SpFileStreamClass spFs = new SpeechLib.SpFileStreamClass();
     
                spFs.Open(FileName, SpeechLib.SpeechStreamFileMode.SSFMOpenForRead, true);
                SpeechLib.ISpeechBaseStream Istream = spFs as SpeechLib.ISpeechBaseStream;
                pp.SpeakStream(Istream, SpeechLib.SpeechVoiceSpeakFlags.SVSFIsFilename);
                spFs.Close();
            }
      

  4.   

    使用Microsoft Speech SDK 5.1和语言包就可以
    从微软网站下载安装后,引用SpeechLib。选择哪个来读,需要查注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\
            SpeechVoiceSpeakFlags SpFlags;
            SpVoice voice = null;             //中文
        private void SpeakChina(string speak)
            {
                voice = new SpVoice();
                voice.Voice = voice.GetVoices(string.Empty, string.Empty).Item(0);//我的机器上0是MS-Lili-2052-20-DSK 
                voice.Speak(speak, SpeechVoiceSpeakFlags.SVSFDefault);
            }
      

  5.   

    speech 说我没引用 爆红线
      

  6.   

    speech 说我没引用 爆红线
      

  7.   

    speech 说我没引用 爆红线
    要添加System.Speech的引用