基本信息
源码名称:医院叫号系统源码 -适用于没有硬件支持的小医院,就只需要一台电脑连接音响就OK
源码大小:7.21M
文件格式:.zip
开发语言:C#
更新时间:2015-01-30
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍
主要是将文字转换成语音文件,并可以存储为wav文件,利用的是win7自带语音库


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SpeechLib;

namespace WindowsFormsApplication1
{
    public partial class Dianming : Form
    {
        Timer atimer = new Timer();
        int items=1000;
        int i = 0;
        SpeechVoiceSpeakFlags spFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
        SpVoice voice = new SpVoice();
        public Dianming()
        {
            InitializeComponent();
        }
        private void btnStart_Click(object sender, EventArgs e)
        {
            try
            {
                SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
                //SpeechVoiceSpeakFlags.
                SpVoice Voice = new SpVoice();
                Voice.Voice = Voice.GetVoices().Item(0);
                Voice.Speak("请" (int.Parse(this.textBoxText.Text.Trim()) 1).ToString() "号病人到窗口问诊!", SpFlags);

                //this.textBoxText.Text = this.textBoxText.Text 1;
                this.textBoxText.Text = (int.Parse(this.textBoxText.Text.Trim()) 1).ToString();
            }
            catch (Exception er)
            {
                MessageBox.Show("An Error Occured!", "SpeechApp", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

        }
        //private void btnStart_Click(object sender, EventArgs e)
        //{
        //    try
        //    {
        //        btnStart.Enabled = false;
        //        btnJxu.Enabled = true;
        //        btnZangting.Enabled = true;
        //        items = this.listBox1.Items.Count ;
        //        atimer.Interval = Convert.ToInt16(this.comboBox1.Text);
        //        atimer.Tick = new EventHandler(atimer_Tick);
        //        atimer.Start();

        //    }
        //    catch (Exception ee)
        //    {
        //        MessageBox.Show(ee.ToString());
        //    }
        //}

        private void btnAgain_Click(object sender, EventArgs e)
        {

            try
            {
                SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync;
                //SpeechVoiceSpeakFlags.
                SpVoice Voice = new SpVoice();
                Voice.Voice = Voice.GetVoices().Item(0);
                Voice.Speak("请" (int.Parse(this.textBoxText.Text.Trim())).ToString() "号病人到窗口问诊!", SpFlags);
            }
            catch (Exception er)
            {
                MessageBox.Show("An Error Occured!", "SpeechApp", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}