|
From: Soumen b. <sou...@gm...> - 2009-12-27 07:06:06
|
Hi,
I want libespeak to play the sound on its own, and i propose to use
AUDIO_OUTPUT_PLAYBACK
I find espeak.cpp really complex. I tried my understanding of the
thing, in essence,
#include "speak_lib.h"
#include<stdlib.h>
int main()
{
espeak_Initialize(AUDIO_OUTPUT_PLAYBACK,0,"/mnt/D/Developer/C/espeak-1.42.04-source/",0);
espeak_SetSynthCallback(NULL);
espeak_Synth("hello,hello",20,0,POS_CHARACTER,0,1,NULL,NULL);
}
if this is kept in the src directory and i attempt to compile it, i get
[soumen@PC060906006 src]$ g++ ex.cpp
/home/soumen/tmp/cc2o6E5Y.o: In function `main':
ex.cpp:(.text+0x31): undefined reference to `espeak_Initialize'
ex.cpp:(.text+0x3d): undefined reference to `espeak_SetSynthCallback'
ex.cpp:(.text+0x81): undefined reference to `espeak_Synth'
collect2: ld returned 1 exit status
what am i doing wrong?
Please Help,
Regards,
Soumen
|