Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

FestTalk Class Reference

A subclass of LocalTalkative that sends "SayText" commands to a festival server. More...

#include <festtalk.hh>

Inheritance diagram for FestTalk:

LocalTalkative Talkative MetaObject List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes

Protected Member Functions

Protected Attributes

Static Protected Attributes


Detailed Description

A subclass of LocalTalkative that sends "SayText" commands to a festival server.

Use FestTalk::registerExtenders() to register FestTalk as a local metaobject, and regular RemoteTalkative as a remote metaobject, with the factory.

Author:
reed 12/01

Bug:
Due to a possible bug in Festival the first "say" message fails. Manually send an initial message (with do_say) to get around this.

Definition at line 32 of file festtalk.hh.


Constructor & Destructor Documentation

FestTalk::FestTalk MetaObject super  )  throw (ServerCommError)
 

Constructor: opens socket to Festival server at 127.0.0.1:1314.

Definition at line 118 of file festtalk.cc.

Referenced by new_FestTalk().

FestTalk::~FestTalk  ) 
 

Destructor: closes connection to festival server.

Definition at line 130 of file festtalk.cc.


Member Function Documentation

void FestTalk::close_server  )  [protected]
 

Definition at line 109 of file festtalk.cc.

Referenced by ~FestTalk().

void FestTalk::do_say TalkMessage m  )  throw (ServerCommError) [virtual]
 

Say message actuator.

Reimplemented from LocalTalkative.

Definition at line 137 of file festtalk.cc.

void FestTalk::festival_server_command const char *  cmd  )  throw (ServerCommError) [protected]
 

Definition at line 37 of file festtalk.cc.

void FestTalk::festival_server_saytext const string &  text  )  throw (ServerCommError) [protected]
 

Definition at line 53 of file festtalk.cc.

MetaObject * FestTalk::new_FestTalk MetaObject superobject,
const string &  type
[static]
 

Static generator, for factory.

Definition at line 154 of file festtalk.cc.

Referenced by registerExtenders().

void FestTalk::open_server char *  host,
int  port
throw (ServerCommError) [protected]
 

Definition at line 75 of file festtalk.cc.

void FestTalk::registerExtenders  )  [static]
 

Register metaobject extenders.

This method takes care of all talkative extenders (local and remote). RemoteTalkative is used for remote objects and FestTalk is used for all local objects.

Reimplemented from Talkative.

Definition at line 148 of file festtalk.cc.

void FestTalk::set_server char *  host = "127.0.0.1",
int  port = 1314
[static]
 

Set default host and port for the Festival server.

To use a different server other than 127.0.0.1:3113, call before creating new FestTalk objects.

Parameters:
host string contianing numerical host address. Default is "127.0.0.1".
port int containing host port. Default is 3113.

Definition at line 31 of file festtalk.cc.


Member Data Documentation

char * FestTalk::festival_host = "127.0.0.1" [static, protected]
 

Definition at line 26 of file festtalk.cc.

Referenced by set_server().

int FestTalk::festival_port = 1314 [static, protected]
 

Definition at line 27 of file festtalk.cc.

Referenced by set_server().

char* FestTalk::phrase_delim
 

If non-null, then text to speak is broken up into SayText commands by these delimeters.

Definition at line 59 of file festtalk.hh.

int FestTalk::socket_fd [protected]
 

Definition at line 44 of file festtalk.hh.

Referenced by close_server().

FILE* FestTalk::socket_fp [protected]
 

Definition at line 45 of file festtalk.hh.

Referenced by close_server().


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 03:55:53 2003 for Interreality Project - VOS by doxygen 1.3.2