using System; using System.Collections.Generic; using System.Linq; using System.Speech.Recognition; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.…