[Freeswitch-dev] C SAY API
David Sugar
dsugar at tychosoft.com
Fri Dec 15 18:30:48 EST 2006
We have a system in Bayonne that does this that is called phrasebook,
and the recorded audio samples it uses are also under the GNU GPL.
Anthony Minessale wrote:
> Hi,
>
> 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);
> en->say("1000", SSG_ANY, SSM_PRONOUNCED, SST_MESSAGES, NULL, NULL, 0);
> switch_ivr_play_file(session, NULL, "/sounds/msgs.wav", NULL, NULL,
> NULL, 0);
>
>
> Thoughts?
>
> 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 66.250.68.194
> iax:guest at 66.250.68.194/888
> googletalk:freeswitch at gmail.com
> pstn:213-799-1400
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsugar.vcf
Type: text/x-vcard
Size: 174 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20061215/a78c89e6/attachment.vcf
More information about the Freeswitch-dev
mailing list