[Freeswitch-users] how to say numbers in java script

vidhya sagar dixit vids.cs at gmail.com
Tue Aug 19 09:11:47 PDT 2008


Hi ,

I am trying to play balance of an account. how to do that  in java script
without  using tts.

var x= 100;

it should say 100



i have tried to use following example but didn't work form me.

function sayphrase(phrase, args)
{
    console_log("sayphrase: phrase=[" + phrase + "] args=[" + args + "]\n");
    var rtn = session.execute("phrase", phrase + "," + args);
    return(rtn);
}

if (session.ready()) {
    session.answer();
    session.execute("sleep","1000");
    sayphrase("msgcount", "10");
    session.hangup();
}



can anyone tell me the correct syntax please.






-- 
Thanks and Regards

Vidhya Sagar Dixit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080819/4bdb4fae/attachment-0002.html 


More information about the FreeSWITCH-users mailing list