Tag: 语音识别

语法的语言与语音识别器的语言不匹配

美好的一天! 它是关于Microsoft Server Speech SDK v11.0(服务器版本)。 我在MSDN示例中运行了测试示例 。 所以英语短语-red,blue–很好。 但我也想识别俄语 – 安装微软语音识别语言-TELE(ru-RU)并运行我的app / 码: static void DoWork() { Thread.CurrentThread.CurrentCulture = new CultureInfo(“ru-RU”); Thread.CurrentThread.CurrentUICulture = new CultureInfo(“ru-RU”); // Create a new SpeechRecognitionEngine instance. SpeechRecognitionEngine sre = new SpeechRecognitionEngine(); // Configure the input to the recognizer. sre.SetInputToWaveFile(@”c:\Test\красный.wav”); // Create a simple grammar that recognizes “red”, “green”, or […]

微软语音识别平台

我使用System.Speech在C#中编写了一个用于语音识别的应用程序,它可以在Windows 7上正常工作。但是我创建了可以在Windows 2003(x86)上运行的相同应用程序。 我的编程环境:Windows 7 x64 Pro Visual Studio 2008 为了在我的编程环境中开发这个应用程序,我安装了: 1.Microsoft语音平台 – 服务器运行时(版本10.1)(x86) http://www.microsoft.com/downloads/details.aspx?FamilyID=674356C4-E742-4855-B3CC-FC4D5522C449&displaylang=en&displaylang=en 2.Microsoft语音平台 – 软件开发套件(SDK)(版本10.1)(x86) http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=4d36908b-3264-49ef-b154-f23bf7f44ef4 3.Microsoft语音平台 – 服务器运行时语言(版本10.1) (此处为en-GB安装了SR) http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=f704cd64-1dbf-47a7-ba49-27c5843a12d5 在我的程序而不是System.Speech中,我使用了Microsoft.Speech.Recognition; 从SDK文档中粘贴此代码: using Microsoft.Speech.Recognition; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public […]

语音/语音到文本

我需要一个API或库(最好是免费的),它将通过麦克风将语音/语音转换为文本(字符串)。 另外,我需要一个可以进行文本到语音转换的API或库。 我想使用C#和.NET,但其他语言就足够了。 谢谢。

SpeechRecognitionEngine.InstalledRecognizers返回未安装的识别器

我正在尝试启动一个简单的语音识别程序,但它不起作用,我已经安装了一些语言(en-GB和en-US),但每当我使用以下内容时: SpeechRecognitionEngine.InstalledRecognizers 它返回一个空集合。 即使我只是尝试启动识别器,它也将返回“ 未安装识别器 ”。 但是当我重新安装一种语言时,它说已经安装了。 using ( SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine(new System.Globalization.CultureInfo(“en-US”))) { // Create and load a dictation grammar. recognizer.LoadGrammar(new DictationGrammar()); // Add a handler for the speech recognized event. recognizer.SpeechRecognized += new EventHandler(recognizer_SpeechRecognized); // Configure input to the speech recognizer. recognizer.SetInputToDefaultAudioDevice(); // Start asynchronous, continuous speech recognition. recognizer.RecognizeAsync(RecognizeMode.Multiple); // Keep […]

没有语法C的语音识别API#

我正在开发一个程序,99%的时间我可以在标准的Microsoft语音识别中使用一组语法来检测所说的单词。 但是在一些情况下,我需要用户说些什么。 这永远不会是可预测的。 那么有没有办法用MS语音识别来做到这一点? 还有其他任何语音识别API(免费),可以处理非预设单词吗?

C#语音识别多个单词? (承认一句)

我正在构建一个识别用户多个单词的应用程序; 因此用一个被认可的词组成一个句子。 这就是我现在所拥有的: namespace SentenceRecognitionFramework__v1_ { public partial class Form1 : Form { SpeechRecognitionEngine recog = new SpeechRecognitionEngine(); SpeechSynthesizer sp = new SpeechSynthesizer(); public Form1() { InitializeComponent(); } private void btnListen_Click(object sender, EventArgs e) { Choices sList = new Choices(); sList.Add(new String[] { “what”,”is”, “a”, “car” }); Grammar gr = new Grammar(new GrammarBuilder(sList)); recog.RequestRecognizerUpdate(); recog.LoadGrammar(gr); […]

更改语音识别引擎库的语言

我正在开发一个程序(在C#中)来识别来自用户的语音命令并在PC中执行,即用户说“开始菜单”并且PC打开开始菜单。 我找到了一个很酷的库: SpeechRecognitionEngine用于语音识别,问题是我需要识别西class牙语,有没有办法改变语言?

如何识别语音文件中的短语

如何让引擎成功识别语音文件中的短语(wav / mp3 / etc ..)? 例如,如果我有一个语音文件和同一文件上下文的书面文本,那么要使它识别语音文件中的文字。 我尝试使用SpeechRecognitionEngine,但到目前为止没有成功。 我会欣赏这些想法,因为这是我第一次处理语音识别技术。 我已经看过使用词典的语音到文本的例子,但我不确定它在这里是如何有用的。 我想的可能是将所有语音文件转换为文本,然后只是查找该文本中的特定短语,但我认为这不是正确的方法。 将5小时语音转换为文本似乎没有意义….或者可能将特定短语用作“词典”并在语音文件中查找此项目。

如何在C#中将语法(规则)和听写(言论自由)与SpeechRecognizer混合

我非常喜欢Microsofts最新的语音识别(和SpeechSynthesis)产品。 http://msdn.microsoft.com/en-us/library/ms554855.aspx http://estellasays.blogspot.com/2009/04/speech-recognition-in-cnet.html 但是我觉得在使用语法时我有点受限。 不要误会我的语法,语法识别确切地指出了要注意的单词/短语,但是,如果我想要它能够识别出一些我没注意到的东西呢? 或者我想解析一个半预定命令名和半随机字的短语? 例如.. 情景A – 我说“谷歌[漏油事件]”,我希望它用括号中的搜索结果打开谷歌,这可能是任何东西。 场景B – 我说“找到[曼彻斯特]”,我想让它在Google地图或其他任何未预先确定的地方搜索曼彻斯特 我希望它知道’谷歌’和’定位’是命令,它是参数之后的东西(可能是任何东西)。 问题:有没有人知道如何混合使用预先确定的语法(语音识别应该识别的单词)和不在预定语法中的单词? 代码片段.. using System.Speech.Recognition; … … SpeechRecognizer rec = new SpeechRecognizer(); rec.SpeechRecognized += rec_SpeechRecognized; var c = new Choices(); c.Add(“search”); var gb = new GrammarBuilder(c); var g = new Grammar(gb); rec.LoadGrammar(g); rec.Enabled = true; … … void rec_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) […]

SpeechSynthesizer无法获得所有已安装的声音

我在我的Windows 7 64位操作系统中安装了一个新的32位Scansoft语音(Jennifer),以便能够在我正在开发的一个.NET应用程序中使用。 问题是我在调用方法时: List allInstalledVoices = new SpeechSynthesizer().GetInstalledVoices(); 我只收到一个声音,默认的Microsoft Anna Voice。 但是我可以在其他文本到语音应用程序中看到所有已安装的声音。