Vista语音识别引擎是否有像Naturallyspoken一样的脚本?
我希望每当用户(使用 Vista 语音识别时)说“Wingbats 太疯狂了!”时执行一个操作。 我该怎么做呢? 是否有脚本或有 dll 可以绑定?
I want to have an action performed whenever the user (while using Vista voice recognition) says "Wingbats are crazy!". How do I do this? Is there scripting or is there a dll to tie into?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能需要查看Microsoft Speech API(SAPI)。 我不久前在 Windows XP 中使用过它,它支持 XML 标记,该标记声明您希望系统识别的命令。 然后,您的应用程序确定识别语音命令时需要发生什么。
对于语音识别,请查看 ISpRecoContext 接口。
以前这是一个 COM 接口,但从 Vista 开始您可以使用 .NET。 或者显然你可以使用 Python 如果这是你的偏好!
编辑
Microsoft Speech Server 2007 支持 VoiceXML,中提到对这个问题的另一个回答。
You might want to check out the Microsoft Speech API (SAPI). I used this in Windows XP a while ago and it supports an XML markup that declares the command(s) that you want the system to recognise. Your application then determines what needs to happen when a speech command is recognised.
For speech recognition, check out the ISpRecoContext interface.
Previously this was a COM interface, but since Vista you can use .NET. Or apparently you can use Python if that's your preference!
Edit
Microsoft Speech Server 2007 supports VoiceXML, mentioned in another response to this question.
我会推荐 WSR 宏 工具包。 它可以让您轻松地将自定义脚本集成到 Windows 语音识别系统中。 SAPI 和 System.Speech.Recognition 非常有用,但考虑到您的问题,我怀疑使用 WSR 宏的学习曲线会容易得多。
I would recommend the WSR Macro toolkit. It lets you easily integrate your custom scripts into the Windows Speech Recognition system. SAPI and System.Speech.Recognition are great if you need more control, but given your question, I suspect that the learning curve will be much easier with WSR Macros.
查看语音 XML。 可以在 w3.org。
Check out Voice XML. A list of systems implementing the standard can be found on w3.org.