C#get Console.Writeline(“”)说话(“”)

case "Start VS": Console.WriteLine("Starting Visual Studio's..."); System.Diagnostics.Process.Start("devenv.exe"); break; 

我怎样才能使用字符串输入来播放声音片段? (“启动Visual Studio”……)

使用System.Speech.Synthesis.SpeechSynthesizer类。 阅读本文以获取示例和其他信息。