我写了一个背单词的程序,我想知道怎么能够发生 http://www.ctiforum.com/forum/2004/07/forum04_0726.htm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用金山的vtxtauto.tlb,用.Net SDK自带的tlbimp工具把vtxtauto.tlb转换成.dll格式: tlbimp vtxtauto.tlb /silent /namespace:mstts /out:mstts.dll//========================Speech.cs======================using System;using mstts; //MSTTS名称空间namespace Bedlang{ //定义名称空间public class Speech{ private VTxtAuto VTxtAutoEx; public Speech(){ VTxtAutoEx = new VTxtAuto(); VTxtAutoEx.Register(" "," "); //注册COM组件 } public void Speak(String text){ VTxtAutoEx.Speak(text, 0); //发音 }}}--------------- private void button1_Click(object sender, System.EventArgs e) { Speech s=new Speech(); //创建一个Speech对象 if(textBox1.Text.Length==0) s.Speak("Please input letter."); //发音 else s.Speak(textBox1.Text); } 用TTS, 微软提供了相应的API,非常简单,可以控制语速、语调等,金山词霸就用这个 sorry,我提供的那个只支持英文 (C#)ListView添加文件图标 连接数据库的问题,新人求教! 谁有《移动设备.NET应用程序设计》的电子书 aes加密 TreeView上有共性的节点标识同样颜色或标记 有点复杂的 替换函数 求助,刚学c# 过程中遇到背包问题 C# 实现类似qq鼠标悬浮 弹出窗口 显示具体信息 请问vb里的picture1.ScaleHeight在C#里变成什么了? 父窗体与子窗体小问题。初学者。 怎么让“解决方案”中的所有项目都重新编译呀! window项目开发中可以使用config配制文件吗?
tlbimp vtxtauto.tlb /silent /namespace:mstts /out:mstts.dll
//========================Speech.cs======================
using System;
using mstts; //MSTTS名称空间
namespace Bedlang{ //定义名称空间
public class Speech{
private VTxtAuto VTxtAutoEx;
public Speech(){
VTxtAutoEx = new VTxtAuto();
VTxtAutoEx.Register(" "," "); //注册COM组件
}
public void Speak(String text){
VTxtAutoEx.Speak(text, 0); //发音
}
}
}
---------------
private void button1_Click(object sender, System.EventArgs e)
{
Speech s=new Speech(); //创建一个Speech对象
if(textBox1.Text.Length==0)
s.Speak("Please input letter."); //发音
else
s.Speak(textBox1.Text);
}
我提供的那个只支持英文