C# 语音读取(简易)

时间:2020-07-02 19:54:26   收藏:0   阅读:100
using System.Speech.Synthesis;//需要引用的命名空间

string str = "呀呀呀 呀呀呀 我是什么什么的小画家";
SpeechSynthesizer synth = new SpeechSynthesizer();
synth.Speak(str);

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!