<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Hello.
<br><br>Here the thing: a open-source program, eSpeak (voice synthezer) uses 2 libraries: espeak-library and portaudio.
<br><br>In eSpeak source =>
<br><br>- For the Windows version, the libraries are included in the executable (static linked).
<br> To do run the program => it is easy => just run the executable via TProcess (espeak.exe).
<br><br>- For Linux, the eSpeak source produces a executable with static
espeak-library included but without static portaudio-library included
in executable.
<br> So portaudio library must be installed in library path of the system.
<br> If portaudio is not installed in library path of the system, a trick that works is:
<br><br> To do run the program =>
<br> - first dynamic load portaudio with loadlibrary('/the_path_you_want/libportaudio.so').
<br> - run the executable via TProcess (espeak).
<br><br>- For freeBSD, the eSpeak source produces a executable without
static espeak-library nor static portaudio-library included in
executable.
<br> So both espeak-library and portaudio-library must be installed in library path of the system.
<br> If libraries are not installed in library path of the system, a trick that works is:
<br><br> To do run the program =>
<br> - first dynamic load portaudio with loadlibrary('/the_path_you_want/libportaudio.so').
<br> - then dynamic load libespeak with loadlibrary('/the_path_you_want/libespeak.so').
<br> - run the executable via TProcess (speak).
<br><br>All is working like charms.
<br><br>Now i heard that this trick is unsafe.
<br><br>Why ?
<br><br>Many thanks.
<br><br>Fre;D
</div></body>
</html>