예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        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);
            }
        }