[转载]System.Speech.Recognition(语音识别)
摘要:虽然您可以在应用程序中使用通用听写语言模型,但是很快您将遇到大量应用程序开发困难,它们是关于如何处理识别结果的。例如,以比萨饼定购系统为例。用户可能说“I'd like a pepperoni pizza”,结果将包含该字符串。但是它也可能包含“I'd like pepper on a plaza”,或者很多发音类似的语句,这取决于用户的发音差别或背景噪音情况。同样,用户可能说“Mary had a little lamb”,而结果将包含它,即使它对于比萨饼定购系统毫无意义。所有这些错误的结果对于应用程序而言毫无用处。因此,应用程序应该始终提供专门描述应用程序所要听到内容的语法。在图 8 中,
阅读全文
posted @
2011-01-14 14:13
guoxuefeng
阅读(7599)
推荐(2)
System.Speech.Synthesis(语音合成器)
摘要:System.Speech.Synthesis让我们看一下关于如何从托管应用程序使用语音合成的示例。作为最典型的一个 UI 输出示例,我将从只说出“Hello, world”的应用程序开始,如图 5 所示。该示例是一个明显的控制台应用程序,是最近使用 Visual C#® 创建的,其中添加了三行代码。所添加的第一行只引入 System.Speech.Synthesis 命名空间。第二行声明并实例化 SpeechSynthesizer 的实例,它准确表示了其名称的含意:语音合成器。所添加的第三行是对 SpeakText 的调用。这是调用合成器所需的全部。默认情况下,SpeechSynthesiz
阅读全文
posted @
2011-01-14 12:28
guoxuefeng
阅读(13522)
推荐(3)
让程序通过windows的防火墙
摘要:public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { ...
阅读全文
posted @
2011-01-11 10:37
guoxuefeng
阅读(668)
推荐(0)
dataReader转换成Datatable,中间还有数据的类型
摘要:/// summary /// 用于把dataReader转换成DataTable /// /summary /// param name="dataReader"/param /// returns/returns public DataTable DataReaderToDataTable(...
阅读全文
posted @
2010-12-22 11:08
guoxuefeng
阅读(397)
推荐(0)
ComboBox与TreeView组合控件 ComboBoxTree(转帖)
摘要:平时常用无限级分类,只是这个无限级树,每次都得拖ComboBox,设置,拖TreeView,再设置,代码里也得整来整去,很是麻烦,也很是不爽,所以改造下。 不过我的水平想组合这两个东西,可太有难度了,所以还是上网上找到,在CodeProject上找到一个评价还不错的,拿下来修改,改造了两天,终于可以很方便的使用了。 不过还是我的水平问题,这个控件使用的东西很多理解不了,所以感觉改的不是很好,只能说能很方便的使用。 调用方法: 填充:comboBoxTree1.Fill(DataTable dt, object ParentID) /// /// 填充T
阅读全文
posted @
2010-06-05 17:21
guoxuefeng
阅读(1986)
推荐(0)
Sql Server日期格式化
摘要:Sql Server 中一个非常强大的日期格式化函数 Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06 Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16 Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06 Select CONVERT(varchar(100), GETDATE(), 4): 16.05.0
阅读全文
posted @
2010-05-05 15:09
guoxuefeng
阅读(157)
推荐(0)
Button 按钮的重绘
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespace BaseControl{ public partial class Room : Button { public Room() { InitializeComponent(); Width = 100;//设置按钮的款度 Hei
阅读全文
posted @
2010-04-15 19:30
guoxuefeng
阅读(1061)
推荐(0)
C# RGB to HSL / HSL
摘要:This seems to be something difficult to find, but extremely useful for creating colour schemes that look nice. I needed to create my own colour class for persistent storage reasons. The technique below works just as easily by replacing the ColorRGB references with a simple ::System.Drawing.Color. My
阅读全文
posted @
2010-04-10 10:46
guoxuefeng
阅读(2189)
推荐(0)