<span class="gmail_quote"></span>vset = LoadVoiceSet("antony","en");<br><br>do the operationg based upon this voiceset<br><br>FreeVoiceSet(vset);<br><br>This will be handy to handle mutliple language, multiple user customised voice prompts.
<br>I'm sure this is lacking in the existing pbx structures.<br><br>The sound directory looks like,<br><br>sound<br> |<br> |---> sequence<br> | |<br> | |----> language<br> | |<br> | |-----> en
<br> | | |----> voicemail.txt<br> | |-----> tamil<br> | |----> voicemail.txt<br> | <br> |->default<br> | | <br> | |-->language
<br> | | |---> en<br> | | | |----> digits<br> | | | | |-------> 0 ... 9 .(format)<br> | | | |<br> | | | |----> Words<br> | | | |------->
you.format (you.wav, you.mp3)<br> | | | |-------> have.format<br> | | | ......... all possibles<br> | | |<br> | | |---> tamil<br> | (same structure as above)<br> |
<br>
|->antony<br> (same as above)<br><br><br>Sequence Directory:<br><br>It explains you what is the framing sequence of the file you want for the application. Sequence of the voice file is not same for all languages that will vary, so there is a definite need of this sequence(name it with a right word) so that it will be generic to all applications.
<br><br>eg.,<br><br>[voicemail.txt] (forvoicemail app)<br>welcome=welcome to freeswitch voicemail system<br><br>in case if I use tamil language<br>eg.,<br>[voicemail.txt]<br>welcome=freeswitch kuralanjal amaippirkku varaverkirathu
<br><br>I'm talking about this on each call basis, I mean it can take english call, tamil call, french call .... simultaneously.<br><br>Just my 2 cents.<br><br>Thanks.<br><br>Regards,<br>Kannaiyan<div><span class="e" id="q_10f8e17421984f0c_1">
<br><br><br>On 12/17/06, Nikolay Kolev <
<a href="mailto:me@nikolay.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">me@nikolay.com</a>> wrote:<br>> <br>> <br>> <br>> <br>> The idea is great! <br>> <br>> <br>
> <br>> OpenPBX seems to have one something similar, but it's unfortunately GPL.
<br>> <br>> <br>> <br>> BTW, SSM_ITTERATED is misspelled. What would be the difference between<br>> SSM_ITERATED and SSM_PRONOUNCED? <br>> <br>> <br>> <br>> Nikolay Kolev <br>> <br>> ________________________________
<br>> <br>> <br>> From: Anthony Minessale [mailto:<a href="mailto:anthmct@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anthmct@yahoo.com</a>] <br>> Sent: Friday, December 15, 2006 3:09 PM
<br>> To: <a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
freeswitch-dev@lists.freeswitch.org</a>;<br>> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: [Freeswitch-dev] C SAY API <br>> <br>> <br>>
<br>> <br>> <br>> Hi, <br>> <br>> <br>> <br>> <br>> <br>> I'm working on a muiti-lingual say api for ivr programmers to be able <br>> <br>> <br>> to generate audio for saying numbers, counting items or expressing amounts
<br>> of things such as currency. I'd like some input from anyone who has some<br>> ideas <br>> <br>> <br>> on how to make sure we cover all bases. <br>> <br>> <br>> <br>> <br>> <br>> The basic idea is that we will have an api where each new
<br>> language/implementation would provide it's own version of this function. <br>> <br>> <br>> <br>> <br>> <br>> switch_status_t say(char *tosay,<br>> switch_say_gender_t gender,
<br>> switch_say_type_t type,<br>> switch_say_method_t method,<br>> switch_input_callback_function_t<br>> dtmf_callback,<br>> void *buf,
<br>> uint32_t buflen); <br>> <br>> <br>> The enums are described in<br>> <a href="http://www.freeswitch.org/eg/say_api.c" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.freeswitch.org/eg/say_api.c</a> <br>> <br>>
<br>> <br>> <br>> <br>> the idea would be something like <br>> <br>> <br>> <br>> <br>> <br>> switch_say_handle_t *en; <br>> <br>> <br>> <br>> <br>> <br>> en = switch_say_load("en");
<br>> <br>> <br>> <br>> <br>> <br>> switch_ivr_play_file(session, NULL, "/sounds/youhave.wav", NULL, NULL, NULL,<br>> 0); <br>> <br>> <br>> en->say("1000", SSG_ANY, SSM_PRONOUNCED, SST_MESSAGES, NULL, NULL, 0);
<br>> <br>> <br>> switch_ivr_play_file(session, NULL, "/sounds/msgs.wav", NULL, NULL, NULL,<br>> 0); <br>> <br>> <br>> <br>> <br>> <br>> <br>> Thoughts? <br>> <br>>
<br>> <br>> <br>> <br>> Anthony Minessale II<br>> <br>> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.freeswitch.org/
</a><br>> ClueCon <a href="http://www.cluecon.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.cluecon.com/
</a><br>> <br>> AIM: anthm<br>> <a href="mailto:MSN:anthony_minessale@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MSN:anthony_minessale@hotmail.com</a><br>> JABBER:
<a href="mailto:anthony.minessale@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anthony.minessale@gmail.com
</a><br>> IRC: <a href="http://irc.freenode.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">irc.freenode.net</a> #freeswitch <br>> <br>> <br>> <br>> FreeSWITCH Developer Conference
<br>> <a href="mailto:sip:888@66.250.68.194" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip:888@66.250.68.194
</a><br>> iax:guest@66.250.68.194/888<br>> <a href="mailto:googletalk:freeswitch@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">googletalk:freeswitch@gmail.com</a><br>> pstn:213-799-1400
<br>> <br>> <br>> __________________________________________________
<br>> Do You Yahoo!?<br>> Tired of spam? Yahoo! Mail has the best spam protection around <br>> <a href="http://mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.yahoo.com
</a> <br></span></div>> _______________________________________________
<br>> Freeswitch-users mailing list<br>> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Freeswitch-users@lists.freeswitch.org</a><br>>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<br>> <a href="http://www.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.freeswitch.org</a><br>> <br>> <br>> <br>