|
From: <hgn...@ya...> - 2007-06-20 11:57:29
|
> What exactly do you mean by:
> "but "core dumped" when espeak_SetUriCallback."
I mean an "core dumped" ERROR occured when I run the
following code:
#include <speak_lib.h>
#include <string.h>
int callback(int type,
const char* uri,
const char* base) {
printf("type:%d, uri:%s, base:%s\n", type, uri,
base);
return 1;
}
int main() {
espeak_Initialize(AUDIO_OUTPUT_RETRIEVAL, 0, NULL);
espeak_SetUriCallback(callback);
char *t2 = "<speak><audio src=\"here\">hello
world</audio></speak>.";
espeak_Synth(t2, strlen(t2) + 1, 0, POS_CHARACTER,
0, espeakSSML, 0, NULL);
espeak_Synchronize();
}
----- This is the output -----
type:1, uri:here, base:(null)
(core dumped)
___________________________________________________________
抢注雅虎免费邮箱3.5G容量,20M附件!
http://cn.mail.yahoo.com
|