|
From: <hgn...@ya...> - 2007-06-19 02:48:13
|
I changed to AUDIO_OUTPUT_RETRIEVAL. The function
espeak_SetSynthCallback works, but "core dumped" when
espeak_SetUriCallback.
--- hgn...@ya....cn写道:
> Hi,
>
> I am trying to use the function
> espeak_SetUriCallback.
> I don't know how to use. The following codes don't
> work. The function callback hasn't been called.
> Count
> any one help? Thank you!
>
> ----- 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_PLAYBACK, 0, NULL);
> espeak_SetUriCallback(callback);
> char *text = "<speak><audio>hello
> world</audio></speak>";
> espeak_Synth(text, strlen(text) + 1, 0,
> POS_CHARACTER, 0, espeakSSML, 0, NULL);
> espeak_Synchronize();
> }
> -----
>
> Cameron Wong
>
>
>
>
___________________________________________________________
>
> 抢注雅虎免费邮箱3.5G容量,20M附件!
> http://cn.mail.yahoo.com
>
> >
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
> express and take
> control of your XML. No limits. Just data. Click to
> get it now.
> http://sourceforge.net/powerbar/db2/>
_______________________________________________
> Espeak-general mailing list
> Esp...@li...
>
https://lists.sourceforge.net/lists/listinfo/espeak-general
>
___________________________________________________________
抢注雅虎免费邮箱3.5G容量,20M附件!
http://cn.mail.yahoo.com
|