private async void receivedCommandHypothesis(Object sender, CommandHypothesisEventArgs e) { if (listeningState == ListeningState.Hypothesis) { await changeStateAsync(preHypothesisListeningState); await handleRejectedHypothesisAsync(); return; } commandHypothesis = e; await changeStateAsync(ListeningState.Hypothesis); await speakAsync($"Did you say: {e.CommandText}"); }
private async void receivedCommandHypothesis(Object sender, CommandHypothesisEventArgs e) { if (listeningState == ListeningState.Hypothesis) { await changeStateAsync(preHypothesisListeningState); await handleRejectedHypothesisAsync(); return; } //await listener.StopListeningAsync(); commandHypothesis = e; await changeStateAsync(ListeningState.Hypothesis); await communicator.Speak($"Did you say: {e.CommandText}"); //await listener.StartListeningAsync(); }
private void onCommandHypothesized(CommandHypothesisEventArgs e) { ReceivedCommandHypothesis?.Invoke(this, e); }