I'm trying to develop an iOS app using speech-recognition for french language, but have been unsuccessful until now. I tried using the openEars framework, which worked great for english language, but doesn't support french. I used some info from this link.
If anyone know a solution it would be awesome.
Thanks
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
来源:https://stackoverflow.com/questions/15407927/french-speech-recognition-on-ios