#include <thread>
#include <chrono>
#include "voce.h"
int main()
{
voce::init(".", true, false, "", "");
voce::synthesize("fizzle sticks");
std::this_thread::sleep_for(std::chrono::seconds(1));
voce::destroy();
return 0;
}
You'll need to:
add "<Java jdk dir>/include" and "<Java jdk dir>/include/win32" to your c++ include path
link with "jvm.lib" found in "<Java jdk dir>/lib"
add "<Java jdk dir>/jre/bin" and "<Java jdk dir>/jre/bin/client" to your system path
have the Voce .jar files next to your .exe (or change the first parameter to voce::init)
I think that's all...