\hypertarget{classsimple__tts_1_1_time_to_text}{}\doxysection{simple\+\_\+tts\+::Time\+To\+Text Class Reference}
\label{classsimple__tts_1_1_time_to_text}\index{simple\_tts::TimeToText@{simple\_tts::TimeToText}}


Translates a time in hour and minutes into englich words. This implementation builds upon the \mbox{\hyperlink{classsimple__tts_1_1_number_to_text}{Number\+To\+Text}} class to handle the basic numbers.  




{\ttfamily \#include $<$Time\+To\+Text.\+h$>$}

Inheritance diagram for simple\+\_\+tts\+::Time\+To\+Text\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classsimple__tts_1_1_time_to_text}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a65c5d0ca832cda665a63697293f94fb7}\label{classsimple__tts_1_1_time_to_text_a65c5d0ca832cda665a63697293f94fb7}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& {\bfseries say} (int hour, int minutes)
\begin{DoxyCompactList}\small\item\em converts a number to it\textquotesingle{}s text representation \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a3fea7fbf6c9cc754049c144c8fdfffd5}\label{classsimple__tts_1_1_time_to_text_a3fea7fbf6c9cc754049c144c8fdfffd5}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& {\bfseries say} (\mbox{\hyperlink{structsimple__tts_1_1_simple_time}{Simple\+Time}} time)
\begin{DoxyCompactList}\small\item\em converts a number to it\textquotesingle{}s text representation \end{DoxyCompactList}\item 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& \mbox{\hyperlink{classsimple__tts_1_1_time_to_text_a74b2534f6c65dc2f3a5403952ff80690}{all\+Texts}} ()
\begin{DoxyCompactList}\small\item\em provides all texts \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions inherited from \mbox{\hyperlink{classsimple__tts_1_1_simple_t_t_s_base}{simple\+\_\+tts\+::\+Simple\+TTSBase}}}
\begin{DoxyCompactItemize}
\item 
virtual audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& \mbox{\hyperlink{classsimple__tts_1_1_simple_t_t_s_base_a563ec5af8d2a53a4cea48e735de343c5}{all\+Texts}} ()=0
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_simple_t_t_s_base_a399e345694a184a7c48ce16a345def6a}\label{classsimple__tts_1_1_simple_t_t_s_base_a399e345694a184a7c48ce16a345def6a}} 
virtual void {\bfseries register\+Callback} (void($\ast$ptr)(audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ words, void $\ast$refx), void $\ast$ref)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_simple_t_t_s_base_a0af042bda3842ad7ab250b6c7cdc122c}\label{classsimple__tts_1_1_simple_t_t_s_base_a0af042bda3842ad7ab250b6c7cdc122c}} 
void {\bfseries print\+CSV} (Print \&out)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a83c7f1606938af348f2ee28b719ed47f}\label{classsimple__tts_1_1_time_to_text_a83c7f1606938af348f2ee28b719ed47f}} 
void {\bfseries add} (int idx)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_acbf2021c6faf7668846060bc603cdcbc}\label{classsimple__tts_1_1_time_to_text_acbf2021c6faf7668846060bc603cdcbc}} 
void {\bfseries add} (const char $\ast$str)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_ade5e72283fa4951c405bb7f695a9852e}\label{classsimple__tts_1_1_time_to_text_ade5e72283fa4951c405bb7f695a9852e}} 
void {\bfseries add\+All} (audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \&words)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a1691e8de1940c8fbe1c1de3eadada671}\label{classsimple__tts_1_1_time_to_text_a1691e8de1940c8fbe1c1de3eadada671}} 
void {\bfseries process} (\mbox{\hyperlink{structsimple__tts_1_1_simple_time}{Simple\+Time}} time)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_ab56d694f29636e26e95d7a44ee46f138}\label{classsimple__tts_1_1_time_to_text_ab56d694f29636e26e95d7a44ee46f138}} 
void {\bfseries process\+Minutes} (\mbox{\hyperlink{structsimple__tts_1_1_simple_time}{Simple\+Time}} \&time)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a371e178835ec69716c0402ae5c131e6a}\label{classsimple__tts_1_1_time_to_text_a371e178835ec69716c0402ae5c131e6a}} 
void {\bfseries process\+Hour\+PM} (\mbox{\hyperlink{structsimple__tts_1_1_simple_time}{Simple\+Time}} time)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_aa5498911801be9ff581bdf05d16bb395}\label{classsimple__tts_1_1_time_to_text_aa5498911801be9ff581bdf05d16bb395}} 
void {\bfseries process\+Hour\+AM} (\mbox{\hyperlink{structsimple__tts_1_1_simple_time}{Simple\+Time}} time)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a40fb4834048f02d05539574884dad997}\label{classsimple__tts_1_1_time_to_text_a40fb4834048f02d05539574884dad997}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ {\bfseries result}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a3725734545868065c91a64fb7146446a}\label{classsimple__tts_1_1_time_to_text_a3725734545868065c91a64fb7146446a}} 
\mbox{\hyperlink{classsimple__tts_1_1_number_to_text}{Number\+To\+Text}} {\bfseries ntt}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a0e1961da32d11e9073ce28479c76d4bd}\label{classsimple__tts_1_1_time_to_text_a0e1961da32d11e9073ce28479c76d4bd}} 
const int {\bfseries ITS} = 0
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a3e39e696e810c40b9ea09dcd2db077cd}\label{classsimple__tts_1_1_time_to_text_a3e39e696e810c40b9ea09dcd2db077cd}} 
const int {\bfseries NOON} = 1
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_ae0ee27f9566663c1a82c8a22935fd7cd}\label{classsimple__tts_1_1_time_to_text_ae0ee27f9566663c1a82c8a22935fd7cd}} 
const int {\bfseries MIDNIGHT} = 2
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a37e7c8f56e7be5a63aebcf60f37317f4}\label{classsimple__tts_1_1_time_to_text_a37e7c8f56e7be5a63aebcf60f37317f4}} 
const int {\bfseries OCLOCK} = 3
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a42d182ec46d60c65a373c5f136789f29}\label{classsimple__tts_1_1_time_to_text_a42d182ec46d60c65a373c5f136789f29}} 
const int {\bfseries TO} = 4
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_ac22e4d4e60f147e1aaf9cd9289dfe05a}\label{classsimple__tts_1_1_time_to_text_ac22e4d4e60f147e1aaf9cd9289dfe05a}} 
const int {\bfseries PAST} = 5
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_ad4c9fc6f7fbe1289db7ca2a142d007fe}\label{classsimple__tts_1_1_time_to_text_ad4c9fc6f7fbe1289db7ca2a142d007fe}} 
const int {\bfseries AM} = 6
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_aa8d9b33bcd923b15e4a7f5e49e165f9b}\label{classsimple__tts_1_1_time_to_text_aa8d9b33bcd923b15e4a7f5e49e165f9b}} 
const int {\bfseries PM} = 7
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_aa0175005c83cec68b40b632299b19672}\label{classsimple__tts_1_1_time_to_text_aa0175005c83cec68b40b632299b19672}} 
const int {\bfseries HALF} = 8
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_af5ed080262c2e5754b79cdc4978e5a7a}\label{classsimple__tts_1_1_time_to_text_af5ed080262c2e5754b79cdc4978e5a7a}} 
const int {\bfseries QUARTER} = 9
\item 
const char $\ast$ \mbox{\hyperlink{classsimple__tts_1_1_time_to_text_a9791b7792102e83f5335ffda1702f665}{words}} \mbox{[}10\mbox{]}
\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Attributes inherited from \mbox{\hyperlink{classsimple__tts_1_1_simple_t_t_s_base}{simple\+\_\+tts\+::\+Simple\+TTSBase}}}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_simple_t_t_s_base_a056744a12b983215d731998d23244d14}\label{classsimple__tts_1_1_simple_t_t_s_base_a056744a12b983215d731998d23244d14}} 
void($\ast$ {\bfseries callback} )(audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ word, void $\ast$ref) = nullptr
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_simple_t_t_s_base_ab664b7bf4dbde2b10a2bf4da3f44fa52}\label{classsimple__tts_1_1_simple_t_t_s_base_ab664b7bf4dbde2b10a2bf4da3f44fa52}} 
void $\ast$ {\bfseries reference} = nullptr
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Translates a time in hour and minutes into englich words. This implementation builds upon the \mbox{\hyperlink{classsimple__tts_1_1_number_to_text}{Number\+To\+Text}} class to handle the basic numbers. 

