简体   繁体   English

如何将AVAudioRecorder录制的语音转换为objective-c中的Text?

[英]How to convert a voice recorded by AVAudioRecorder into Text in objective-c?

I am working on a project where I have to record a voice covert into text then match the pattern and according to the user command perform action. 我正在进行一个项目,我必须将语音隐藏到文本中然后匹配模式并根据用户命令执行操作。

I am able to to record voice of the user through AVAudioRecorder and perform action. 我能够通过AVAudioRecorder录制用户的声音并执行操作。 But the actions are perform on anything what user says. 但是这些操作是针对用户说的任何内容执行的。 I want to perform on user's particular word like if he say play then playing should start. 我想对用户的特定单词执行,就像他说玩游戏然后开始玩。

Help me by any tutorial or any sample code. 通过任何教程或任何示例代码帮助我。

Thanks in Advance 提前致谢

Most apps (including Siri) send the sound file to a remote data center via to do the speech recognition, which involves some fairly heavy duty processing. 大多数应用程序(包括Siri)通过语音识别将声音文件发送到远程数据中心,这涉及一些相当重的处理。 Nuance may have an commercial API. Nuance可能有商业API。

Another option might be to try using the CMU OpenEars or PocketSphinx speech library, which has been ported to the iPhone. 另一个选择可能是尝试使用已移植到iPhone的CMU OpenEars或PocketSphinx语音库。 Also look at VocalKit and this article on running PocketSphinx on the iPhone . 另请参阅VocalKit以及关于在iPhone上运行PocketSphinx的这篇文章。

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

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