public override async Task ExecuteAsync(object parameter) { _viewModel.IsRecognizingSpeech = true; try { var text = await _speechService.SpeechToTextAsync(_viewModel.RecordingPath, "en-US"); _viewModel.Text += " " + text; DeleteRecording(_viewModel.RecordingPath); } catch (Exception ex) { Debug.WriteLine(ex); _viewModel.SpeechRecognitionError = Strings.SpeechRecognitionFailure; } finally { _viewModel.IsRecognizingSpeech = false; } }