festival.h

00001 
00012 #ifndef GITKR_SPEECH_FESTIVAL_H
00013 #define GITKR_SPEECH_FESTIVAL_H
00014 
00016 #define FESTIVAL_DEFAULT_SERVER_HOST "localhost"
00017 
00018 #define FESTIVAL_DEFAULT_SERVER_PORT 1314
00019 
00020 #define FESTIVAL_DEFAULT_TEXT_MODE "fundamental"
00021 
00025 typedef struct FT_Info {
00026     char *server_host;  
00027     int server_port;    
00028     char *text_mode;    
00030     int server_fd;      
00031 } FT_Info;
00032 
00033 #ifdef GITKR_SPEECH_FESTIVAL_C
00034 FT_Info *festival_initialize(char *host, int port, char *mode);
00035 void festival_done(FT_Info *info);
00036 void festival__say_text(FT_Info *info, const char *text);
00037 
00038 static int festival_socket_open(const char *host, int port);
00039 #else
00040 extern FT_Info *festival_initialize(char *host, int port, char *mode);
00041 extern void festival_done(FT_Info *info);
00042 extern void festival__say_text(FT_Info *info, const char *text);
00043 #endif
00044 
00045 #ifdef HAVE_SPEECH
00046 #define festival_say_text(info,text) festival__say_text(info,text)
00047 #else
00048 #define festival_say_text(info,text)
00049 #endif
00050 
00051 #endif /* GITKR_SPEECH_FESTIVAL_H */

Generated on Thu Oct 28 10:59:07 2004 for gitk by doxygen 1.3.6