private void button_Copy_Click(object sender, RoutedEventArgs e) { string temp = textBox1.Text.Trim(); SpeekTTS tts = SpeekTTS.GetInstance(); tts.SpeechToPrompt(temp); }
public static void SpeechToPrompt(string strText) { try { var tts = SpeekTTS.GetInstance(); tts.SpeechToPrompt(strText); } catch (Exception ex) { //LogImpl.Error(string.Format("{0}{2}{1}", ex.StackTrace, ex.Message, System.Environment.NewLine)); } }