简体   繁体   English

IBM Worklight for iOS中的语音识别

[英]Voice Recognition in IBM Worklight for iOS

I'm currently writing a hybrid mobile app for iOS and Android using IBM Worklight. 我目前正在使用IBM Worklight为iOS和Android编写混合移动应用程序。 I want to add a voice recognition feature to the app but have struggled to find a cordova plugin implementation that works accurately. 我想向该应用程序添加语音识别功能,但一直在努力寻找能够正常工作的cordova插件实现。 Currently I have tried the following... 目前,我已经尝试了以下方法...

  • Web Speech API using a JavaScript interface. 使用JavaScript接口的Web Speech API。 This hasn't worked because it is not supported in iOS yet. 这没有用,因为iOS尚不支持。
  • iSpeech. iSpeech。 Using a cordova plugin, I have this working but the iSpeech recognition is so bad it's unusable. 使用cordova插件可以正常工作,但是iSpeech识别非常糟糕,无法使用。

If anyone has any suggestions of plugins to try or free recognition services that would work well that would be great. 如果有人对尝试使用插件有任何建议或可以正常工作的免费识别服务,那就太好了。 Better still if anyone has successfully implemented voice recognition in Cordova or Worklight on iOS I'd love to know how you achieved it. 如果有人在iOS的Cordova或Worklight中成功实现了语音识别,那就更好了,我很想知道您是如何实现的。

Thanks in advance. 提前致谢。

Thanks to those who commented on my question. 感谢那些对我的问题发表评论的人。 I have found a work around to my problem that may be useful to some of you. 我发现了解决我的问题的方法,可能对某些人有用。 I adjusted my code to use html text inputs, when a user taps the text input to bring up the iOS keyboard they can use the built in voice recognition to add text to the input. 我将代码调整为使用html文本输入,当用户点击文本输入以调出iOS键盘时,他们可以使用内置的语音识别功能将文本添加到输入中。 See below: 见下文:

<input type="text" id="searchBox" placeholder="Ask Watson" />

I know this is not a perfect solution but it solved my problem in the specific app I am working on. 我知道这不是一个完美的解决方案,但是它可以解决我正在开发的特定应用程序中的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM