Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Translator Class Reference

Phrasebook modules are used to convert things like numbers into sets of prompts that form spoken words. phrase translations dso base for tts. More...

#include <bayonne.h>

Inheritance diagram for Translator:

Keydata List of all members.

Public Methods

virtual char* Speak (Trunk *trunk) = 0
 Perform a phrasebook translation of the current script statement and issue play request. More...


Protected Methods

virtual char* getName (void) = 0
 Return the language this translator supports. More...

char* getPlayBuffer (Trunk *trunk)
 get play buffer object. More...

void scanDir (const char *etcdir, const char *language, const char *lib)
 Translator (const char *conf, const char *lib)

Friends

Translator* getTranslator (char *name)

Detailed Description

Phrasebook modules are used to convert things like numbers into sets of prompts that form spoken words. phrase translations dso base for tts.

Translations are dso based and are represented by the "languages" plugin. A translator for spanish may handle not just numbers, dates, etc, but also the selection of masculine and feminine forms of numbers based on usage, etc. The translator classes provide some basic mechanics for phrasebook tts in Bayonne.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Translator::Translator ( const char * conf,
const char * lib ) [protected]
 


Member Function Documentation

char * Translator::Speak ( Trunk * trunk ) [pure virtual]
 

Perform a phrasebook translation of the current script statement and issue play request.

Returns:
ccscript error message or NULL.
Parameters:
trunk   object for phrasebook.

char * Translator::getName ( void ) [protected, pure virtual]
 

Return the language this translator supports.

Returns:
language supported.

char * Translator::getPlayBuffer ( Trunk * trunk ) [protected]
 

get play buffer object.

Returns:
put buffer
Parameters:
trunk   object

void Translator::scanDir ( const char * etcdir,
const char * language,
const char * lib ) [protected]
 


Friends And Related Function Documentation

Translator* getTranslator ( char * name ) [friend]
 


The documentation for this class was generated from the following file:
Generated at Wed Apr 25 22:24:41 2001 for Bayonne by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000