Large vocabulary speech recognition in iPhone without internet?

余生长醉 提交于 2019-11-30 16:20:15

Speech recognition with unlimited vocabulary requires very big computational and memory resources (gigabytes of memory) and thus it's very hard to do that in iPhone on other embedded device. iPhone is 9 times slower than desktop. iPad is easier since it has more powerful CPU.

Google has put very big effort to make their engine work offline for dictation, and still it prefers to send data to the server because it is significantly more accurate.

Because of that most of the solutions running on small devices use limited vocabulary. Though this vocabulary can be large enough so you will not notice that. Usually 500-1000 words is enough to cover most practical situations. You can use OpenEars to recognize such vocabulary.

To train a language model you need texts from your domain (words and expressions). Language model training is described in CMUSphinx tutorial. To use language model you can use the following OpenEars API call:

- (void) changeLanguageModelToFile:     (NSString *)    languageModelPathAsString
withDictionary:     (NSString *)    dictionaryPathAsString 

See API reference for more details.

You can use OpenEars with such vocabulary and corresponding language model to support free form text entry for your device.

It could be done, but if you are looking for an unlimited vocabulary speech to text convertor, then it is best if the computations are done on a server. The requirements for such a system are probably too great for a system such as a smartphone. The main areas where you will have huge requirements are as follows:

  1. Dictionary to map input speech into text.
  2. Computations for speech recognition algorithms to run.

I believe this is the reason why companies like Google run their speech recognition services over a server and not on the phone.

But if the application was a limited word speech to text, then it might be worth giving it a try.

All the best!

Doesn't pocketsphinx work on iPhone without network connectivity? Aren't there some demo apps floating around like VocalKit

http://www.rajeevan.co.uk/pocketsphinx_in_iphone/ may be helpful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!