[Mono-dev] shared library wrapper question

buhochileno at gmail.com buhochileno at gmail.com
Sat Aug 9 13:29:45 EDT 2008


Michael Jerris wrote:
> Embedding festival is problematic because of thread safety issues in 
> the engine.  There is a project called flite that should work.
>
yeap, I was reading some post about that, so is not just make a wrapper 
function to the festival C API functions, I was reading about flite and 
is much small and seems that the SWIG tool can help a lot generating the 
wrapper code but one problem is that I don know if flite can work with 
other voices (I need spanish voice to). Also exist the freetts proyect 
that is a complete managed java tts engine, but I think that is very big 
even with the help of swig...
Sugestions?

the good news is that I allways can do a nasty, ugly cheat like: 
Mono.Unix.Native.Stdlib.system("echo "+text+" | festival --tts");  s-) , 
but of course can't be a definitive solution (I know is ugly, but at 
least do the basic work)...

Othe way arround festival can be the socket API may be is more simple, 
and also a ugly solution can be to use the program "festival" in 
interactive way?,..

thanks

Mauricio

> Mike
>
> On Aug 8, 2008, at 7:59 PM, "buhochileno at gmail.com" 
> <buhochileno at gmail.com> wrote:
>
>> Hi guys:
>>
>> I'm trying to write a basic Festival tts wrapper, but I get
>> System.DllNotFoundException: libFestival and I think that may be is
>> related to that any festival C API code need to be compiled using links
>> to other shared speechtools libs (libestbase, libeststring....),
>> Any program that use the festival C API have to be compiled like:
>>    g++32 -o festivalsimpletest festivalsimpletest.c
>> -I/usr/include/festival -I/usr/src/tar/speech_tools/include -lFestival
>> -lestools -lestbase -leststring -Wno-deprecated
>>
>> My wrapper code is like:
>> [DllImport("libFestival")]
>> public static extern void festival_initialize(int load_init_files,int
>> heap_size);
>>
>> where  festival_initialize is defined as: void festival_initialize(int
>> load_init_files,int heap_size); from C the function is used simple like:
>> festival_initialize(1,210000);
>> of course libFestival.so exist and work...
>>
>> So, may be is related to that a program that need libFestival.so also
>> need libestbase,so, etc?, how can I check where is the problems..?, inea
>> ideas?,  directions?
>>
>> Thanks
>>
>> Mauricio
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list