\hypertarget{classsimple__tts_1_1_number_to_text}{}\doxysection{simple\+\_\+tts\+::Number\+To\+Text Class Reference}
\label{classsimple__tts_1_1_number_to_text}\index{simple\_tts::NumberToText@{simple\_tts::NumberToText}}


Translates a number into englich words.  




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

Inheritance diagram for simple\+\_\+tts\+::Number\+To\+Text\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classsimple__tts_1_1_number_to_text}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_aa5cb276b1a65ece56fcae76bb22b6e1d}\label{classsimple__tts_1_1_number_to_text_aa5cb276b1a65ece56fcae76bb22b6e1d}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& {\bfseries say} (double value, int decimals=2)
\begin{DoxyCompactList}\small\item\em converts a real number to it\textquotesingle{}s text representation (with the indicated number of digits) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_aa9035ebb3723a0128aa37e44ade71a03}\label{classsimple__tts_1_1_number_to_text_aa9035ebb3723a0128aa37e44ade71a03}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& {\bfseries say} (int64\+\_\+t whole\+Number)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a6ad6f5daf5caf6fbc9665947ee3cdc5d}\label{classsimple__tts_1_1_number_to_text_a6ad6f5daf5caf6fbc9665947ee3cdc5d}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& {\bfseries say} (const char $\ast$whole\+Number, const char $\ast$decimals=\char`\"{}\char`\"{})
\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_number_to_text_ae7cdf641730a749293956193b785a772}{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_number_to_text_aef9174b91839a6c53f480463943e02db}\label{classsimple__tts_1_1_number_to_text_aef9174b91839a6c53f480463943e02db}} 
void {\bfseries add} (const char $\ast$str)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a05f31a129ec86258501b6bc1605903de}\label{classsimple__tts_1_1_number_to_text_a05f31a129ec86258501b6bc1605903de}} 
void {\bfseries convert\+Decimals} (const char $\ast$decimals)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_af4df89943b68307fc4002e5b36b5f2c8}\label{classsimple__tts_1_1_number_to_text_af4df89943b68307fc4002e5b36b5f2c8}} 
void {\bfseries convert} (const char $\ast$str\+Value)
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_afe32b9bbaf5935de6dda4b0de1226b0b}\label{classsimple__tts_1_1_number_to_text_afe32b9bbaf5935de6dda4b0de1226b0b}} 
void {\bfseries convert} (int64\+\_\+t value)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a48d1c6b50c6fc64489565e8139fba9ed}\label{classsimple__tts_1_1_number_to_text_a48d1c6b50c6fc64489565e8139fba9ed}} 
audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ {\bfseries result}
\item 
const char $\ast$ \mbox{\hyperlink{classsimple__tts_1_1_number_to_text_a18f66f2a010b90e872d2112b7235acef}{first}} \mbox{[}20\mbox{]}
\item 
const char $\ast$ \mbox{\hyperlink{classsimple__tts_1_1_number_to_text_a0e95c6ceb2e64bbc07565219c2ac5c91}{second}} \mbox{[}10\mbox{]}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_ad2a040a881fa1672bbc59d307fcb0d10}\label{classsimple__tts_1_1_number_to_text_ad2a040a881fa1672bbc59d307fcb0d10}} 
const char $\ast$ {\bfseries third} \mbox{[}7\mbox{]} = \{\char`\"{}AND\char`\"{},\char`\"{}DOT\char`\"{},\char`\"{}MINUS\char`\"{}, \char`\"{}HUNDRED\char`\"{}, \char`\"{}THOUSAND\char`\"{}, \char`\"{}MILLION\char`\"{},\char`\"{}BILLION\char`\"{}\}
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a903ee66f81b80e4f9cde4c7d7344e392}\label{classsimple__tts_1_1_number_to_text_a903ee66f81b80e4f9cde4c7d7344e392}} 
const int {\bfseries AND} = 0
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a008b5758593a8899e602f15f5aa00943}\label{classsimple__tts_1_1_number_to_text_a008b5758593a8899e602f15f5aa00943}} 
const int {\bfseries DOT} = 1
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a435ea4ccaf5191a91162c9361f81e899}\label{classsimple__tts_1_1_number_to_text_a435ea4ccaf5191a91162c9361f81e899}} 
const int {\bfseries MINUS} = 2
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a51ae1ae636dc925735b0eb59e21873f1}\label{classsimple__tts_1_1_number_to_text_a51ae1ae636dc925735b0eb59e21873f1}} 
const int {\bfseries HUNDRED} = 3
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a84e74c11c632d48d500f867d7a3087f7}\label{classsimple__tts_1_1_number_to_text_a84e74c11c632d48d500f867d7a3087f7}} 
const int {\bfseries THOUSAND} = 4
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a4fdb36632a3f86c4f98ab930c998639c}\label{classsimple__tts_1_1_number_to_text_a4fdb36632a3f86c4f98ab930c998639c}} 
const int {\bfseries MILLION} = 5
\item 
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a1649cfafec8b4f8892d028478dfb2f54}\label{classsimple__tts_1_1_number_to_text_a1649cfafec8b4f8892d028478dfb2f54}} 
const int {\bfseries BILLION} = 6
\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 number into englich words. 

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


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_ae7cdf641730a749293956193b785a772}\label{classsimple__tts_1_1_number_to_text_ae7cdf641730a749293956193b785a772}} 
\index{simple\_tts::NumberToText@{simple\_tts::NumberToText}!allTexts@{allTexts}}
\index{allTexts@{allTexts}!simple\_tts::NumberToText@{simple\_tts::NumberToText}}
\doxysubsubsection{\texorpdfstring{allTexts()}{allTexts()}}
{\footnotesize\ttfamily audio\+\_\+tools\+::\+Vector$<$ const char $\ast$ $>$ \& simple\+\_\+tts\+::\+Number\+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_number_to_text_a18f66f2a010b90e872d2112b7235acef}\label{classsimple__tts_1_1_number_to_text_a18f66f2a010b90e872d2112b7235acef}} 
\index{simple\_tts::NumberToText@{simple\_tts::NumberToText}!first@{first}}
\index{first@{first}!simple\_tts::NumberToText@{simple\_tts::NumberToText}}
\doxysubsubsection{\texorpdfstring{first}{first}}
{\footnotesize\ttfamily const char$\ast$ simple\+\_\+tts\+::\+Number\+To\+Text\+::first\mbox{[}20\mbox{]}\hspace{0.3cm}{\ttfamily [protected]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{=\ \{\textcolor{stringliteral}{"{}ZERO"{}},\ \ \ \ \textcolor{stringliteral}{"{}ONE"{}},\ \ \ \ \ \ \ \textcolor{stringliteral}{"{}TWO"{}},\ \ \ \ \ \ \ \textcolor{stringliteral}{"{}THREE"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}FOUR"{}},\ \ \ \ \textcolor{stringliteral}{"{}FIVE"{}},\ \ \ \ \ \ \textcolor{stringliteral}{"{}SIX"{}},\ \ \ \ \ \ \ \textcolor{stringliteral}{"{}SEVEN"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}EIGHT"{}},\ \ \ \textcolor{stringliteral}{"{}NINE"{}},\ \ \ \ \ \ \textcolor{stringliteral}{"{}TEN"{}},\ \ \ \ \ \ \ \textcolor{stringliteral}{"{}ELEVEN"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}TWELVE"{}},\ \ \textcolor{stringliteral}{"{}THIRTEEN"{}},\ \ \textcolor{stringliteral}{"{}FOURTEEN"{}},\ \ \textcolor{stringliteral}{"{}FIFTEEN"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}SIXTEEN"{}},\ \textcolor{stringliteral}{"{}SEVENTEEN"{}},\ \textcolor{stringliteral}{"{}EIGHTEEN"{}},\ \ \textcolor{stringliteral}{"{}NINETEEN"{}}\}}

