我正在用c#开发语音识别程序。我希望我的语音识别能够计算数字。 这是我到目前为止尝试过的,
if (e.Result.Text == "count numbers")
{
for (int count = 1; count <= 10; count++)
{
speechSynthesizer.Speak(); // what should I put here?
tbOutput.Text += count;
}
谢谢
使用计数。ToString((:
for (int count = 1; count <= 10; count++)
{
speechSynthesizer.Speak(count.ToString());
tbOutput.Text += count;
}