Beispiel #1
0
        public void Open()
        {
            //先关闭之前的
            Close();

            _aiuiConnection = new AIUIConnection(SuperObject.Config.OnlineVoicePort);
            _aiuiConnection.AIUIConnectionReceivedEvent += _aiuiConnection_AIUIConnectionReceivedEvent;

            //检查是否启动了在线模式
            if (SuperObject.Config.EnabledOnlineVoice)
            {
                try
                {
                    _aiuiConnection.Connect();

                    //AIUI播放(开)
                    if (_aiuiConnection != null)
                    {
                        _aiuiConnection.SendLauchVoiceMessage(true);
                    }
                }
                catch (Exception ex)
                {
                    System.Console.WriteLine(ex.ToString());
                }
            }
        }
Beispiel #2
0
 private void lauchVoiceBtn_Click(object sender, EventArgs e)
 {
     comm.SendLauchVoiceMessage(true);
 }