Example #1
0
 // 音声認識サービス呼び出し用ボタンのコマンドの実処理
 private void ExecuteVoiceRecognition()
 {
     if (IsRecognizing)
     {
         // 音声認識を実行中の場合、「停止」ボタンとして機能させる。
         _voiceRecognitionService.StopRecognizing();
     }
     else
     {
         // 音声認識が停止中の場合、「開始」ボタンとして機能させる。
         _voiceRecognitionService.StartRecognizing();
     }
 }