[DEV] continue try of compilation

This commit is contained in:
Edouard DUPIN 2015-09-21 21:45:23 +02:00
parent 5ebfced8a1
commit 03029dd352
17 changed files with 770 additions and 315 deletions

32
lutin_estbase-audio.py Normal file
View File

@ -0,0 +1,32 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estbase-audio', 'LIBRARY')
my_module.add_module_depend(['eststring', 'estbase-base_class'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.add_src_file([
"speech_tools/audio/gen_audio.cc",
"speech_tools/audio/nas.cc",
"speech_tools/audio/esd.cc",
"speech_tools/audio/sun16audio.cc",
"speech_tools/audio/mplayer.cc",
"speech_tools/audio/win32audio.cc",
"speech_tools/audio/irixaudio.cc",
"speech_tools/audio/os2audio.cc",
"speech_tools/audio/macosxaudio.cc",
"speech_tools/audio/linux_sound.cc"
])
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DSUPPORT_ALSALINUX")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
return my_module

100
lutin_estbase-base_class.py Normal file
View File

@ -0,0 +1,100 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estbase-base_class', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.add_src_file([
"speech_tools/base_class/EST_UList.cc",
"speech_tools/base_class/EST_Option.cc",
"speech_tools/base_class/EST_StringTrie.cc",
"speech_tools/base_class/EST_Token.cc",
"speech_tools/base_class/vec_mat_aux.cc",
"speech_tools/base_class/EST_Pathname_unix.cc",
"speech_tools/base_class/THash_aux.cc",
"speech_tools/base_class/EST_FMatrix.cc",
"speech_tools/base_class/EST_Complex.cc",
"speech_tools/base_class/EST_Val.cc",
"speech_tools/base_class/EST_matrix_support.cc",
"speech_tools/base_class/rateconv.cc",
"speech_tools/base_class/EST_IMatrix.cc",
"speech_tools/base_class/EST_SMatrix.cc",
"speech_tools/base_class/EST_DMatrix.cc",
"speech_tools/base_class/vec_mat_aux_d.cc",
"speech_tools/base_class/EST_FeatureData.cc",
"speech_tools/base_class/EST_slist_aux.cc",
"speech_tools/base_class/EST_svec_aux.cc",
"speech_tools/base_class/EST_ilist_aux.cc",
"speech_tools/base_class/EST_features_aux.cc",
"speech_tools/base_class/EST_features_io.cc",
"speech_tools/base_class/vec_mat_aux_i.cc",
"speech_tools/base_class/EST_Featured.cc",
"speech_tools/base_class/EST_Features.cc",
])
my_module.add_src_file([
"speech_tools/base_class/inst_tmpl/list_i_t.cc",
"speech_tools/base_class/inst_tmpl/list_si_t.cc",
"speech_tools/base_class/inst_tmpl/list_f_t.cc",
"speech_tools/base_class/inst_tmpl/list_d_t.cc",
"speech_tools/base_class/inst_tmpl/list_c_t.cc",
"speech_tools/base_class/inst_tmpl/list_s_t.cc",
"speech_tools/base_class/inst_tmpl/list_val_t.cc",
"speech_tools/base_class/inst_tmpl/list_li_t.cc",
"speech_tools/base_class/inst_tmpl/list_vs_t.cc",
"speech_tools/base_class/inst_tmpl/list_vi_t.cc",
"speech_tools/base_class/inst_tmpl/matrix_i_t.cc",
"speech_tools/base_class/inst_tmpl/matrix_si_t.cc",
"speech_tools/base_class/inst_tmpl/matrix_f_t.cc",
"speech_tools/base_class/inst_tmpl/matrix_d_t.cc",
"speech_tools/base_class/inst_tmpl/matrix_s_t.cc",
"speech_tools/base_class/inst_tmpl/matrix_val_t.cc",
"speech_tools/base_class/inst_tmpl/vector_i_t.cc",
"speech_tools/base_class/inst_tmpl/vector_si_t.cc",
"speech_tools/base_class/inst_tmpl/vector_f_t.cc",
"speech_tools/base_class/inst_tmpl/vector_d_t.cc",
"speech_tools/base_class/inst_tmpl/vector_c_t.cc",
"speech_tools/base_class/inst_tmpl/vector_s_t.cc",
"speech_tools/base_class/inst_tmpl/vector_val_t.cc",
"speech_tools/base_class/inst_tmpl/vector_ls_t.cc",
"speech_tools/base_class/inst_tmpl/vector_fvector_t.cc",
"speech_tools/base_class/inst_tmpl/vector_fmatrix_t.cc",
"speech_tools/base_class/inst_tmpl/vector_dvector_t.cc",
"speech_tools/base_class/inst_tmpl/vector_dmatrix_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_fi_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_ii_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_sd_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_sf_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_ss_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_si_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_sv_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_rs_t.cc",
"speech_tools/base_class/inst_tmpl/kvl_vpi_t.cc",
"speech_tools/base_class/inst_tmpl/hash_fi_t.cc",
"speech_tools/base_class/inst_tmpl/hash_ii_t.cc",
"speech_tools/base_class/inst_tmpl/hash_sd_t.cc",
"speech_tools/base_class/inst_tmpl/hash_sf_t.cc",
"speech_tools/base_class/inst_tmpl/hash_ss_t.cc",
"speech_tools/base_class/inst_tmpl/hash_si_t.cc",
"speech_tools/base_class/inst_tmpl/hash_sv_t.cc",
"speech_tools/base_class/inst_tmpl/hash_iv_t.cc",
"speech_tools/base_class/inst_tmpl/hash_sfmp_t.cc",
"speech_tools/base_class/inst_tmpl/hash_srp.cc",
"speech_tools/base_class/inst_tmpl/tbuffer_t.cc",
"speech_tools/base_class/inst_tmpl/deq_s_t.cc",
"speech_tools/base_class/inst_tmpl/deq_i_t.cc"
])
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
return my_module

View File

