I've compiled with success my first program with the Voce library but when I start the program, it stops right after. I can't say any word and it stops
#include <iostream>
#include <string>
#include <voce.h>
#include <windows.h>
using namespace std;
int main()
{
voce::init("voce/lib", false, true, "voce/lib/grams", "digits");
while (voce::getRecognizerQueueSize() > 0)
{
std::string s = voce::popRecognizedString();
std::cout << "You said: " << s << std::endl;
}
system("PAUSE");
return 0;
}
I took this code on : http://voce.sourceforge.net/
Thank you for your help