コード例 #1
0
        /// <summary>
        /// 初始化Susi
        /// </summary>
        /// <returns></returns>
        private void InitSusiLib()
        {
            UInt32 Status = SusiStatus.SUSI_STATUS_SUCCESS;

            try
            {
                Status = SusiLib.SusiLibInitialize();
            }
            catch
            {
                throw new Exception("Call SusiLibInitialize exception, maybe susi is not installed");
            }

            if (Status != SusiStatus.SUSI_STATUS_SUCCESS)
            {
                throw new Exception("Call SusiLibInitialize Failed");
            }
        }
コード例 #2
0
        /// <summary>
        /// 初始化Susi
        /// </summary>
        /// <returns></returns>
        private void InitSusiLib()
        {
            UInt32 Status = SusiStatus.SUSI_STATUS_SUCCESS;

            try
            {
                Status = SusiLib.SusiLibInitialize();
            }
            catch
            {
                //添加日志 此处异常是不能读取susi4.dll,要安装susi4.0
                return;
            }
            if (Status != SusiStatus.SUSI_STATUS_SUCCESS)
            {
                //添加日志信息
                return;
            }
        }