[Freeswitch-dev] [Freeswitch-users] C SAY API

Matt Porter mporter at voice3g.com
Sun Dec 17 01:00:40 EST 2006

You are really going to need some feedback about this one.
Its been a terribly long time, and i have forgotten most of the issues we faced.. 
but when we ported a unified messaging product many years ago to some of the eastern languages.  It was almost impossible to abstract this concept out.

Abstracting something like speaking a URL, Phone number, Numeric string is perfectly attainable...
but constructing a useful working sentence is much more complicated..

given "You have 1000 messages", in english.

may need to say "1000 messages you have", before it makes any sense in Chinese or Piglatin or whatever.

In which case, you end up having to write seperate IVR code for each language anyway.  and having a "multi-lingular say API" is of extremely limited usefulness.

I am not bilingual.. heck i never did any good in English class either.
Im not trying to throw poo on the idea..  just skeptical about how useful this may turn out, for anything but a handful of commonly constructed languages.

  ----- Original Message ----- 
  From: Nikolay Kolev 
  To: freeswitch-dev at lists.freeswitch.org ; freeswitch-users at lists.freeswitch.org 
  Sent: Saturday, December 16, 2006 6:47 PM
  Subject: Re: [Freeswitch-users] [Freeswitch-dev] C SAY API

  The idea is great!


  OpenPBX seems to have one something similar, but it's unfortunately GPL.


  BTW, SSM_ITTERATED is misspelled. What would be the difference between SSM_ITERATED and SSM_PRONOUNCED?


  Nikolay Kolev


  From: Anthony Minessale [mailto:anthmct at yahoo.com] 
  Sent: Friday, December 15, 2006 3:09 PM
  To: freeswitch-dev at lists.freeswitch.org; freeswitch-users at lists.freeswitch.org
  Subject: [Freeswitch-dev] C SAY API




  I'm working on a muiti-lingual say api for ivr programmers to be able 

  to generate audio for saying numbers, counting items or expressing amounts of things such as currency.  I'd like some input from anyone who has some ideas

  on how to make sure we cover all bases.


  The basic idea is that we will have an api where each new language/implementation would provide it's own version of this function.


  switch_status_t say(char *tosay,
                      switch_say_gender_t gender,
                      switch_say_type_t type,
                      switch_say_method_t method,
                      switch_input_callback_function_t dtmf_callback,
                      void *buf,
                      uint32_t buflen);

  The enums are described in http://www.freeswitch.org/eg/say_api.c


  the idea would be something like 


  switch_say_handle_t *en;


  en = switch_say_load("en");


  switch_ivr_play_file(session, NULL, "/sounds/youhave.wav", NULL, NULL, NULL, 0);


  switch_ivr_play_file(session, NULL, "/sounds/msgs.wav", NULL, NULL, NULL, 0);




  Anthony Minessale II

  FreeSWITCH http://www.freeswitch.org/
  ClueCon http://www.cluecon.com/

  AIM: anthm
  MSN:anthony_minessale at hotmail.com
  JABBER:anthony.minessale at gmail.com
  IRC: irc.freenode.net #freeswitch

  FreeSWITCH Developer Conference
  sip:888 at
  iax:guest at
  googletalk:freeswitch at gmail.com

  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around 


  Freeswitch-users mailing list
  Freeswitch-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20061217/3456d279/attachment-0001.html 

More information about the Freeswitch-dev mailing list