@ -0,0 +1,48 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estbase-ling_class', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.add_src_file([
"speech_tools/ling_class/EST_Item.cc",
"speech_tools/ling_class/EST_Item_Content.cc",
"speech_tools/ling_class/item_aux.cc",
"speech_tools/ling_class/EST_relation_aux.cc",
"speech_tools/ling_class/EST_relation_track.cc",
"speech_tools/ling_class/relation_io.cc",
"speech_tools/ling_class/EST_relation_compare.cc",
"speech_tools/ling_class/standard_feature_functions.cc",
"speech_tools/ling_class/EST_Relation_mls.cc",
"speech_tools/ling_class/EST_item_aux.cc",
"speech_tools/ling_class/EST_item_content_aux.cc",
"speech_tools/ling_class/EST_Relation.cc",
"speech_tools/ling_class/EST_UtteranceFile.cc",
"speech_tools/ling_class/genxml.cc",
"speech_tools/ling_class/EST_utterance_aux.cc",
"speech_tools/ling_class/ling_class_init.cc",
"speech_tools/ling_class/ling_t.cc",
"speech_tools/ling_class/EST_Utterance.cc",
"speech_tools/ling_class/item_feats.cc",
"speech_tools/ling_class/apml.cc",
"speech_tools/ling_class/solexml.cc",
"speech_tools/ling_class/EST_FeatureFunctionPackage.cc",
"speech_tools/ling_class/EST_FeatureFunctionContext.cc"
])
my_module.compile_flags('c++', "-DINCLUDE_XML_FORMATS")
my_module.compile_flags('c++', '-DESTLIBDIR=\\"~/festival_data\\"')
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
return my_module

34
lutin_estbase-rxp.py Normal file
View File

@ -0,0 +1,34 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estbase-rxp', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_src_file([
"speech_tools/rxp/charset.c",
"speech_tools/rxp/ctype16.c",
"speech_tools/rxp/dtd.c",
"speech_tools/rxp/string16.c",
"speech_tools/rxp/url.c",
"speech_tools/rxp/ctype16.c",
"speech_tools/rxp/input.c",
"speech_tools/rxp/stdio16.c",
"speech_tools/rxp/system.c",
"speech_tools/rxp/xmlparser.c",
"speech_tools/rxp/XML_Parser.cc"
])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp"))
my_module.compile_flags('c', "-DCHAR_SIZE=8")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
return my_module

39
lutin_estbase-utils.py Normal file
View File

@ -0,0 +1,39 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estbase-utils', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.add_src_file([
"speech_tools/utils/cmd_line.cc",
"speech_tools/utils/util_io.cc",
"speech_tools/utils/filetrans.cc",
"speech_tools/utils/cmd_line_aux.cc",
"speech_tools/utils/EST_swapping.cc",
"speech_tools/utils/est_file.cc",
"speech_tools/utils/EST_cutils.c",
"speech_tools/utils/EST_error.c",
"speech_tools/utils/walloc.c",
"speech_tools/utils/system_specific_unix.c"
])
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.compile_flags('c++', "-DFTNAME='Festival Speech Tools Library'")
my_module.compile_flags('c++', "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '")
my_module.compile_flags('c++', "-DFTVERSION='2.4'")
my_module.compile_flags('c++', "-DFTSTATE='release'")
my_module.compile_flags('c++', "-DFTDATE='December 2014'")
my_module.compile_flags('c++', "-DFTSTATE='release'")
my_module.compile_flags('c++', '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"')
return my_module

View File

