1、添加名称空间
using System.Speech.Synthesis;
2、开始说话
SpeechSynthesizer speak = new SpeechSynthesizer();
speak.SpeakAsync("Hello");
让你的程序说话
单片机,嵌入式LINUX技术交流群:142282597
1、添加名称空间
using System.Speech.Synthesis;
2、开始说话
SpeechSynthesizer speak = new SpeechSynthesizer();
speak.SpeakAsync("Hello");