private void ButtonPlay_Click(object sender, EventArgs e) { if (CheckTextIsEmpty()) { return; } int iErr = Jtts.jTTS_Play(textBoxContent.Text, 0); if (Jtts.ERR_NONE != iErr) { JttsErrMsg(iErr); } else { MessageBox.Show("完成"); } }
private Response Call(dynamic _) { //var name = Request.Query["Name"];//get请求获取方法 string msg = getPara("msg"); int iErr = Jtts.jTTS_Play(msg, 0); if (Jtts.ERR_NONE != iErr) { Log4.Debug("错误号" + iErr); AppReportManager.Instance.Send(new LogEntity() { Log = "错误号" + iErr }); return(Fail("错误号" + iErr)); } Log4.Debug("成功"); AppReportManager.Instance.Send(new LogEntity() { Log = "成功" }); return(Success("成功")); }