\begin{DoxyAuthor}{Author}
Phil Schatzmann 
\end{DoxyAuthor}
\begin{DoxyCopyright}{Copyright}
GPLv3 
\end{DoxyCopyright}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a74b2534f6c65dc2f3a5403952ff80690}\label{classsimple__tts_1_1_time_to_text_a74b2534f6c65dc2f3a5403952ff80690}} 
\index{simple\_tts::TimeToText@{simple\_tts::TimeToText}!allTexts@{allTexts}}
\index{allTexts@{allTexts}!simple\_tts::TimeToText@{simple\_tts::TimeToText}}
\doxysubsubsection{\texorpdfstring{allTexts()}{allTexts()}}
{\footnotesize\ttfamily audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& simple\+\_\+tts\+::\+Time\+To\+Text\+::all\+Texts (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



provides all texts 



Implements \mbox{\hyperlink{classsimple__tts_1_1_simple_t_t_s_base}{simple\+\_\+tts\+::\+Simple\+TTSBase}}.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classsimple__tts_1_1_time_to_text_a9791b7792102e83f5335ffda1702f665}\label{classsimple__tts_1_1_time_to_text_a9791b7792102e83f5335ffda1702f665}} 
\index{simple\_tts::TimeToText@{simple\_tts::TimeToText}!words@{words}}
\index{words@{words}!simple\_tts::TimeToText@{simple\_tts::TimeToText}}
\doxysubsubsection{\texorpdfstring{words}{words}}
{\footnotesize\ttfamily const char$\ast$ simple\+\_\+tts\+::\+Time\+To\+Text\+::words\mbox{[}10\mbox{]}\hspace{0.3cm}{\ttfamily [protected]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{=\ \{\textcolor{stringliteral}{"{}ITS"{}},\ \textcolor{stringliteral}{"{}NOON"{}},\ \textcolor{stringliteral}{"{}MIDNIGHT"{}},\ \textcolor{stringliteral}{"{}OCLOCK"{}},\ \textcolor{stringliteral}{"{}TO"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}PAST"{}},\ \textcolor{stringliteral}{"{}AM"{}},\ \ \ \textcolor{stringliteral}{"{}PM"{}},\ \ \ \ \ \ \ \textcolor{stringliteral}{"{}HALF"{}},\ \ \ \ \textcolor{stringliteral}{"{}QUARTER"{}}\}}

\end{DoxyCode}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/Time\+To\+Text.\+h\end{DoxyCompactItemize}
