How to use Festival Text To Speech C/C++ API
- by Peeyush
I want to use Festival TTS with my C++ programme.
So i have downloaded all files form http://www.cstr.ed.ac.uk/downloads/festival/2.0.95/
then i start reading manual(http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html) for C++ API but in manual they says that:
In order to use Festival you must include festival/src/include/festival.h' which in turn will include the necessary other include files infestival/src/include' and speech_tools/include' you should ensure these are included in the include path for you your program. Also you will need to link your program withfestival/src/lib/libFestival.a', speech_tools/lib/libestools.a',speech_tools/lib/libestbase.a' and `speech_tools/lib/libeststring.a' as well as any other optional libraries such as net audio. "
I am using UBUNTU 10.04(festival package is by default installed and i can use it form terminal by festival command) and GCC 4.4.3
but the problem is that i am new to GCC and i am not understanding which files i have to include in order to run my C++ code and i also don't know how to link libraries with my c++ code.
So please tell me exactly which files i have to include and how to link with libraries if anyone already use festival tts with c++ then please post your code
Thanks