如何在iOS SDK中使用语音识别? [英] How to use Speech Recognition inside the iOS SDK?

查看:87
本文介绍了如何在iOS SDK中使用语音识别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道SIRI-Services没有公共API,
但是有简单语音识别的API吗?因此,如果我有一个文本字段并且用户点击该文本字段,则会出现一个带有典型麦克风按钮的键盘,如果他按下它,语音会被识别并转换为字符串对象?或者这个按钮可能默认显示?

I know that there is no public API for the SIRI-Services, but is there an API for simple Speech-Recognition? So if I have a textfield and the user taps onto that textfield, a keyboard with the typically microphone button appears and if he pressed it the speech get recognized and transformed into a string object? Or is this button maybe presented by default?

推荐答案

有许多库可用。你可以使用其中任何一个。

There are many libraries availble. You can use any of them.


  1. openears //这是最好的图书馆

  1. openears // This is the best library

VocalKit (对于张开的耳朵不赞成)

VocalKit (Deprecated for open ears)

希望它可以帮到你。

注意

如果您下载 openears 包含一个名为OpenEarsSampleApp的示例项目)@efimovD提及此

if you download openears (which contains a sample project called "OpenEarsSampleApp") @efimovD mentions this


检查视图控制器中的代码,您将看到一个带有
可能命令的数组。这件事检测命令!不是说话。它
听并试图将你说的话与
数组中的单词进行比较

Check the code in view controller and you will see an array with possible commands. This thing detects commands! Not some talk. It listens and tries to compare what you've said with the words from array

这篇关于如何在iOS SDK中使用语音识别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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