|
Projects
Spring 2012 Older Courses Fall 2011 Spring 2011 Fall 2010 Spring 2010 Fall 2009 Spring 2009
Fall 2008
Spring 2008
Fall 2007 HOWTOs |
FestivalWe can use the festival text-to-speech tool in Linux to give audio status information from the MCP. In ubuntu, do the following to get the necessary libraries:
Sample hello world program - festivaltest.cpp:
#include "festival/festival.h"
int main(int argc, char **argv)
{
int heap_size = 210000; // default scheme heap size
int load_init_files = 1; // we want the festival init files loaded
festival_initialize(load_init_files,heap_size);
festival_say_text("hello world");
return 0;
}
To build the sample program, type: g++ festivaltest.cpp /usr/lib/libFestival.a /usr/lib/speech_tools/lib/libestools.a \ /usr/lib/speech_tools/lib/libestbase.a /usr/lib/speech_tools/lib/libeststring.a \ -ltermcap -lesd -I/usr/include/festival -I/usr/include/speech_tools For the purposes of the MCP, we should call festival_initialize during the initialization of the MCP's control program. Then festival_say_text() can be called at any time afterwards. |