C# 如何朗讀字符串

先在引用裏添加 System.Speech。 添加using語句 using System.Speech.Synthesis; 然後就是設置播放語音的方法 public void WordSpeak(string s) { SpeechSynthesizer speech = new SpeechSynthesizer(); speech.Rate = 1;//設置語速 speech.Volume
相關文章
相關標籤/搜索