From: chyujian <iam...@gm...> - 2011-04-13 13:29:03
|
Hi, today is the first time that I successfully invoke the espeak_Synth() and give the audio output immediatly. my words to be spoken is hard coded -- hello, I ordered my program to say "hello", but I found every time my own program, there is always attached with other words like this: hello eight hello C W hello slash my code comes as following: int rate = espeak_Initialize(AUDIO_OUTPUT, 0, data_path, espeakINITIALIZE_DONT_EXIT ); if( rate == -1 ) { printf("espeak_Initialize ERROR!\n"); } else { printf("espeak_Initialize returns %d \n",rate ); int size; char text[] = "hello"; size = strlen(text); espeak_Synth(text,size,0,POS_CHARACTER,0,synth_flags,NULL,NULL); espeak_Synchronize(); } please help me! |