Soldier Soldier - 6 months ago 56
C++ Question

C++ API for "Text To speech" and "Voice to Text"

I would like to know whether there is a good API for "voice recognition" and "text to speech" in C++. I have gone through Festival, which you can't even say whether the computer is talking because it is so real and voce as well.


seems not supporting to voice recognition (I mean "Voice to Text") and
is built in Java and it is a mess in C++ because of JNI.

The API should support both "Text to voice" and "Voice to Text", and it should have a good set of examples, at least outside the owner's website. Perfect if it has a facility to identify set of given voices, but that is optional, so no worries.

What I am going to do with the API is, when set of voice commands given, turn the robot device left, right, etc. And also, speak to me saying "Good Morning", "Good Night" etc. These words will be coded in the program.

Please help me to find a good C++ voice API for this purpose. If you have access to a tutorial/installation tutorial, please be kind enough to share it with me as well.


if you develop on Windows you can use MS Speech API which allow you to perform Voice Recognition (ASR) and Text-to-Speech (TTS).
You can find some examples on this page and a very basic example of Voice Recognition in this post.