1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 * Copyright (C) 2007 Dominik wenger
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
29 friend class TalkTraverser
;
32 ~TalkFileCreator() {};
34 bool createTalkFiles();
36 void setTTSexe(wxString exe
){m_TTSexec
=exe
;}
37 void setEncexe(wxString exe
){m_EncExec
=exe
;}
39 wxArrayString
getSupportedTTS(){return m_supportedTTS
;}
40 void setTTsType(wxString tts
) {m_curTTS
= tts
; }
41 wxString
getTTsOpts(wxString ttsname
);
42 void setTTsOpts(wxString opts
) {m_TTSOpts
=opts
;}
44 wxArrayString
getSupportedEnc(){return m_supportedEnc
;}
45 void setEncType(wxString enc
) {m_curEnc
=enc
; }
46 wxString
getEncOpts(wxString encname
);
47 void setEncOpts(wxString opts
) {m_EncOpts
=opts
;}
49 void setDir(wxString dir
){m_dir
= dir
; }
51 void setOverwriteTalk(bool ov
) {m_overwriteTalk
= ov
;}
52 void setOverwriteWav(bool ov
) {m_overwriteWav
= ov
;}
53 void setRemoveWav(bool ov
) {m_removeWav
= ov
;}
54 void setRecursive(bool ov
) {m_recursive
= ov
;}
55 void setStripExtensions(bool ov
) {m_stripExtensions
= ov
;}
63 bool encode(wxString input
,wxString output
);
64 bool voice(wxString text
,wxString wavfile
);
70 wxArrayString m_supportedTTS
;
71 wxArrayString m_supportedTTSOpts
;
76 wxArrayString m_supportedEnc
;
77 wxArrayString m_supportedEncOpts
;
84 bool m_stripExtensions
;
88 class TalkTraverser
: public wxDirTraverser
91 TalkTraverser(TalkFileCreator
* talkcreator
) : m_talkcreator(talkcreator
) { }
93 virtual wxDirTraverseResult
OnFile(const wxString
& filename
);
95 virtual wxDirTraverseResult
OnDir(const wxString
& dirname
);
98 TalkFileCreator
* m_talkcreator
;