用 ADO.net  开发了一个软件 怎么实现打开软件之后 有语音提示 例如提示:欢迎使用

解决方案 »

  1.   

    太简单了
    调用(执行)你预先保存的语音文件 *.AVI
    O(∩_∩)O哈哈~、
    去年在学校就实现了……
      

  2.   

    1.把要播放的声音文件放在bin目录下
    记住格式.wav2.程序开头引入命名空间using System.Media;3.在程序启动后加入以下代码:SoundPlayer player=new SoundPlayer("声音文件.wav");
    player.Play();//播放
      

  3.   

    这个问题和ADO.NET毫无关系嘛...
      

  4.   

    using System.Runtime.InteropServices;public partial class Form1 : Form
        {
            public static uint SND_ASYNC = 0x0001;  // play asynchronously 
            public static uint SND_FILENAME = 0x00020000; // name is file name
            [DllImport("winmm.dll")]        public static extern uint mciSendString(string lpstrCommand,
                string lpstrReturnString, uint uReturnLength, uint hWndCallback);        public Form1()
            {
                InitializeComponent();
            }        private void Form1_Load(object sender, EventArgs e)
            {
                //Sound.Play("F:\\音乐地带\\想和你去吹吹风.mp3");
                ////mciSendString(@"close temp_alias", null, 0, 0);
                ////mciSendString(@"open ""F:\音乐地带\想和你去吹吹风.mp3"" alias temp_alias",
                ////    null, 0, 0);
                ////mciSendString("play temp_alias", null, 0, 0);        }
        }