[asterisk-users] Fw: app_swift issue

covici at ccs.covici.com covici at ccs.covici.com
Wed Aug 26 15:08:45 CDT 2009


You could just use the dialplan and a small agi or something to create
the wav file and then play the file -- at least this is what I did.

Todd Fulton <todd.fulton at yahoo.com> wrote:

> Hi Shakeel,
> 
> I had the same problem building app_swift (1.6..) myself and searched the web far-and-wide for a solution.  I eventually contacted Darren Sessions -- who was maintaining that plug-in -- about a month ago.  He was involved in another project and said he might be able get to it after a few weeks.  But, since then, his website http://www.darrensessions.com/ has gone out of comission.
> 
> I think we may be on our own on this one!
> 
> 
> Todd
> 
> 
> 
> ----- Forwarded Message ----
> From: Todd Fulton <todd.fulton at yahoo.com>
> To: Todd Fulton <todd.fulton at yahoo.com>
> Sent: Wednesday, August 26, 2009 10:59:34 AM
> Subject: [asterisk-users] app_swift issue
> 
> 
> Hello 
> 
> I have installed cepstral .... It works woderfull using an agi script but 
> ..... 
> when i try to use Swift("say this") is Dial plan .... I get the error 
> 
> [Aug 26 12:30:18] WARNING[7420]: pbx.c:3167 pbx_extension_helper: No 
> application 'Swift' for extension (actdemo, 123, 2) 
> 
> 
> 
> Now i come to know to install app_swift 
> 
> 
> Here is the issue... 
> 
> when i try to execute make command on app_swift-1.6.2 
> 
> I get the following error 
> 
> [root at asterisk app_swift-1.6.2]# make 
> gcc -I/opt/swift/include -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC   -c -o 
> app_swift.o app_swift.c 
> app_swift.c: In function ‘engine’: 
> app_swift.c:402: error: incompatible types in assignment 
> app_swift.c: In function ‘load_module’: 
> app_swift.c:546: error: ‘AST_MODULE’ undeclared (first use in this function) 
> app_swift.c:546: error: (Each undeclared identifier is reported only once 
> app_swift.c:546: error: for each function it appears in.) 
> make: *** [app_swift.o] Error 1 
> 
> 
> 
> Now i am thinking to edit app_swift.c but AST_MODULE is not defined in 
> app_swift.c 
> 
> i commented this line ""//#define AST_MODULE "app_swift"" 
> 
> but in vain .... Please help 
> 
> static int load_module(void) 
> { 
> int res; 
> const char *t = NULL; 
> struct ast_config *cfg; 
> struct ast_flags config_flags = { 0 }; 
> 
> // Set defaults 
> cfg_buffer_size = 65535; 
> cfg_goto_exten = 0; 
> strncpy(cfg_voice, "David-8kHz", sizeof(cfg_voice)); 
> 
> res = ast_register_application(app, engine, synopsis, descrip); 
> cfg = ast_config_load(SWIFT_CONFIG_FILE, config_flags); 
> 
> if (cfg) { 
> if ((t = ast_variable_retrieve(cfg, "general", "buffer_size"))) { 
> cfg_buffer_size = atoi(t); 
> ast_log(LOG_DEBUG, "Config buffer_size is %d\n", 
> cfg_buffer_size); 
> } 
> if ((t = ast_variable_retrieve(cfg, "general", "goto_exten"))) { 
> if (!strcmp(t, "yes")) 
> cfg_goto_exten = 1; 
> else 
> cfg_goto_exten = 0; 
> ast_log(LOG_DEBUG, "Config goto_exten is %d\n", cfg_goto_exten); 
> } 
> 
> ast_config_destroy(cfg); 
> 
> } else { 
> ast_log(LOG_NOTICE, "Failed to load config\n"); 
> } 
> 
> return res; 
> } 
> 
> char *description(void) 
> { 
> return tdesc; 
> } 
> 
> 
> 
> #define AST_MODULE "app_swift" 
> 
> AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Cepstral Swift TTS 
> Application"); 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> Best Regards
> Shakeel Abbas
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici at ccs.covici.com



More information about the asterisk-users mailing list