French speech recognition on iOS

a 夏天 提交于 2019-12-08 02:47:26

Openers is using English Acoustic and Language Models by default. So it works well with english, but doesn't support french.

You can download French Acoustic and Language Models from CMU Sphinx website

Some good French Acoustic and Language Models are available here

Download & Change your Openears Acoustic and Language Models with this one.

To do this, just replace Openears hub4wsj_sc_8k folder with the downloaded one and replace the .dic and .languagemodel files with the downloaded ones.

If you think , the downloaded French Acoustic and Language Models are too big, then create our own with few words using this documents

I ended up using this library iPhone-Speech-To-Text for my project.

It use the google voice api, sending a FLAC file of the speech and retrieving the appropriate text.

To make it work for french language, in SpeechToTextModule.m I juste changed the URL

NSURL *url = [NSURL URLWithString:@"https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=en-US"];

to

NSURL *url = [NSURL URLWithString:@"https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=fr"];

The alternative I found is Dragon Speech SDK for Mobile. You simply need to Register With Dragon Mobile and download SDK and Samples.

It Supports English, French, German Speech Recognition. Also it is working very accurately than openEars. I have tested this for English and its working very well.

Here is screen for that sample which supports Recognition in mentioned language

Note

The SDK is free to download and use for 90 days, but...

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