gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 11:38:48 27 4
gpt4 key购买 nike

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

最佳答案

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

  1. openears//这是最好的库

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

  3. TTS
  4. ispeech (不是免费的)

希望对你有帮助。

注意:

如果您下载 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

关于ios - 如何在 iOS SDK 中使用语音识别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16812399/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com