如何获取到计算机里已安装的语音 如图 C# 如何获取 语音选择理的 语音列表请教各位大侠 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没弄过,搜sapi看看有没有相关的api看看吧 using SpeechLib; SpVoiceClass voice = new SpVoiceClass(); var voices = voice.GetVoices(null, null); for (int i = 0; i < voices.Count; i++) { string voidId = voices.Item(i).Id; string voiceName = voices.Item(i).GetDescription(0); }voiceName就是你要的。比如要用截图里选中项来读,则: if (voiceName == "Microsoft Simplified Chinese") voice.Voice = voices.Item(i); voice.Rate = 4; voice.Speak("测试", SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak); winfrom Treeview定位 winform DxExpress GridControl问题 请问知道的朋友,如何转化byte赋值 使用 xpath检索 xml文档的问题。 双击ListView某项时获取该项的值 vb 语句 如何改为c # ? TreeView.Node.Tag的属性为什么变了 请问有方法修改TreeView控件的+/-按钮吗? 关于C#里解析HTML用的正则表达式问题 c#新手报到,入门问题! 请问LINQ是否有学习意义? SourceName能不能同时指定多个源?
using SpeechLib; SpVoiceClass voice = new SpVoiceClass();
var voices = voice.GetVoices(null, null);
for (int i = 0; i < voices.Count; i++)
{
string voidId = voices.Item(i).Id;
string voiceName = voices.Item(i).GetDescription(0);
}
voiceName就是你要的。比如要用截图里选中项来读,则: if (voiceName == "Microsoft Simplified Chinese")
voice.Voice = voices.Item(i);
voice.Rate = 4;
voice.Speak("测试", SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak);