Ejemplo n.º 1
0
        void _IX离线识别_识别出内容(string __结果, int __置信度)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new Action <string, int>(_IX离线识别_识别出内容), __结果, __置信度);
                return;
            }
            this.in文本.Text = this.in文本.Text + string.Format("{0}({1}){2}", __结果, __置信度, Environment.NewLine);

            X离线播放.播放("597ffb78", __结果);
        }
Ejemplo n.º 2
0
        static void Main()
        {
            var __参数 = Environment.GetCommandLineArgs();

            if (__参数.Length == 3)
            {
                //MessageBox.Show(string.Join(" ", __参数));
                X离线播放.播放(__参数[1], __参数[2]);
                return;
            }
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            Application.ThreadException += Application_ThreadException;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new F语音合成());
        }
Ejemplo n.º 3
0
        private void 播放(E语音 __语音, string __内容)
        {
            switch (__语音)
            {
            case E语音.无:
                break;

            case E语音.离线:
                X离线播放.播放(HINI.Read("配置.ini", "讯飞语音", "离线合成APPID"), __内容);
                break;

            case E语音.在线:
                X在线播放.播放(__内容);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }