就像银行里轮到谁办理业务了有音频的提示、如“编号为092号的请到第二窗口办理业务”提示。

解决方案 »

  1.   

    System.Media.SoundPlayer player = new System.Media.SoundPlayer();
    player.SoundLocation = "音频文件";
    player.Play();
    或是添加到项目资源中,设置player的stream属性为资源中的音频对象。播放即可。
      

  2.   

    你是说朗读文本?
    SpeechVoiceSpeakFlags spFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
    SpVoice voice = new SpVoice();
    voice.Speak("编号为092号的请到第二窗口办理业务", spFlags);
    这个么?
      

  3.   

    恩、是这个。我用这个可惜没读到我想让他读的东西、只读出那个从数据库查出来的id
    不知道怎么回事、你看看就是这个:
     private void button1_Click(object sender, EventArgs e)
            {
                string sql = "select min(Qid) from Queue where isNull(State ,'')='' ";
                int n = ExecSql2(sql);
                string sql1 = "update Queue set State='完成' where Qid=" + n;
                ExecSql1(sql1);
                SpeechSynthesizer speaker = new SpeechSynthesizer();
                speaker.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult, 2, System.Globalization.CultureInfo.CurrentCulture);
                speaker.Rate = -2;
                speaker.Volume = 100;
                speaker.SpeakAsync("编号为" + n + "请到第一号窗口办理业务");        }
      

  4.   

    纯文本+TTS语音引擎或者voicexml+支持voicexml的硬件设备或者直接操作语音卡
      

  5.   

    嘿、不好意思。这个也是问题、还有个更大的就是没有tts中文语言包。找不到下载的资源呢、我的是03的系统
      

  6.   

    兄弟你试下把 
    speaker.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult, 2, System.Globalization.CultureInfo.CurrentCulture);
    换成
     speaker.Voice = voice.GetVoices("name= Microsoft lili" ), "").Item(0);
    Microsoft lili 需要安装.你可以尝试其他的.
      

  7.   

    建议用 SpeechSynthesizer  配合 backgroundWorker 控件...
      

  8.   

    汗、下载了tts中文语言包不起作用、怎么回事哦。。郁闷。