@ -7,9 +7,13 @@ def get_desc():
return "festival TTS engine" return "festival TTS engine"
def create(target): def create(target):
myModule = module.Module(__file__, 'estbase', 'LIBRARY') my_module = module.Module(__file__, 'estbase', 'LIBRARY')
myModule.add_src_file([ """
my_module.add_module_depend(['estools'])
my_module.add_src_file([
"speech_tools/rxp/charset.c", "speech_tools/rxp/charset.c",
"speech_tools/rxp/ctype16.c",
"speech_tools/rxp/dtd.c", "speech_tools/rxp/dtd.c",
"speech_tools/rxp/string16.c", "speech_tools/rxp/string16.c",
"speech_tools/rxp/url.c", "speech_tools/rxp/url.c",
@ -17,15 +21,16 @@ def create(target):
"speech_tools/rxp/input.c", "speech_tools/rxp/input.c",
"speech_tools/rxp/stdio16.c", "speech_tools/rxp/stdio16.c",
"speech_tools/rxp/system.c", "speech_tools/rxp/system.c",
"speech_tools/rxp/xmlparser.c" "speech_tools/rxp/xmlparser.c",
"speech_tools/rxp/XML_Parser.cc"
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp"))
myModule.compile_flags('c', "-DCHAR_SIZE=8") my_module.compile_flags('c', "-DCHAR_SIZE=8")
myModule.add_src_file([ my_module.add_src_file([
"speech_tools/audio/gen_audio.cc", "speech_tools/audio/gen_audio.cc",
"speech_tools/audio/nas.cc", "speech_tools/audio/nas.cc",
"speech_tools/audio/esd.cc", "speech_tools/audio/esd.cc",
@ -37,10 +42,10 @@ def create(target):
"speech_tools/audio/macosxaudio.cc", "speech_tools/audio/macosxaudio.cc",
"speech_tools/audio/linux_sound.cc" "speech_tools/audio/linux_sound.cc"
]) ])
myModule.compile_flags('c++', "-fno-implicit-templates") my_module.compile_flags('c++', "-fno-implicit-templates")
myModule.compile_flags('c++', "-DSUPPORT_ALSALINUX") my_module.compile_flags('c++', "-DSUPPORT_ALSALINUX")
myModule.add_src_file([ my_module.add_src_file([
"speech_tools/utils/cmd_line.cc", "speech_tools/utils/cmd_line.cc",
"speech_tools/utils/util_io.cc", "speech_tools/utils/util_io.cc",
"speech_tools/utils/filetrans.cc", "speech_tools/utils/filetrans.cc",
@ -52,16 +57,16 @@ def create(target):
"speech_tools/utils/walloc.c", "speech_tools/utils/walloc.c",
"speech_tools/utils/system_specific_unix.c" "speech_tools/utils/system_specific_unix.c"
]) ])
myModule.compile_flags('c++', "-DINSTANTIATE_TEMPLATES") my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
myModule.compile_flags('c++', "-DFTNAME='Festival Speech Tools Library'") my_module.compile_flags('c++', "-DFTNAME='Festival Speech Tools Library'")
myModule.compile_flags('c++', "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '") my_module.compile_flags('c++', "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '")
myModule.compile_flags('c++', "-DFTVERSION='2.4'") my_module.compile_flags('c++', "-DFTVERSION='2.4'")
myModule.compile_flags('c++', "-DFTSTATE='release'") my_module.compile_flags('c++', "-DFTSTATE='release'")
myModule.compile_flags('c++', "-DFTDATE='December 2014'") my_module.compile_flags('c++', "-DFTDATE='December 2014'")
myModule.compile_flags('c++', "-DFTSTATE='release'") my_module.compile_flags('c++', "-DFTSTATE='release'")
myModule.compile_flags('c++', '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"') my_module.compile_flags('c++', '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"')
myModule.add_src_file([ my_module.add_src_file([
"speech_tools/base_class/EST_UList.cc", "speech_tools/base_class/EST_UList.cc",
"speech_tools/base_class/EST_Option.cc", "speech_tools/base_class/EST_Option.cc",
"speech_tools/base_class/EST_StringTrie.cc", "speech_tools/base_class/EST_StringTrie.cc",
@ -89,7 +94,7 @@ def create(target):
"speech_tools/base_class/EST_Features.cc", "speech_tools/base_class/EST_Features.cc",
]) ])
myModule.add_src_file([ my_module.add_src_file([
"speech_tools/base_class/inst_tmpl/list_i_t.cc", "speech_tools/base_class/inst_tmpl/list_i_t.cc",
"speech_tools/base_class/inst_tmpl/list_si_t.cc", "speech_tools/base_class/inst_tmpl/list_si_t.cc",
"speech_tools/base_class/inst_tmpl/list_f_t.cc", "speech_tools/base_class/inst_tmpl/list_f_t.cc",
@ -142,7 +147,7 @@ def create(target):
"speech_tools/base_class/inst_tmpl/deq_i_t.cc" "speech_tools/base_class/inst_tmpl/deq_i_t.cc"
]) ])
myModule.add_src_file([ my_module.add_src_file([
"speech_tools/ling_class/EST_Item.cc", "speech_tools/ling_class/EST_Item.cc",
"speech_tools/ling_class/EST_Item_Content.cc", "speech_tools/ling_class/EST_Item_Content.cc",
"speech_tools/ling_class/item_aux.cc", "speech_tools/ling_class/item_aux.cc",
@ -165,9 +170,11 @@ def create(target):
"speech_tools/ling_class/apml.cc", "speech_tools/ling_class/apml.cc",
"speech_tools/ling_class/solexml.cc", "speech_tools/ling_class/solexml.cc",
"speech_tools/ling_class/EST_FeatureFunctionPackage.cc", "speech_tools/ling_class/EST_FeatureFunctionPackage.cc",
"speech_tools/ling_class/EST_FeatureFunctionContext.cc", "speech_tools/ling_class/EST_FeatureFunctionContext.cc"
])
myModule.compile_flags('c++', "-DINCLUDE_XML_FORMATS") my_module.compile_flags('c++', "-DINCLUDE_XML_FORMATS")
my_module.compile_flags('c++', '-DESTLIBDIR=\\"~/festival_data\\"')
return myModule """
return my_module

49
lutin_estools-grammar.py Normal file
View File

@ -0,0 +1,49 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-grammar', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.add_src_file([
"speech_tools/grammar/scfg/EST_SCFG.cc",
"speech_tools/grammar/scfg/EST_SCFG_inout.cc",
"speech_tools/grammar/scfg/EST_SCFG_Chart.cc"
])
my_module.add_src_file([
"speech_tools/grammar/wfst/EST_WFST.cc",
"speech_tools/grammar/wfst/wfst_regex.cc",
"speech_tools/grammar/wfst/wfst_ops.cc",
"speech_tools/grammar/wfst/wfst_transduce.cc",
"speech_tools/grammar/wfst/kkcompile.cc",
"speech_tools/grammar/wfst/wfst_aux.cc",
"speech_tools/grammar/wfst/ltscompile.cc",
"speech_tools/grammar/wfst/rgcompile.cc",
"speech_tools/grammar/wfst/tlcompile.cc",
"speech_tools/grammar/wfst/wfst_train.cc"
])
my_module.add_src_file([
"speech_tools/grammar/ngram/lattice_t.cc",
"speech_tools/grammar/ngram/EST_Ngrammar.cc",
"speech_tools/grammar/ngram/ngrammar_io.cc",
"speech_tools/grammar/ngram/ngrammar_aux.cc",
"speech_tools/grammar/ngram/ngrammar_utils.cc",
"speech_tools/grammar/ngram/EST_lattice.cc",
"speech_tools/grammar/ngram/EST_lattice_io.cc",
"speech_tools/grammar/ngram/freqsmooth.cc",
"speech_tools/grammar/ngram/EST_PST.cc"
])
return my_module

View File

@ -0,0 +1,24 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-intonation', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.add_src_file([
"speech_tools/intonation/tilt/tilt_analysis.cc",
"speech_tools/intonation/tilt/tilt_synthesis.cc",
"speech_tools/intonation/tilt/tilt_utils.cc"
])
return my_module

38
lutin_estools-sigpr.py Normal file
View File

