我正在使用HTML5和PhoneGap开发一个多平台应用程序,并且我的应用程序应包括语音识别。 Android版本可完美运作,但我无法在iPhone上使用语音识别功能。

我写了一个运行Objective-C代码的PhoneGap插件,我想使用Nuance Dragon SDK进行语音识别。问题是我有很多问题:

Undefined symbols for architecture i386:
  "_SecCertificateCopyData", referenced from:
      l792 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_SecCertificateCopySubjectSummary", referenced from:
      l791 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_SecItemAdd", referenced from:
      l800 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_SecItemCopyMatching", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
      l799 in SpeechKit(libSpeechKit.a-i386-master.o)
      l800 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_SecItemDelete", referenced from:
      l797 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_SecItemUpdate", referenced from:
      l800 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecAttrAccessGroup", referenced from:
      l800 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecAttrAccount", referenced from:
      l797 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecAttrDescription", referenced from:
      l797 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecAttrGeneric", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecAttrLabel", referenced from:
      l797 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecClass", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
      l798 in SpeechKit(libSpeechKit.a-i386-master.o)
      l799 in SpeechKit(libSpeechKit.a-i386-master.o)
      l800 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecClassGenericPassword", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
      l798 in SpeechKit(libSpeechKit.a-i386-master.o)
      l799 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecMatchLimit", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecMatchLimitOne", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecReturnAttributes", referenced from:
      l793 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecReturnData", referenced from:
      l799 in SpeechKit(libSpeechKit.a-i386-master.o)
  "_kSecValueData", referenced from:
      l784 in SpeechKit(libSpeechKit.a-i386-master.o)
      l797 in SpeechKit(libSpeechKit.a-i386-master.o)
      l798 in SpeechKit(libSpeechKit.a-i386-master.o)
      l799 in SpeechKit(libSpeechKit.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


我还发现可以使用Google Chrome API,但它需要一个FLAC音频文件,iOS不支持。

有人可以在iOS上使用Nuance SDK或FLAC帮助我吗?任何帮助将是有用的!

非常感谢。

最佳答案

感谢H2CO3,我找到了解决问题的方法。我需要在项目中包括其他两个框架,即Security.framework和CoreFoundation.framework。

现在,一切正常!

关于iphone - PhoneGap +语音识别SDK,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13120877/

10-11 06:35