C# get Console.Writeline(" ") 说话(" ")
C# get Console.Writeline(" ") to speak (" ")
case "Start VS":
Console.WriteLine("Starting Visual Studio's...");
System.Diagnostics.Process.Start("devenv.exe");
break;
我怎样才能使用字符串输入来播放声音片段? ("Starting Visual Studio"...)
使用System.Speech.Synthesis.SpeechSynthesizer
class。阅读 this 以获取示例和其他信息。
case "Start VS":
Console.WriteLine("Starting Visual Studio's...");
System.Diagnostics.Process.Start("devenv.exe");
break;
我怎样才能使用字符串输入来播放声音片段? ("Starting Visual Studio"...)
使用System.Speech.Synthesis.SpeechSynthesizer
class。阅读 this 以获取示例和其他信息。