@ -0,0 +1,38 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-sigpr', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.add_src_file([
"speech_tools/sigpr/EST_Window.cc",
"speech_tools/sigpr/delta.cc",
"speech_tools/sigpr/filter.cc",
"speech_tools/sigpr/sigpr_frame.cc",
"speech_tools/sigpr/sigpr_utt.cc",
"speech_tools/sigpr/pitchmark.cc",
"speech_tools/sigpr/spectrogram.cc",
"speech_tools/sigpr/misc.cc",
"speech_tools/sigpr/fft.cc"
])
my_module.add_src_file([
"speech_tools/sigpr/pda/pcb_smoother.cc",
"speech_tools/sigpr/pda/smooth_pda.cc",
"speech_tools/sigpr/pda/pda.cc",
"speech_tools/sigpr/pda/srpd1.3.cc"
])
return my_module

43
lutin_estools-siod.py Normal file
View File

@ -0,0 +1,43 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-siod', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_src_file([
"speech_tools/siod/slib.cc",
"speech_tools/siod/slib_core.cc",
"speech_tools/siod/slib_doc.cc",
"speech_tools/siod/slib_file.cc",
"speech_tools/siod/slib_format.cc",
"speech_tools/siod/slib_list.cc",
"speech_tools/siod/slib_math.cc",
"speech_tools/siod/slib_sys.cc",
"speech_tools/siod/slib_server.cc",
"speech_tools/siod/slib_str.cc",
"speech_tools/siod/slib_xtr.cc",
"speech_tools/siod/slib_repl.cc",
"speech_tools/siod/slib_python.cc",
"speech_tools/siod/io.cc",
"speech_tools/siod/trace.cc",
"speech_tools/siod/siod.cc",
"speech_tools/siod/siod_est.cc",
"speech_tools/siod/siodeditline.c",
"speech_tools/siod/el_complete.c",
"speech_tools/siod/editline.c",
"speech_tools/siod/el_sys_unix.c",
])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.compile_flags('c', "-DSUPPORT_EDITLINE")
return my_module

View File

@ -0,0 +1,38 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-speech_class', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.add_src_file([
"speech_tools/speech_class/EST_Wave.cc",
"speech_tools/speech_class/EST_track_aux.cc",
"speech_tools/speech_class/EST_wave_temp.cc",
"speech_tools/speech_class/EST_wave_cuts.cc",
"speech_tools/speech_class/ssff.cc",
"speech_tools/speech_class/esps_io.cc",
"speech_tools/speech_class/esps_utils.cc",
"speech_tools/speech_class/EST_wave_io.cc",
"speech_tools/speech_class/EST_wave_utils.cc",
"speech_tools/speech_class/EST_TrackMap.cc",
"speech_tools/speech_class/EST_Track.cc",
"speech_tools/speech_class/wave_t.cc",
"speech_tools/speech_class/track_t.cc",
"speech_tools/speech_class/EST_wave_aux.cc",
"speech_tools/speech_class/EST_TrackFile.cc",
"speech_tools/speech_class/EST_WaveFile.cc"
])
return my_module

40
lutin_estools-stats.py Normal file
View File

@ -0,0 +1,40 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-stats', 'LIBRARY')
my_module.add_module_depend(['eststring'])
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.add_src_file([
"speech_tools/stats/EST_cluster.cc",
"speech_tools/stats/EST_multistats.cc",
"speech_tools/stats/confusion.cc",
"speech_tools/stats/EST_Discrete.cc",
"speech_tools/stats/EST_DProbDist.cc",
"speech_tools/stats/EST_ols.cc",
"speech_tools/stats/EST_viterbi.cc",
"speech_tools/stats/dynamic_program.cc"
])
my_module.add_src_file([
"speech_tools/stats/wagon/dlist.cc",
"speech_tools/stats/wagon/wagon_aux.cc",
"speech_tools/stats/wagon/wagonint.cc",
"speech_tools/stats/wagon/wagon.cc"
])
my_module.add_src_file([
"speech_tools/stats/kalman_filter/EST_kalman.cc",
])
return my_module

View File

