case "for": case "help": case"now": string[] files = Directory.GetFiles(@"C:\Users\chuck\voice"); Random rnd = new Random(Guid.NewGuid().GetHashCode()); int choice = rnd.Next(0, files.Length - 1); string soundFile = files[choice]; System.Media.SoundPlayer player = new System.Media.SoundPlayer(soundFile); player.Play();
System.Speech.Recognition
SpeechRecognizer
SpeechRecognitionEngine
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)