C# 如何朗读字符串

先在引用里添加 System.Speech。 添加using语句 using System.Speech.Synthesis; 然后就是设置播放语音的方法 public void WordSpeak(string s) { SpeechSynthesizer speech = new SpeechSynthesizer(); speech.Rate = 1;//设置语速 speech.Volume
相关文章
相关标签/搜索