Exemple #1
0
        /// <summary>
        /// 终点站语音播报
        /// </summary>

        public void speechDaoZDZ()
        {
            LedShow            led    = new LedShow();
            Speech             sp     = new Speech();
            SpeechOperat       spo    = new SpeechOperat();
            string             text1  = null;
            string             text2  = null;
            string             ent1   = "intp65";
            string             vcn1   = "xiaoyan";
            string             ent2   = "intp65";
            string             vcn2   = "henry";
            List <SpeechModel> listYu = new List <SpeechModel>();

            listYu = spo.SelectSp("终点站提示语");
            for (int i = 0; i < listYu.Count; i++)
            {
                text1 = listYu[i].speechContent;
                text2 = listYu[i].speechEnContent;
            }
            text1 = "惠而浦冰箱洗衣机提醒您,列车已经安全抵达我们的终点站 " + textBox14.Text + "," + text1;
            text2 = "Whirlpool refrigerator washing machine remind you,The train has arrived safely at our terminal " + this.dataGridView1.Rows[m].Cells[1].Value.ToString() + " station," + text2;
            led.ShowLEDMessage(text1 + "  " + text2 + "                     ", this.textBox1.Text, this.textBox17.Text);
            sp.SpeechTest(text1, ent1, vcn1);
            Thread.Sleep(2000);  // 停顿2秒
            sp.SpeechTest(text2, ent2, vcn2);
            Thread.Sleep(35000); // 停顿35秒
            led.ShowLedFLStation(this.textBox2.Text + "——" + this.textBox3.Text, this.textBox1.Text, this.textBox17.Text);
        }
Exemple #2
0
        /// <summary>
        /// 确认
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button7_Click(object sender, EventArgs e)
        {
            textBoxEnable(false);
            LedShow led = new LedShow();

            led.ShowLedFLStation(this.textBox2.Text + "——" + this.textBox3.Text, this.textBox1.Text, this.textBox17.Text);
        }
Exemple #3
0
        /// <summary>
        /// 预到站语音播报
        /// </summary>

        public void speechYu()
        {
            LedShow            led    = new LedShow();
            Speech             sp     = new Speech();
            SpeechOperat       spo    = new SpeechOperat();
            string             text1  = null;
            string             text2  = null;
            string             ent1   = "intp65";
            string             vcn1   = "xiaoyan";
            string             ent2   = "intp65";
            string             vcn2   = "henry";
            List <SpeechModel> listYu = new List <SpeechModel>();

            listYu = spo.SelectSp("预到站提示语");
            for (int i = 0; i < listYu.Count; i++)
            {
                text1 = listYu[i].speechContent;
                text2 = listYu[i].speechEnContent;
            }
            text1 = "惠而浦冰箱洗衣机提醒您,列车即将到达 " + textBox14.Text + "," + text1;
            text2 = "Whirlpool refrigerator washing machine remind you,The train is about to arrive " + this.dataGridView1.Rows[m].Cells[1].Value.ToString() + " Station," + text2;
            led.ShowLEDMessage(text1 + "  " + text2 + "                     ", this.textBox1.Text, this.textBox17.Text);
            sp.SpeechTest(text1, ent1, vcn1);
            Thread.Sleep(4000);  // 停顿4秒
            sp.SpeechTest(text2, ent2, vcn2);
            Thread.Sleep(48000); // 停顿48秒
            led.ShowLedFLStation(" ", this.textBox1.Text, this.textBox17.Text);
        }