Recent Changes - Search:
ECG Home

GitHub

People

Publications

Calendar

Projects

Fall 2017

Older Courses

Spring 2017

Fall 2016

Spring 2016

Fall 2015

Spring 2015

Fall 2014

Spring 2014

Fall 2013

Spring 2013

Fall 2012

Spring 2012

Fall 2011

Spring 2011

Fall 2010

Spring 2010

Fall 2009

Spring 2009

Fall 2008

Spring 2008

Fall 2007

HOWTOs

edit SideBar

We 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:

sudo apt-get install festival-dev libncurses5-dev

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.

Edit - History - Print - Recent Changes - Search
Page last modified on February 20, 2008, at 07:21 PM