Пример #1
0
 public NamedSpeechRecognizer(TimeSpan attentionLength, string name)
 {
     _automaticallyResettingSwitch = new AutomaticallyResettingSwitch(attentionLength);
     _name = name;
     _speechRecognizer = new PhraseBasedSpeechRecognizer();
     _speechRecognizer.RegisterPhrase(name);
 }
Пример #2
0
 public NamedSpeechRecognizer(TimeSpan attentionLength, string name)
 {
     _automaticallyResettingSwitch = new AutomaticallyResettingSwitch(attentionLength);
     _name             = name;
     _speechRecognizer = new PhraseBasedSpeechRecognizer();
     _speechRecognizer.RegisterPhrase(name);
 }