\end{DoxyCode}
\mbox{\Hypertarget{classsimple__tts_1_1_number_to_text_a0e95c6ceb2e64bbc07565219c2ac5c91}\label{classsimple__tts_1_1_number_to_text_a0e95c6ceb2e64bbc07565219c2ac5c91}} 
\index{simple\_tts::NumberToText@{simple\_tts::NumberToText}!second@{second}}
\index{second@{second}!simple\_tts::NumberToText@{simple\_tts::NumberToText}}
\doxysubsubsection{\texorpdfstring{second}{second}}
{\footnotesize\ttfamily const char$\ast$ simple\+\_\+tts\+::\+Number\+To\+Text\+::second\mbox{[}10\mbox{]}\hspace{0.3cm}{\ttfamily [protected]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{=\ \{\textcolor{stringliteral}{"{}"{}},\ \ \ \ \ \ \textcolor{stringliteral}{"{}TEN"{}},\ \ \ \textcolor{stringliteral}{"{}TWENTY"{}},\ \ \textcolor{stringliteral}{"{}THIRTY"{}},\ \textcolor{stringliteral}{"{}FORTY"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}FIFTY"{}},\ \textcolor{stringliteral}{"{}SIXTY"{}},\ \textcolor{stringliteral}{"{}SEVENTY"{}},\ \textcolor{stringliteral}{"{}EIGHTY"{}},\ \textcolor{stringliteral}{"{}NINETY"{}}\}}

\end{DoxyCode}


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