【发布时间】:2015-07-22 03:39:41
【问题描述】:
我正在尝试使用 c# 作为我的代码创建一个具有语音识别功能的网页。 请帮助我,因为我想知道如何在另一条消息开始讲话时停止 SpeakAsync 以传递完整的消息。
这样的伪代码
protected void Button1_Click(object sender, EventArgs e)
{
ss.SpeakAsync(CurrentStop); // it means if there is a current message it should stop before delivering the next line
ss.SpeakAsync("Phrase and Sentence");
}
protected void Button2_Click(object sender, EventArgs e)
{
ss.SpeakAsync(CurrentStop);
ss.SpeakAsync("Phrase is a group of words without a complete thought.");
}
请帮助我。这是我第一次使用c#以及system.speech
【问题讨论】:
标签: c# speech-recognition text-to-speech speech speech-to-text