public async Task <IActionResult> Upload() { var inputFile = Request.Form.Files["fileUploader"]; var outputType = Request.Form["OutputType"].ToString(); var fileObj = await Upload(inputFile); var text = await SpeechHelper.RecognizeFromAudioMP3Async(fileObj.FilePath); System.IO.File.Delete(fileObj.FilePath); return(await handle(text, outputType != "1")); }