SSpeechRecognizer 代表将被调用以处理任何说出的单词
我读到 NSSpeechRecognizer 并发现它可以识别委托中与其关联的一组命令: -speechRecognizer:didRecognizeCommand: 我有一个简单的问题:可以调用该代表来回答用户所说的任何单词吗?正如我所想......只有有限数量的单词可以与之相关联!
谢谢,
米拉杰
I read about NSSpeechRecognizer and found that it can recognize a set of commands beings associated with it in delegate: -speechRecognizer:didRecognizeCommand:
I have a simple question: can this delegate be called for any word spoken by user?? as I think.. only a finite number of words can be associated with it!
Thanks,
Miraaj
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如罐头上所说的那样:用于识别命令。所以,是的,您需要预先告诉它应该识别哪些命令。
它不是听写 API。我猜想,如果您尝试使用英语词典加载命令列表,您的识别会非常占用处理器资源,速度缓慢且不准确。
如果您需要听写,您应该提交增强请求来请求。
It's exactly what it says on the tin: It's for recognizing commands. So, yes, you need to tell it up front what commands it should recognize.
It's not a dictation API. I would guess that if you tried to load up the command list with an English dictionary, you'd make recognition very processor-intensive, slow, and inaccurate.
If you want dictation, you should file an enhancement request to ask for it.