<div dir="ltr">you can also try speech.flite from ceammc <a href="https://github.com/uliss/pure-data">https://github.com/uliss/pure-data</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sáb., 13 de mar. de 2021 às 06:07, Peter P. <<a href="mailto:peterparker@fastmail.com">peterparker@fastmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list,<br>
<br>
trying to compile and load the espeak external from <br>
<a href="https://github.com/kronihias/espeak" rel="noreferrer" target="_blank">https://github.com/kronihias/espeak</a><br>
on Debian/GNU Linux. Have the apt packages<br>
        espeak libespeak-dev<br>
installed and the makefile modifiet to point to<br>
        PDROOT=/usr/include/pd<br>
<br>
Running 'make' yields an error:<br>
cc -export-dynamic -shared  -lc -lm -lespeak -DPD -O2 -funroll-loops<br>
-fomit-frame-pointer -fPIC -Wall -W -Wshadow -Wstrict-prototypes -Werror<br>
-Wno-unused -Wno-parentheses -Wno-switch -I/usr/include/pd/src -o<br>
espeak.pd_linux espeak.c<br>
espeak.c: In function ‘espeak_setup’:<br>
espeak.c:406:6: error: cast between incompatible function types from<br>
‘void * (*)(t_symbol *)’ {aka ‘void * (*)(struct _symbol *)’} to ‘void *<br>
(*)(void)’ [-Werror=cast-function-type]<br>
  406 |      (t_newmethod)espeak_new,  // newmethod<br>
      |      ^<br>
cc1: all warnings being treated as errors<br>
make[1]: *** [Makefile:79: espeak.pd_linux] Error 1<br>
make[1]: Leaving directory '/tmp/espeak-master'<br>
make: *** [Makefile:46: auto] Error 2<br>
<br>
which I can circumnavigate disabling the -Werror flag in the makefile.<br>
Compilation somewhat succeeds then, posting:<br>
espeak.c: In function ‘espeak_setup’:<br>
espeak.c:406:6: warning: cast between incompatible function types from<br>
‘void * (*)(t_symbol *)’ {aka ‘void * (*)(struct _symbol *)’} to ‘void *<br>
(*)(void)’ [-Wcast-function-type]<br>
  406 |      (t_newmethod)espeak_new,  // newmethod<br>
      |      ^<br>
<br>
Loading the external in Pd then throws:<br>
./espeak.pd_linux: ./espeak.pd_linux: undefined symbol: espeak_SetParameter<br>
espeak: can't load library<br>
<br>
Can anyone point me into a good direction what to try next here?<br>
Anyone having had success on OS X with this external so far?<br>
<br>
appreciated, <br>
as always, <br>
yours,<br>
P<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>