@ -1,243 +1,141 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
$ cd ../speech_tools/ def create(target):
[ ALD-1354-DE : edupin ](git:master)~/dev/speech_tools my_module = module.Module(__file__, 'estools', 'LIBRARY')
$ make """
Making in directory ./siod ... my_module.add_module_depend(['eststring'])
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib.cc
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_core.cc my_module.add_src_file([
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_doc.cc "speech_tools/siod/slib.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_file.cc "speech_tools/siod/slib_core.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_format.cc "speech_tools/siod/slib_doc.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_list.cc "speech_tools/siod/slib_file.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_math.cc "speech_tools/siod/slib_format.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_sys.cc "speech_tools/siod/slib_list.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_server.cc "speech_tools/siod/slib_math.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_str.cc "speech_tools/siod/slib_sys.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_xtr.cc "speech_tools/siod/slib_server.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_repl.cc "speech_tools/siod/slib_str.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib_python.cc "speech_tools/siod/slib_xtr.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include io.cc "speech_tools/siod/slib_repl.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include trace.cc "speech_tools/siod/slib_python.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include -DINSTANTIATE_TEMPLATES siod.cc "speech_tools/siod/io.cc",
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include -DINSTANTIATE_TEMPLATES siod_est.cc "speech_tools/siod/trace.cc",
gcc -c -O3 -Wall -DSUPPORT_EDITLINE -I../include siodeditline.c "speech_tools/siod/siod.cc",
gcc -c -O3 -Wall -DSUPPORT_EDITLINE -I../include el_complete.c "speech_tools/siod/siod_est.cc",
gcc -c -O3 -Wall -DSUPPORT_EDITLINE -I../include editline.c "speech_tools/siod/siodeditline.c",
gcc -c -O3 -Wall -DSUPPORT_EDITLINE -I../include el_sys_unix.c "speech_tools/siod/el_complete.c",
Update library estools "speech_tools/siod/editline.c",
a - slib.o "speech_tools/siod/el_sys_unix.c",
a - slib_core.o ])
a - slib_doc.o
a - slib_file.o my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
a - slib_format.o my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp"))
a - slib_list.o my_module.compile_flags('c++', "-fno-implicit-templates")
a - slib_math.o my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
a - slib_sys.o my_module.compile_flags('c', "-DSUPPORT_EDITLINE")
a - slib_server.o
a - slib_str.o my_module.add_src_file([
a - slib_xtr.o "speech_tools/speech_class/EST_Wave.cc",
a - slib_repl.o "speech_tools/speech_class/EST_track_aux.cc",
a - slib_python.o "speech_tools/speech_class/EST_wave_temp.cc",
a - io.o "speech_tools/speech_class/EST_wave_cuts.cc",
a - trace.o "speech_tools/speech_class/ssff.cc",
a - siod.o "speech_tools/speech_class/esps_io.cc",
a - siod_est.o "speech_tools/speech_class/esps_utils.cc",
a - siodeditline.o "speech_tools/speech_class/EST_wave_io.cc",
a - el_complete.o "speech_tools/speech_class/EST_wave_utils.cc",
a - editline.o "speech_tools/speech_class/EST_TrackMap.cc",
a - el_sys_unix.o "speech_tools/speech_class/EST_Track.cc",
"speech_tools/speech_class/wave_t.cc",
"speech_tools/speech_class/track_t.cc",
"speech_tools/speech_class/EST_wave_aux.cc",
Making in directory ./speech_class ... "speech_tools/speech_class/EST_TrackFile.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_Wave.cc "speech_tools/speech_class/EST_WaveFile.cc"
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_track_aux.cc ])
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_wave_temp.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_wave_cuts.cc my_module.add_src_file([
gcc -c -fno-implicit-templates -O3 -Wall -I../include ssff.cc "speech_tools/sigpr/EST_Window.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include esps_io.cc "speech_tools/sigpr/delta.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include esps_utils.cc "speech_tools/sigpr/filter.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_wave_io.cc "speech_tools/sigpr/sigpr_frame.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_wave_utils.cc "speech_tools/sigpr/sigpr_utt.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES EST_TrackMap.cc "speech_tools/sigpr/pitchmark.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES EST_Track.cc "speech_tools/sigpr/spectrogram.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES wave_t.cc "speech_tools/sigpr/misc.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES track_t.cc "speech_tools/sigpr/fft.cc"
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES EST_wave_aux.cc ])
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES EST_TrackFile.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES EST_WaveFile.cc my_module.add_src_file([
look at library estools "speech_tools/sigpr/pda/pcb_smoother.cc",
a - EST_Wave.o "speech_tools/sigpr/pda/smooth_pda.cc",
a - EST_track_aux.o "speech_tools/sigpr/pda/pda.cc",
a - EST_wave_temp.o "speech_tools/sigpr/pda/srpd1.3.cc"
a - EST_wave_cuts.o ])
a - ssff.o
a - esps_io.o my_module.add_src_file([
a - esps_utils.o "speech_tools/stats/EST_cluster.cc",
a - EST_wave_io.o "speech_tools/stats/EST_multistats.cc",
a - EST_wave_utils.o "speech_tools/stats/confusion.cc",
a - EST_TrackMap.o "speech_tools/stats/EST_Discrete.cc",
a - EST_Track.o "speech_tools/stats/EST_DProbDist.cc",
a - wave_t.o "speech_tools/stats/EST_ols.cc",
a - track_t.o "speech_tools/stats/EST_viterbi.cc",
a - EST_wave_aux.o "speech_tools/stats/dynamic_program.cc"
a - EST_TrackFile.o ])
a - EST_WaveFile.o
my_module.add_src_file([
"speech_tools/stats/wagon/dlist.cc",
"speech_tools/stats/wagon/wagon_aux.cc",
Making in directory ./sigpr ... "speech_tools/stats/wagon/wagonint.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES EST_Window.cc "speech_tools/stats/wagon/wagon.cc"
gcc -c -fno-implicit-templates -O3 -Wall -I../include delta.cc ])
gcc -c -fno-implicit-templates -O3 -Wall -I../include filter.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../include sigpr_frame.cc my_module.add_src_file([
gcc -c -fno-implicit-templates -O3 -Wall -I../include sigpr_utt.cc "speech_tools/stats/kalman_filter/EST_kalman.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include pitchmark.cc ])
gcc -c -fno-implicit-templates -O3 -Wall -I../include spectrogram.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../include misc.cc my_module.add_src_file([
gcc -c -fno-implicit-templates -O3 -Wall -I../include fft.cc "speech_tools/grammar/scfg/EST_SCFG.cc",
look at library estools "speech_tools/grammar/scfg/EST_SCFG_inout.cc",
a - EST_Window.o "speech_tools/grammar/scfg/EST_SCFG_Chart.cc"
a - delta.o ])
a - filter.o
a - sigpr_frame.o my_module.add_src_file([
a - sigpr_utt.o "speech_tools/grammar/wfst/EST_WFST.cc",
a - pitchmark.o "speech_tools/grammar/wfst/wfst_regex.cc",
a - spectrogram.o "speech_tools/grammar/wfst/wfst_ops.cc",
a - misc.o "speech_tools/grammar/wfst/wfst_transduce.cc",
a - fft.o "speech_tools/grammar/wfst/kkcompile.cc",
look at library eststring "speech_tools/grammar/wfst/wfst_aux.cc",
"speech_tools/grammar/wfst/ltscompile.cc",
"speech_tools/grammar/wfst/rgcompile.cc",
"speech_tools/grammar/wfst/tlcompile.cc",
Making in directory sigpr/pda ... "speech_tools/grammar/wfst/wfst_train.cc"
gcc -c -fno-implicit-templates -O3 -Wall -I../../include pcb_smoother.cc ])
gcc -c -fno-implicit-templates -O3 -Wall -I../../include smooth_pda.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include pda.cc my_module.add_src_file([
gcc -c -fno-implicit-templates -O3 -Wall -I../../include srpd1.3.cc "speech_tools/grammar/ngram/lattice_t.cc",
look at library estools "speech_tools/grammar/ngram/EST_Ngrammar.cc",
a - pcb_smoother.o "speech_tools/grammar/ngram/ngrammar_io.cc",
a - smooth_pda.o "speech_tools/grammar/ngram/ngrammar_aux.cc",
a - pda.o "speech_tools/grammar/ngram/ngrammar_utils.cc",
a - srpd1.3.o "speech_tools/grammar/ngram/EST_lattice.cc",
look at library eststring "speech_tools/grammar/ngram/EST_lattice_io.cc",
"speech_tools/grammar/ngram/freqsmooth.cc",
"speech_tools/grammar/ngram/EST_PST.cc"
])
Making in directory ./stats ... my_module.add_src_file([
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_cluster.cc "speech_tools/intonation/tilt/tilt_analysis.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_multistats.cc "speech_tools/intonation/tilt/tilt_synthesis.cc",
gcc -c -fno-implicit-templates -O3 -Wall -I../include confusion.cc "speech_tools/intonation/tilt/tilt_utils.cc"
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_Discrete.cc ])
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_DProbDist.cc """
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_ols.cc return my_module
gcc -c -fno-implicit-templates -O3 -Wall -I../include EST_viterbi.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../include -DINSTANTIATE_TEMPLATES dynamic_program.cc
look at library estools
a - EST_cluster.o
a - EST_multistats.o
a - confusion.o
a - EST_Discrete.o
a - EST_DProbDist.o
a - EST_ols.o
a - EST_viterbi.o
a - dynamic_program.o
look at library eststring
Making in directory stats/wagon ...
gcc -c -fno-implicit-templates -O3 -Wall -I../../include dlist.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include wagon_aux.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include wagonint.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES wagon.cc
Update library estools
a - dlist.o
a - wagon_aux.o
a - wagonint.o
a - wagon.o
look at library eststring
Making in directory stats/kalman_filter ...
gcc -c -fno-implicit-templates -O3 -Wall -I../../include EST_kalman.cc
Update library estools
a - EST_kalman.o
Making in directory ./grammar ...
Making in directory grammar/scfg ...
making dependencies -- EST_SCFG.cc EST_SCFG_inout.cc EST_SCFG_Chart.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES EST_SCFG.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES EST_SCFG_inout.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include EST_SCFG_Chart.cc
Update library estools
a - EST_SCFG.o
a - EST_SCFG_inout.o
a - EST_SCFG_Chart.o
Making in directory grammar/wfst ...
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES EST_WFST.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES wfst_regex.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES wfst_ops.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES wfst_transduce.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES kkcompile.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include wfst_aux.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include ltscompile.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include rgcompile.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include tlcompile.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include wfst_train.cc
Update library estools
a - EST_WFST.o
a - wfst_regex.o
a - wfst_ops.o
a - wfst_transduce.o
a - kkcompile.o
a - wfst_aux.o
a - ltscompile.o
a - rgcompile.o
a - tlcompile.o
a - wfst_train.o
Making in directory grammar/ngram ...
gcc -c -fno-implicit-templates -O3 -Wall -I../../include -DINSTANTIATE_TEMPLATES lattice_t.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include EST_Ngrammar.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include ngrammar_io.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include ngrammar_aux.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include ngrammar_utils.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include EST_lattice.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include EST_lattice_io.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include freqsmooth.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include EST_PST.cc
Update library estools
a - lattice_t.o
a - EST_Ngrammar.o
a - ngrammar_io.o
a - ngrammar_aux.o
a - ngrammar_utils.o
a - EST_lattice.o
a - EST_lattice_io.o
a - freqsmooth.o
a - EST_PST.o
Making in directory ./intonation ...
Making in directory intonation/tilt ...
gcc -c -fno-implicit-templates -O3 -Wall -I../../include tilt_analysis.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include tilt_synthesis.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../include tilt_utils.cc
Update library estools
a - tilt_analysis.o
a - tilt_synthesis.o
a - tilt_utils.o

