Translates a time in hour and minutes into englich words. This implementation builds upon the NumberToText class to handle the basic numbers.
More...
#include <TimeToText.h>
|
|
audio_tools::Vector< const char * > & | say (int hour, int minutes) |
| | converts a number to it's text representation
|
| |
|
audio_tools::Vector< const char * > & | say (SimpleTime time) |
| | converts a number to it's text representation
|
| |
| audio_tools::Vector< const char * > & | allTexts () |
| | provides all texts
|
| |
| virtual audio_tools::Vector< const char * > & | allTexts ()=0 |
| |
|
virtual void | registerCallback (void(*ptr)(audio_tools::Vector< const char * > words, void *refx), void *ref) |
| |
|
void | printCSV (Print &out) |
| |
|
|
void | add (int idx) |
| |
|
void | add (const char *str) |
| |
|
void | addAll (audio_tools::Vector< const char * > &words) |
| |
|
void | process (SimpleTime time) |
| |
|
void | processMinutes (SimpleTime &time) |
| |
|
void | processHourPM (SimpleTime time) |
| |
|
void | processHourAM (SimpleTime time) |
| |
|
|
audio_tools::Vector< const char * > | result |
| |
|
NumberToText | ntt |
| |
|
const int | ITS = 0 |
| |
|
const int | NOON = 1 |
| |
|
const int | MIDNIGHT = 2 |
| |
|
const int | OCLOCK = 3 |
| |
|
const int | TO = 4 |
| |
|
const int | PAST = 5 |
| |
|
const int | AM = 6 |
| |
|
const int | PM = 7 |
| |
|
const int | HALF = 8 |
| |
|
const int | QUARTER = 9 |
| |
| const char * | words [10] |
| |
|
void(* | callback )(audio_tools::Vector< const char * > word, void *ref) = nullptr |
| |
|
void * | reference = nullptr |
| |
Translates a time in hour and minutes into englich words. This implementation builds upon the NumberToText class to handle the basic numbers.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ allTexts()
| audio_tools::Vector< const char * > & simple_tts::TimeToText::allTexts |
( |
| ) |
|
|
inlinevirtual |
◆ words
| const char* simple_tts::TimeToText::words[10] |
|
protected |
Initial value:= {"ITS", "NOON", "MIDNIGHT", "OCLOCK", "TO",
"PAST", "AM", "PM", "HALF", "QUARTER"}
The documentation for this class was generated from the following file: