- Home /
How to use Speech recognition ?
Hey,
I'm currently working on how to use Speech recognition. Having googled all this day, I found many libraries such as :
Microsoft Speech API (SAPI) => Windows
CMU Sphinx (PocketSphinx) => Cross platform (written in C)
They love games' pluggin (Doesn't work well) => Cross platform
Google Web Speech API (Online) => Online devices, webplayer
Google Speech API => Android
(And other like SILVIA, but it seems (very) expensive.. ..http://en.wikipedia.org/wiki/List_of_speech_recognition_software)
To begin with, I'm trying to test the SAPI one, but System.Speech is not available in the Mono version. I tried to find the library dll or a similar project..
If you know other libraries or packages, or even theorical documentation to code that (last resort ^^'), I'd be very grateful :)
My goal is to compare an AudioClip (registered with Microphone class) with 3 other AudioClips to get the one that must be the correct sentence (or 'not understood') : the problem is I don't know if it's possible to do a quick check or if I must use speech recognition.
Thank you for your help,
Sylafrs.
Edit : errors (within lib names :p)
Edit 2 : I have a simple solution (I don't like) : don't use unity to do the speech recognition.
do it in another process => Not web player, depends on the device.
or use a server => For online devices.
Edit 3 : correction (english syntax error :p)
Edit 4 : pocketsphinx is cross platform
I tried PocketSphinx in C. $$anonymous$$y C program works (I just must to read the doc a little longer to create dynamic grammar (not in a jsgf file)) Then, I must create the Unity wrapper (I hope the dll will be okay). Finally test in devices (mustn't work ^^')
I've made a little PocketSphinx dll + wrapper for unity/windows but the speech recognition system doesn't seem to work well (in english with my accent or in french)..
Damn ^^
By setting the sample rate to 8000 for Pocketsphinx (cmd_ln_init function) and Unity3d ($$anonymous$$icrophone.Start method) it works well for English
I must find out why it doesn't work for french..
Answer by DaveA · Oct 14, 2013 at 05:24 PM
There is a speech kit in the Asset Store which I tried but had no luck with. I would look into using SAPI on Windows or Google on mobile/web, I think those are the best bet.
The "They love games" one ? Yeah, I've seen a video and the demo : it doesn't work well, I prefer not to use it ^^
I finally choose Pocketsphinx, but it doesn't work well for French (and SAPI works very well, but can't be added to Unity)
Answer by cybersoft · Feb 12, 2014 at 02:42 PM
CMU SPHINX (PocketSphinx, OpenEars) seems to be best solution but someone have to make a plugin or module for Unity. I think about creating a group of developer for that work for Unity.
Thanks for your answer. I've made the plugin but it works on Windows only (for the moment). I think there might be some bugs too in there, but it works fine :)
The problem is that I created it when I was working at my company.. so I don't know if I can give you the code :/
Hi there, have managed to make the plugin for Unity? I want to make it work for Android but it is a bitch.