没有语法C#语音识别API [英] Speech Recognition API without Grammar C#

查看:187
本文介绍了没有语法C#语音识别API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个程序,99%的时间,我可以使用标准的Microsoft语音识别中设置语法来检测所说的话。但在一些情况下,我需要用户说些什么。这是永远不可预测的。

I am developing a program where 99% of the time i can use a set Grammar in the standard Microsoft Speech Recognition to detect words being said. However in a few circumstances, i need the user to say something. This is never going to be predictable.

那么,有一种方法来做这个MS语音识别?

So is there a way to do this with the MS speech recognition?

推荐答案

有没有任何其他语音识别API可以处理非预设的字?有一个类叫做听写语法,它允许您识别口述语音。

There is a class called DictationGrammar that allows you to recognize dictated speech.

它还支持听写上下文 - 因此您可以指定听写文本应以特定短语开始/结束。

It also supports a "dictation context" - so you can specify that the dictated text should start/end with a specific phrase.

我认为这会做的伎俩 - 技术上,它仍然是一个语法,但它似乎适合你正在寻找。

I think that would do the trick - technically, it's still a grammar, but it seems to fit what you're looking for.

这篇关于没有语法C#语音识别API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