#include <bayonne.h>
Inheritance diagram for ost::BayonneTranslator:

Public Member Functions | |
| BayonneTranslator (const char *id) | |
| Create a translator instance for a specific language identifier. | |
| BayonneTranslator * | getNext () |
| Get next translator. | |
| virtual unsigned | digits (BayonneSession *s, unsigned count, const char *cp) |
| Translate a simple set of digits to spoken speech. | |
| virtual unsigned | spell (BayonneSession *s, unsigned count, const char *cp) |
| Spell out the string as individual letters. | |
| virtual unsigned | sayorder (BayonneSession *s, unsigned count, const char *cp) |
| Translate an ordinal number (xxnth) to prompts. | |
| virtual unsigned | number (BayonneSession *s, unsigned count, const char *cp) |
| Translate a number to spoken speech. | |
| virtual unsigned | saynumber (BayonneSession *s, unsigned count, const char *cp) |
| Translate generic numbers to spoken speech. | |
| virtual unsigned | saycount (BayonneSession *s, unsigned count, const char *cp) |
| Translate a counting number (integer) to spoken speech. | |
| virtual unsigned | saytime (BayonneSession *s, unsigned count, const char *cp) |
| Translate a string for time into speech. | |
| virtual unsigned | weekday (BayonneSession *s, unsigned count, const char *cp) |
| Translate a string with a date into the spoken weekday. | |
| virtual unsigned | saydate (BayonneSession *s, unsigned count, const char *cp) |
| Translate a string with a date into a spoken date. | |
| virtual unsigned | saybool (BayonneSession *s, unsigned count, const char *cp) |
| Translate a logical value and speak as yes/no. | |
| virtual unsigned | phone (BayonneSession *s, unsigned count, const char *cp) |
| Translate and speak a phone number. | |
| virtual unsigned | extension (BayonneSession *s, unsigned count, const char *cp) |
| Translate and speak a phone extension. | |
| virtual const char * | speak (BayonneSession *session, Line *line=NULL) |
| Translation dispatch, processes script and invokes other methods. | |
| const char * | getId (void) |
| Get the id string. | |
Static Public Member Functions | |
| static BayonneTranslator * | get (const char *name) |
| Find a translator for a given name/location. | |
| static BayonneTranslator * | getFirst (void) |
| Get first translator. | |
| static BayonneTranslator * | loadTranslator (const char *name) |
| Load a named translator into memory for use. | |
Static Protected Member Functions | |
| static const char * | getToken (BayonneSession *s, Line *l, unsigned *idx) |
| static unsigned | addItem (BayonneSession *s, unsigned count, const char *text) |
| static const char * | getLast (BayonneSession *s, unsigned count) |
Protected Attributes | |
| BayonneTranslator * | next |
| const char * | id |
Static Protected Attributes | |
| static BayonneTranslator * | first |
|
|
Create a translator instance for a specific language identifier. Generally iso names will be sued. Sometimes iso sub-identifiers may be used for nation specific versions of phrasebook.
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Translate a simple set of digits to spoken speech.
|
|
||||||||||||||||
|
Translate and speak a phone extension.
|
|
|
Find a translator for a given name/location.
|
|
|
Get first translator.
|
|
|
Get the id string.
|
|
||||||||||||
|
|
|
|
Get next translator.
|
|
||||||||||||||||
|
|
|
|
Load a named translator into memory for use. This is used by the fifo/script language command.
|
|
||||||||||||||||
|
Translate a number to spoken speech.
|
|
||||||||||||||||
|
Translate and speak a phone number.
|
|
||||||||||||||||
|
Translate a logical value and speak as yes/no.
|
|
||||||||||||||||
|
Translate a counting number (integer) to spoken speech.
|
|
||||||||||||||||
|
Translate a string with a date into a spoken date.
|
|
||||||||||||||||
|
Translate generic numbers to spoken speech. This is the one used by the &number rule.
|
|
||||||||||||||||
|
Translate an ordinal number (xxnth) to prompts.
|
|
||||||||||||||||
|
Translate a string for time into speech.
|
|
||||||||||||
|
Translation dispatch, processes script and invokes other methods.
|
|
||||||||||||||||
|
Spell out the string as individual letters.
|
|
||||||||||||||||
|
Translate a string with a date into the spoken weekday.
|
|
|
|
|
|
|
|
|
|
1.4.6