private void SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { if (OnSpeech != null) { OnSpeech.Invoke(e.Result.Text, e.Result.Confidence, e.Result.Alternates.Where(w => w.Confidence > 0.3).Select(s => s.Text).ToArray()); } }
public static void InvokeSpeech(SpeechEventArgs e) { OnSpeech?.Invoke(e); }
public void Think(string though) { OnSpeech?.Invoke(this, SpeechBubble.Type.TOUGHT, though); }
public void Speak(Speech speech) => OnSpeech?.Invoke(speech);