c#系統語音播報

首先添加引用,System.Speech 添加using指令:using System.Speech.Synthesis; 之後代碼             SpeechSynthesizer synth = new SpeechSynthesizer();             synth.Rate = 1;       //設置語速             synth.Speak(播報的內容
相關文章
相關標籤/搜索