private async void ToSpeak() { String record = await _audioRecordService.RecordAudio(); hear = await _speechService.RecognizeSpeechAsync(record); //await Task.Delay(500); if (record != null) { if (hear != null) { await _audioRecordService.PlayAudio(hear); } else { await _audioRecordService.PlayAudio("Please try again"); } if (hear == word) { await _audioRecordService.PlayAudio("Well Done"); } else { await _audioRecordService.PlayAudio("Incorrect. Please try again"); } } }