如何在 iOS SDK 中使用语音识别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16812399/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 23:42:47  来源:igfitidea点击:

How to use Speech Recognition inside the iOS SDK?

iosobjective-cspeech-recognitionsiri

提问by Sebastian Boldt

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?

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

采纳答案by Nishant Tyagi

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

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

  1. openears// This is the best library

  2. VocalKit(Deprecated for open ears)

  3. TTS
  4. ispeech(Not free)
  1. openears// 这是最好的库

  2. VocalKit(不推荐用于开放的耳朵)

  3. 转接电话
  4. ispeech(非免费)

Hope it helps you.

希望对你有帮助。

NOTE:

注意

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

如果您下载openears其中包含一个名为“OpenEarsSampleApp”的示例项目)@efimovD 会提到这一点

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

检查视图控制器中的代码,您将看到一个包含可能命令的数组。这东西检测命令!不是闲聊。它会倾听并尝试将您所说的内容与数组中的单词进行比较

回答by tim176

You can use the MindMeld iOS SDK provided by Expect Labs. It supports continuous (streaming) speech recognition on iOS. It also supports natural language understanding and content discovery for any custom content domain.

您可以使用 Expect Labs 提供的 MindMeld iOS SDK。它支持 iOS 上的连续(流)语音识别。它还支持任何自定义内容域的自然语言理解和内容发现。

Try it out at: https://expectlabs.com/docs/sdks/ios/gettingStarted

试试看:https: //expectlabs.com/docs/sdks/ios/gettingStarted