1
\$\begingroup\$

I need to implement voice recognition in my game, the target is that the user speaks into the microphone and the game responds accordingly to some commands.

What libraries could help me with such task? I need them for C++ and as lightweight as possible to plug into the game(it will be used in mobile games).

An ideal usage would be having it capture input sound or receiving the audio samples, and outputting strings with the recognized text.

Thanks

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Which tech to use (and questions that generate lists) are off topic on GDSE according to the FAQ. \$\endgroup\$ – Sean Middleditch Feb 20 '13 at 21:58
  • \$\begingroup\$ You are right, however I couldn't really ask on particular implementation techniques since I have no illusions of making it myself :p \$\endgroup\$ – Grimshaw Feb 21 '13 at 12:27
1
\$\begingroup\$

Voice recognition is more difficult than you think it is. At least, you need dictionary (file containing thousands of words). Check this link https://stackoverflow.com/questions/2817663/sound-sample-recognition-library-code

\$\endgroup\$
1
  • 5
    \$\begingroup\$ A game probably would need only a few dozen words. \$\endgroup\$ – petervaz Feb 20 '13 at 20:14
1
\$\begingroup\$

You can use Google voice recognition with Android device. You can also setup a server and send the voice recognition request to Google's server for device such as iOS. It requires internet connection but it provides the best result. The encoded audio file is small so the latency is minimal.

Since you only has a few hundred words you can also try Sphinx3 and OpenEars.

Dragon Speech Recognition is an option but it requires commercial license. Dictionary can be provided for better result.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.