Exemple #1
0
        /// <summary>
        /// 测试 手动发送文本转语音
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                //string strMsg = "PACKETTYPE~TTS|TsCmd_Mode~终端|TsCmd_Type~TTS播放|TsCmd_UserID~3|TsCmd_ValueID~26622,26624|TsCmd_Params~久远的一篇名唤想中的理想大约是十二三岁时写的以前还有可惜散失了我还记得最初的一篇小说是一个无题的家庭伦理悲剧关于一个小康之家姓云娶了个媳妇名叫月娥小姑叫风娥哥哥出门经商去了于是风娥便乘机定下计策来谋害嫂嫂写到这里便搁下了没有续下去另起炉灶写一篇历史小说开头是话说隋末唐初的时候我喜欢那时候那仿佛是一个兴兴轰轰红色的时代我记得这|TsCmd_Date~2018-01-19 13:17:44|TsCmd_Status~0|USER_PRIORITY~0|USER_ORG_CODE~P10|TsCmd_PlayCount~2";


                //   string strMsg = "PACKETTYPE~TTS|TsCmd_Mode~终端|TsCmd_Type~TTS播放|TsCmd_UserID~3|TsCmd_ValueID~26622,26624|TsCmd_Params~久远的一篇名唤想中的理想大约是十二三岁时写的以前还有可惜散失了我还记得最初的一篇小说是一个无题的|TsCmd_Date~2018-01-19 13:17:44|TsCmd_Status~0|USER_PRIORITY~0|USER_ORG_CODE~P10|TsCmd_PlayCount~2";


                //string strMsg = "PACKETTYPE~TTS|TsCmd_Mode~区域|TsCmd_Type~TTS播放|TsCmd_UserID~1|TsCmd_ValueID~3|TsCmd_Params~12|TsCmd_Date~2018-03-07 14:36:38|TsCmd_Status~0|USER_PRIORITY~0|USER_ORG_CODE~P37|TsCmd_PlayCount~1";

                string strMsg = "PACKETTYPE~TTS|TsCmd_Mode~终端|TsCmd_Type~TTS播放|TsCmd_UserID~1|TsCmd_ValueID~1|TsCmd_Params~12|TsCmd_Date~2018-03-07 14:36:38|TsCmd_Status~0|USER_PRIORITY~0|USER_ORG_CODE~P37|TsCmd_PlayCount~1";

                // string strMsg = "PACKETTYPE~TTS|TsCmd_Mode~终端|TsCmd_Type~TTS播放|TsCmd_UserID~3|TsCmd_ValueID~26622,26624|TsCmd_Params~久远的一篇名唤想中的理想大约是十二三岁时写的以前还有可惜散失了我还记得最初的一篇小说是一个无题的家庭伦理悲剧关于一个小康之家姓云娶了个媳妇名叫月娥小姑叫风娥哥哥出门经商去了于是风娥便乘机定下计策来谋害嫂嫂写到这里便搁下了没有续下去另起炉灶写一篇历史小说开头是话说隋末唐初的时候我喜欢那时候那仿佛是一个兴兴轰轰红色的时代我记得这最初的一篇小说是一个无题的家庭伦理悲剧关于一个小康之家姓云娶了个媳妇名叫月娥小姑叫风娥哥哥出门经商去了于是风娥便乘机定下计策来谋害嫂嫂写到这里便搁下了没有续下去另起炉灶写一篇历史小说开头是话说隋末唐初的时候我喜欢那时候那仿佛是一个兴兴轰轰红色的时代我记得这最初的一篇小说是一个无题的家庭伦理悲剧关于一个小康之家姓云娶了个媳妇色的时代我记得这|TsCmd_Date~2018-01-19 13:17:44|TsCmd_Status~0|USER_PRIORITY~0|USER_ORG_CODE~P10|TsCmd_PlayCount~2";
                //  dataHelper.Serialize(strMsg);


                TextForm form = new TextForm(strMsg);
                form.ShowDialog();
                if (form.IsSend)
                {
                    strMsg = form.textBox1.Text;
                    dataHelper.Serialize(strMsg);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #2
0
        /// <summary>
        /// 音频文件调取
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button4_Click(object sender, EventArgs e)
        {
            try
            {
                //  string strMsg = "PACKETTYPE~TRANSFER|FILENAME~S20171204235236060545140210420202.mp3|SRVPHYSICALCODE~0017042752|PACKSTARTINDEX~00000001";
                string strMsg = "PACKETTYPE~TRANSFER|FILENAME~B20740131003632000000001122334500.wav|SRVPHYSICALCODE~0000000000|PACKSTARTINDEX~00000001|AUDIOREBACKSERVERIP~192.168.4.109|AUDIOREBACKPORT~8520";


                //  string strMsg = "PACKETTYPE~TRANSFER|FILENAME~B20000109235934000000000000000000.wav|SRVPHYSICALCODE~0102030455|PACKSTARTINDEX~00000001|AUDIOREBACKSERVERIP~192.168.4.109|AUDIOREBACKPORT~8520";  测试注释   20180301


                TextForm form = new TextForm(strMsg);
                form.ShowDialog();
                if (form.IsSend)
                {
                    strMsg = form.textBox1.Text;
                    dataHelper.Serialize(strMsg);
                }


                // dataHelper.Serialize(strMsg);
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #3
0
        /// <summary>
        /// 测试  手动发送升级
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                string strMsg = "PACKETTYPE~UPGRADE|NEWVERSION~102|OLDVERSION~101|UPGRADEMODE~0|HTTPURL~http://192.168.4.87:80/upload/111.txt|LIST~0102030455";

                TextForm form = new TextForm(strMsg);
                form.ShowDialog();
                if (form.IsSend)
                {
                    strMsg = form.textBox1.Text;
                    dataHelper.Serialize(strMsg);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }