/// <summary> /// function for converting microphone speech to Text /// </summary> /// <returns>Task<string></string></returns> private static async Task <string> StartSpeechToText() { SpeechToText obj = new SpeechToText(); return(await obj.ConvertSpeechtoTextFromMicrophone()); }