using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Speech.Recognition;
namespace ConsoleSpeak
{
class Program
{
static void Main(string[] args)
{
Program program = new Program ();
while (true)
Thread.Sleep(100);
}
public Program()
{
var sre =
new SpeechRecognitionEngine (
new System.Globalization.CultureInfo ("ru-RU"));
sre.SpeechRecognized += Sre_SpeechRecognized;
}
private void Sre_SpeechRecognized (object sender, SpeechRecognizedEventArgs e)
{
Console.WriteLine (e.Result.Text);
}
}
}
Ошибка:Имя "Thread" отсутствует в текущем контексте (CS0103) (Assembly-CSharp)