C# 朗读消息,声音提示

using System.Speech.Synthesis;

SpeechSynthesizer speech = new SpeechSynthesizer();

speech.Speak("");//同步
speech.SpeakAsync("");//异步

 

posted @ 2023-11-03 00:02  芈璐  阅读(51)  评论(0编辑  收藏  举报