C#Speech-创建一个循环,让文本到语音合成器计数

C#Speech-创建一个循环,让文本到语音合成器计数,c#,winforms,text-to-speech,C#,Winforms,Text To Speech,我正在用c语言编写语音识别程序。我想让我的语音识别系统数数。 这就是我到目前为止尝试过的 if (e.Result.Text == "count numbers") { for (int count = 1; count <= 10; count++) { speechSynthesizer.Speak(); // what should I put here?

我正在用c语言编写语音识别程序。我想让我的语音识别系统数数。 这就是我到目前为止尝试过的

if (e.Result.Text == "count numbers")
        {
            for (int count = 1; count <= 10; count++)
            {
                speechSynthesizer.Speak(); // what should I put here?
                tbOutput.Text += count; 

            }
if(e.Result.Text==“计数数字”)
{
对于(int count=1;count使用count.ToString():


对于(int count=1;count语音识别不是文本到语音合成,请更正您的问题如果您没有语法配置文件,请查看(
.sraxml
.srgxml
-有一个语法生成器/验证器,与Microsoft Speech SDK一起分发,它还包括一个预构建的数字/货币/日期语法),您只需构建一个
字典
和一个
语音合成器即可
for (int count = 1; count <= 10; count++)
{
    speechSynthesizer.Speak(count.ToString());
    tbOutput.Text += count; 
}