private async void StartSpeechToText() { var recognizer = new VoiceReco.VoiceRecognizer(); var result = await recognizer.GetDictatedText(); if (result.SuccesfulRecognition) { viewModel.TweetText = result.Text; if (!result.UserCancelled && viewModel.SendTweet.CanExecute(null)) { viewModel.SendTweet.Execute(null); } } }
private async void StartSpeechToText() { var recognizer = new VoiceReco.VoiceRecognizer(); var result = await recognizer.GetDictatedText(); if (result.SuccesfulRecognition) { viewModel.TweetText = result.Text; if (!result.UserCancelled && viewModel.SendTweet.CanExecute(null)) viewModel.SendTweet.Execute(null); } }