private void StartSynthesis_Btn_Click(object sender, RoutedEventArgs e)
        {
            TextRange textRange = new TextRange(TextToSynthesis_Rtb.Document.ContentStart, TextToSynthesis_Rtb.Document.ContentEnd);
            var       result    = SpeechHelper.Tts(textRange.Text);

            MessageBox.Show("合成成功!");
        }
        private void StartRecognition_Btn_Click(object sender, RoutedEventArgs e)
        {
            bool flag        = true;
            var  filePath    = this.filePath_TB.Text;
            var  audioFormat = (AudioFormatType)audioFormat_CB.SelectedValue;

            if (string.IsNullOrEmpty(filePath))
            {
                flag = false;
                MessageBox.Show("请选择识别文件!");
            }
            else
            {
                int startIndex = filePath.LastIndexOf('.');
                int extlength  = filePath.Length - filePath.LastIndexOf('.') - 1;
                var fileExt    = filePath.Substring(startIndex + 1, extlength);
                if (audioFormat.ToString().ToLower() != fileExt.ToLower())
                {
                    flag = false;
                    MessageBox.Show("请选择音频格式!");
                }
            }
            if (flag)
            {
                var result       = SpeechHelper.AsrData(filePath, audioFormat.ToString().ToLower());
                var speechResult = JsonConvert.DeserializeObject <SpeechModel>(result.ToString());

                //RecognitionResults_RTB.Document.Blocks.Clear();
                speechResult.result.ForEach(item =>
                {
                    Run runx            = new Run(item);
                    Paragraph paragraph = new Paragraph(runx);
                    RecognitionResults_RTB.Document.Blocks.Add(paragraph);
                });
            }
        }