View File

@ -7,8 +7,8 @@ def get_desc():
return "festival TTS engine" return "festival TTS engine"
def create(target): def create(target):
myModule = module.Module(__file__, 'eststring', 'LIBRARY') my_module = module.Module(__file__, 'eststring', 'LIBRARY')
myModule.add_src_file([ my_module.add_src_file([
"speech_tools/base_class/string/EST_String.cc", "speech_tools/base_class/string/EST_String.cc",
"speech_tools/base_class/string/EST_Regex.cc", "speech_tools/base_class/string/EST_Regex.cc",
"speech_tools/base_class/string/EST_Chunk.cc", "speech_tools/base_class/string/EST_Chunk.cc",
@ -18,10 +18,10 @@ def create(target):
"speech_tools/base_class/string/EST_strcasecmp.c", "speech_tools/base_class/string/EST_strcasecmp.c",
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/base_class/string/")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/base_class/string/"))
myModule.compile_flags('c++', "-fno-implicit-templates") my_module.compile_flags('c++', "-fno-implicit-templates")
return myModule return my_module

0
lutin_festival-client.py Normal file
View File

26
lutin_festival-main.py Normal file
View File

@ -0,0 +1,26 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'festival-main', 'BINARY')
my_module.add_module_depend(['festival'])
my_module.add_src_file([
"festival/src/main/festival_main.cc"
])
return my_module
"""
gcc -O3 -Wall -o festival festival_main.o -L../../src/lib -lFestival -L../../../speech_tools/lib -lestools -L../../../speech_tools/lib -lestbase -L../../../speech_tools/lib -leststring -lncurses -lasound -ldl -lncurses -lm -lstdc++
gcc -c -fno-implicit-templates -O3 -Wall -I../../src/include -I../../../speech_tools/include festival_client.cc
gcc -O3 -Wall -o festival_client festival_client.o -L../../src/lib -lFestival -L../../../speech_tools/lib -lestools -L../../../speech_tools/lib -lestbase -L../../../speech_tools/lib -leststring -lncurses -lasound -ldl -lncurses -lm -lstdc++
gcc -c -fno-implicit-templates -O3 -Wall -I../../src/include -I../../../speech_tools/include audsp.cc
gcc -O3 -Wall -o ../../lib/etc/unknown_DebianGNULinux/audsp audsp.o -L../../src/lib -lFestival -L../../../speech_tools/lib -lestools -L../../../speech_tools/lib -lestbase -L../../../speech_tools/lib -leststring -lncurses -lasound -ldl -lncurses -lm -lstdc++
"""

View File

@ -7,8 +7,24 @@ def get_desc():
return "festival TTS engine" return "festival TTS engine"
def create(target): def create(target):
myModule = module.Module(__file__, 'festival', 'LIBRARY') my_module = module.Module(__file__, 'festival', 'LIBRARY')
myModule.add_src_file([
#my_module.add_module_depend(['estools', 'estbase', 'eststring'])
my_module.add_module_depend([
'estbase-audio',
'estbase-base_class',
'estbase-ling_class',
'estbase-rxp',
'estbase-utils',
'estools-grammar',
'estools-intonation',
'estools-sigpr',
'estools-siod',
'estools-speech_class',
'estools-stats'
])
my_module.add_src_file([
'festival/src/arch/festival/festival.cc', 'festival/src/arch/festival/festival.cc',
'festival/src/arch/festival/web.cc', 'festival/src/arch/festival/web.cc',
'festival/src/arch/festival/linreg.cc', 'festival/src/arch/festival/linreg.cc',
@ -27,7 +43,7 @@ def create(target):
'festival/src/arch/festival/ModuleDescription.cc' 'festival/src/arch/festival/ModuleDescription.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/base/parameters.cc', 'festival/src/modules/base/parameters.cc',
'festival/src/modules/base/phrasify.cc', 'festival/src/modules/base/phrasify.cc',
'festival/src/modules/base/phrinfo.cc', 'festival/src/modules/base/phrinfo.cc',
@ -40,7 +56,7 @@ def create(target):
]) ])
# all plugins: # all plugins:
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/UniSyn/us_unit.cc', 'festival/src/modules/UniSyn/us_unit.cc',
'festival/src/modules/UniSyn/us_prosody.cc', 'festival/src/modules/UniSyn/us_prosody.cc',
'festival/src/modules/UniSyn/ps_synthesis.cc', 'festival/src/modules/UniSyn/ps_synthesis.cc',
@ -49,7 +65,7 @@ def create(target):
'festival/src/modules/UniSyn/us_features.cc' 'festival/src/modules/UniSyn/us_features.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/Intonation/simple.cc', 'festival/src/modules/Intonation/simple.cc',
'festival/src/modules/Intonation/duffint.cc', 'festival/src/modules/Intonation/duffint.cc',
'festival/src/modules/Intonation/int_aux.cc', 'festival/src/modules/Intonation/int_aux.cc',
@ -57,13 +73,13 @@ def create(target):
'festival/src/modules/Intonation/int_tree.cc' 'festival/src/modules/Intonation/int_tree.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/UniSyn_diphone/UniSyn_diphone.cc', 'festival/src/modules/UniSyn_diphone/UniSyn_diphone.cc',
'festival/src/modules/UniSyn_diphone/us_diphone_index.cc', 'festival/src/modules/UniSyn_diphone/us_diphone_index.cc',
'festival/src/modules/UniSyn_diphone/us_diphone_unit.cc' 'festival/src/modules/UniSyn_diphone/us_diphone_unit.cc'
]) ])
""" """
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/UniSyn_phonology/UniSyn_phonology.cc', 'festival/src/modules/UniSyn_phonology/UniSyn_phonology.cc',
'festival/src/modules/UniSyn_phonology/unisyn_tilt.cc', 'festival/src/modules/UniSyn_phonology/unisyn_tilt.cc',
'festival/src/modules/UniSyn_phonology/subword.cc', 'festival/src/modules/UniSyn_phonology/subword.cc',
@ -74,11 +90,17 @@ def create(target):
'festival/src/modules/UniSyn_phonology/UniSyn_build.cc' # pb compiling ... 'festival/src/modules/UniSyn_phonology/UniSyn_build.cc' # pb compiling ...
]) ])
""" """
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/donovan/donovan.cc' 'festival/src/modules/donovan/coeffs.c',
'festival/src/modules/donovan/donovan.cc',
'festival/src/modules/donovan/durations.c',
'festival/src/modules/donovan/excitation.c',
'festival/src/modules/donovan/load_diphs.c',
'festival/src/modules/donovan/makewav.c',
'festival/src/modules/donovan/pitch.c',
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/Text/text_modes.cc', 'festival/src/modules/Text/text_modes.cc',
'festival/src/modules/Text/tok_ext.cc', 'festival/src/modules/Text/tok_ext.cc',
'festival/src/modules/Text/text.cc', 'festival/src/modules/Text/text.cc',
@ -88,17 +110,17 @@ def create(target):
'festival/src/modules/Text/text_aux.cc' 'festival/src/modules/Text/text_aux.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/clustergen/HTS_vocoder_me.cc', # request include : festival/src/modules/hts_engine 'festival/src/modules/clustergen/HTS_vocoder_me.cc', # request include : festival/src/modules/hts_engine
'festival/src/modules/clustergen/mlsa_resynthesis.cc', 'festival/src/modules/clustergen/mlsa_resynthesis.cc',
'festival/src/modules/clustergen/simple_mlpg.cc', 'festival/src/modules/clustergen/simple_mlpg.cc',
'festival/src/modules/clustergen/vc.cc', 'festival/src/modules/clustergen/vc.cc',
'festival/src/modules/clustergen/clustergen.cc' 'festival/src/modules/clustergen/clustergen.cc'
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/hts_engine")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/hts_engine"))
""" """
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/diphone/di_select.cc', 'festival/src/modules/diphone/di_select.cc',
'festival/src/modules/diphone/di_pitch.cc', 'festival/src/modules/diphone/di_pitch.cc',
'festival/src/modules/diphone/di_io.cc', 'festival/src/modules/diphone/di_io.cc',
@ -109,31 +131,41 @@ def create(target):
]) ])
""" """
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/Duration/duration.cc', 'festival/src/modules/Duration/duration.cc',
'festival/src/modules/Duration/dur_aux.cc', 'festival/src/modules/Duration/dur_aux.cc',
'festival/src/modules/Duration/Klatt.cc' 'festival/src/modules/Duration/Klatt.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/hts_engine/fest2hts_engine.cc' 'festival/src/modules/hts_engine/fest2hts_engine.cc',
'festival/src/modules/hts_engine/HTS_audio.c',
'festival/src/modules/hts_engine/HTS_engine.c',
'festival/src/modules/hts_engine/HTS_engine.c',
'festival/src/modules/hts_engine/HTS_gstream.c',
'festival/src/modules/hts_engine/HTS_label.c',
'festival/src/modules/hts_engine/HTS_misc.c',
'festival/src/modules/hts_engine/HTS_model.c',
'festival/src/modules/hts_engine/HTS_pstream.c',
'festival/src/modules/hts_engine/HTS_sstream.c',
#'festival/src/modules/hts_engine/HTS_vocoder.c'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/clunits/cldb.cc', 'festival/src/modules/clunits/cldb.cc',
'festival/src/modules/clunits/clunits.cc', 'festival/src/modules/clunits/clunits.cc',
'festival/src/modules/clunits/acost.cc', 'festival/src/modules/clunits/acost.cc',
'festival/src/modules/clunits/cljoin.cc' # request finclude estival/src/modules/UniSyn 'festival/src/modules/clunits/cljoin.cc' # request finclude estival/src/modules/UniSyn
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/UniSyn")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/UniSyn"))
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/rxp/ttsxml.cc' # request include : speech_tools/include/rxp 'festival/src/modules/rxp/ttsxml.cc' # request include : speech_tools/include/rxp
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp"))
myModule.compile_flags('c++', "-DCHAR_SIZE=8") my_module.compile_flags('c++', "-DCHAR_SIZE=8")
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/Lexicon/complex.cc', 'festival/src/modules/Lexicon/complex.cc',
'festival/src/modules/Lexicon/lts.cc', 'festival/src/modules/Lexicon/lts.cc',
'festival/src/modules/Lexicon/lexicon.cc', 'festival/src/modules/Lexicon/lexicon.cc',
@ -142,11 +174,11 @@ def create(target):
'festival/src/modules/Lexicon/lts_rules.cc' 'festival/src/modules/Lexicon/lts_rules.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/parser/pparser.cc' 'festival/src/modules/parser/pparser.cc'
]) ])
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/MultiSyn/EST_JoinCost.cc', 'festival/src/modules/MultiSyn/EST_JoinCost.cc',
'festival/src/modules/MultiSyn/DiphoneUnitVoice.cc', 'festival/src/modules/MultiSyn/DiphoneUnitVoice.cc',
'festival/src/modules/MultiSyn/inst_tmpl/list_itemp_t.cc', 'festival/src/modules/MultiSyn/inst_tmpl/list_itemp_t.cc',
@ -168,29 +200,36 @@ def create(target):
'festival/src/modules/MultiSyn/EST_FlatTargetCost.cc', 'festival/src/modules/MultiSyn/EST_FlatTargetCost.cc',
'festival/src/modules/MultiSyn/TargetCostRescoring.cc' 'festival/src/modules/MultiSyn/TargetCostRescoring.cc'
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/MultiSyn")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/MultiSyn"))
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/MultiSyn/inst_tmpl")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/MultiSyn/inst_tmpl"))
# load all modules # load all modules
myModule.add_src_file([ my_module.add_src_file([
'festival/src/modules/init_modules.cc' 'init_modules.cc'
]) ])
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules"))
myModule.compile_flags('c++', "-fno-implicit-templates") my_module.compile_flags('c++', "-fno-implicit-templates")
myModule.compile_flags('c++', "-DINSTANTIATE_TEMPLATES") my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
myModule.compile_flags('c++', "-DFTNAME='Festival Speech Synthesis System'") my_module.compile_flags('c++', "-DFTNAME='Festival Speech Synthesis System'")
myModule.compile_flags('c++', "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '") my_module.compile_flags('c++', "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '")
myModule.compile_flags('c++', "-DFTVERSION='2.4'") my_module.compile_flags('c++', "-DFTVERSION='2.4'")
myModule.compile_flags('c++', "-DFTSTATE='release'") my_module.compile_flags('c++', "-DFTSTATE='release'")
myModule.compile_flags('c++', "-DFTDATE='December 2014'") my_module.compile_flags('c++', "-DFTDATE='December 2014'")
myModule.compile_flags('c++', "-DFTSTATE='release'") my_module.compile_flags('c++', "-DFTSTATE='release'")
myModule.compile_flags('c++', '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"') my_module.compile_flags('c++', '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"')
myModule.compile_version_CC(1999) my_module.compile_version_CC(1999)
# TODO: copy in install folder ... # TODO: copy in install folder ...
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/include")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/include"))
myModule.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include")) my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
#myModule.add_export_path(tools.get_current_path(__file__) + "/festival/src/include") #my_module.add_export_path(tools.get_current_path(__file__) + "/festival/src/include")
return myModule
my_module.compile_version_XX(2003)
my_module.add_export_flag('link', "-lncurses")
my_module.add_export_flag('link', "-lasound")
my_module.add_export_flag('link', "-ldl")
my_module.add_export_flag('link', "-lm")
my_module.add_export_flag('link', "-lstdc++")
return my_module