コード例 #1
0
    private void _oneTimeListener_SpeechReceived(object sender, SpeechEventArgs args)
    {
      var handler = CommandReceived;
      handler?.Invoke(sender, new CommandEventArgs {Name = args.Text});

      _continuousListener.StartAsync();
    }
コード例 #2
0
 private async void _continuousListener_SpeechReceived(object sender, SpeechEventArgs args)
 {
   var handler = CatchwordReceived;
   handler?.Invoke(sender, null);
   
   await _continuousListener.StopAsync();
   await _oneTimeListener.StartAsync();
 }
コード例 #3
0
 protected void OnSpeechReceived(object sender, SpeechEventArgs args)
 {
     var handler = SpeechReceived;
     handler?.Invoke(sender, args);
 }