\hypertarget{_audio_dictionary_u_r_l_8h_source}{}\doxysection{Audio\+Dictionary\+URL.\+h}
\label{_audio_dictionary_u_r_l_8h_source}\index{src/AudioDictionaryURL.h@{src/AudioDictionaryURL.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ }
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ "{}AudioHttp/URLStream.h"{}}}
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ "{}SimpleTTSBase.h"{}}}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{namespace\ }simple\_tts\ \{}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00014\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classsimple__tts_1_1_audio_dictionary_u_r_l}{AudioDictionaryURL}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{classsimple__tts_1_1_audio_dictionary_base}{AudioDictionaryBase}}\ \{}
\DoxyCodeLine{00015\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00016\ \ \ \mbox{\hyperlink{classsimple__tts_1_1_audio_dictionary_u_r_l}{AudioDictionaryURL}}(URLStream\ \&urlStream,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *url,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *ext)\ \{}
\DoxyCodeLine{00017\ \ \ \ \ p\_url\ =\ \&urlStream;}
\DoxyCodeLine{00018\ \ \ \ \ url\_cstr\ =\ url;}
\DoxyCodeLine{00019\ \ \ \ \ ext\_cstr\ =\ ext;}
\DoxyCodeLine{00020\ \ \ \}}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \ \ AudioStream\ *get(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *word)\ \{}
\DoxyCodeLine{00023\ \ \ \ \ url\_str\ =\ url\_cstr;}
\DoxyCodeLine{00024\ \ \ \ \ \textcolor{keywordflow}{if}\ (!url\_str.endsWith(\textcolor{stringliteral}{"{}/"{}}))\{}
\DoxyCodeLine{00025\ \ \ \ \ \ \ url\_str.add(\textcolor{stringliteral}{"{}/"{}});}
\DoxyCodeLine{00026\ \ \ \ \ \}}
\DoxyCodeLine{00027\ \ \ \ \ url\_str.add(word);}
\DoxyCodeLine{00028\ \ \ \ \ url\_str.add(\textcolor{stringliteral}{"{}."{}});}
\DoxyCodeLine{00029\ \ \ \ \ url\_str.add(ext\_cstr);}
\DoxyCodeLine{00030\ \ \ \ \ url\_str.toLowerCase();}
\DoxyCodeLine{00031\ \ \ \ \ LOGI(\textcolor{stringliteral}{"{}Using\ url:\ \%s"{}},\ url\_str.c\_str());}
\DoxyCodeLine{00032\ \ \ \ \ p\_url-\/>begin(url\_str.c\_str());}
\DoxyCodeLine{00033\ \ \ \ \ \textcolor{keywordflow}{return}\ p\_url;}
\DoxyCodeLine{00034\ \ \ \}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{protected}:}
\DoxyCodeLine{00037\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *url\_cstr;}
\DoxyCodeLine{00038\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *ext\_cstr;}
\DoxyCodeLine{00039\ \ \ StrExt\ url\_str;}
\DoxyCodeLine{00040\ \ \ URLStream\ *p\_url;}
\DoxyCodeLine{00041\ \};}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \}\ \textcolor{comment}{//\ namespace\ simple\_tts}}

\end{DoxyCode}
