Thank You . But now i get solved with that error since I had some mistakes in installing googletts.agi Now when calling from my softphone i have written dialplan with an AGI script to convert from text to speech. It get executed without error but there is no sound getting played. My output, == Using SIP RTP CoS mark 5 -- Executing [1310 at Client-dial-Menu:1] AGI("SIP/1320-00000188", "googletts.agi,"Say something in English, when done press the pound key.",en") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi <SIP/1320-00000188>AGI Tx >> agi_request: googletts.agi <SIP/1320-00000188>AGI Tx >> agi_channel: SIP/1320-00000188 <SIP/1320-00000188>AGI Tx >> agi_language: en <SIP/1320-00000188>AGI Tx >> agi_type: SIP <SIP/1320-00000188>AGI Tx >> agi_uniqueid: 1425971947.392 <SIP/1320-00000188>AGI Tx >> agi_version: 11.13.1 <SIP/1320-00000188>AGI Tx >> agi_callerid: 1320 <SIP/1320-00000188>AGI Tx >> agi_calleridname: Janani <SIP/1320-00000188>AGI Tx >> agi_callingpres: 0 <SIP/1320-00000188>AGI Tx >> agi_callingani2: 0 <SIP/1320-00000188>AGI Tx >> agi_callington: 0 <SIP/1320-00000188>AGI Tx >> agi_callingtns: 0 <SIP/1320-00000188>AGI Tx >> agi_dnid: unknown <SIP/1320-00000188>AGI Tx >> agi_rdnis: unknown <SIP/1320-00000188>AGI Tx >> agi_context: Client-dial-Menu <SIP/1320-00000188>AGI Tx >> agi_extension: 1310 <SIP/1320-00000188>AGI Tx >> agi_priority: 1 <SIP/1320-00000188>AGI Tx >> agi_enhanced: 0.0 <SIP/1320-00000188>AGI Tx >> agi_accountcode: <SIP/1320-00000188>AGI Tx >> agi_threadid: 139811462272768 <SIP/1320-00000188>AGI Tx >> agi_arg_1: Say something in English, when done press the pound key. <SIP/1320-00000188>AGI Tx >> agi_arg_2: en <SIP/1320-00000188>AGI Tx >> <SIP/1320-00000188>AGI Rx << CHANNEL STATUS <SIP/1320-00000188>AGI Tx >> 200 result=6 <SIP/1320-00000188>AGI Rx << GET FULL VARIABLE ${CHANNEL(audionativeformat)} <SIP/1320-00000188>AGI Tx >> 200 result=1 ((gsm)) -- <SIP/1320-00000188>AGI Script googletts.agi completed, returning 0 -- Executing [1310 at Client-dial-Menu:2] Hangup("SIP/1320-00000188", "") in new stack == Spawn extension (Client-dial-Menu, 1310, 2) exited non-zero on 'SIP/1320-00000188' How could I solve this error?? Thanks in Advance...... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150310/a5dc4013/attachment.html>
On Tuesday 10 Mar 2015, janani m wrote:> Thank You . > > But now i get solved with that error since I had some mistakes in > installing googletts.agi > > Now when calling from my softphone i have written dialplan with an AGI > script to convert from text to speech. > > It get executed without error but there is no sound getting played. > > My output,[stuff deleted]> How could I solve this error??Plain old-fashioned hacking! First, try running the AGI script manually. Do a trace on it, so you can see how parameters get passed to the script; then middle-click-paste the data straight into the terminal. Make sure it really does what you're expecting it to do. If your asterisk runs as a non-privileged user, make sure that it works even when the script is invoked as that user -- if not, check and double-check file and device permissions. In the worst case, you will have to modify your AGI script by inserting statements at strategic points to write to syslog, or a file somewhere under /tmp/ so you can get an idea what is happening. -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .
Bryan Burroughs
2015-Mar-10 10:34 UTC
[asterisk-users] Regarding Text To Speech conversion
The CLI script has come in handy for me in the past. If this doesn't work, the AGI script will likely not work. If run from a remote server, dump the TTS to a wav file: googletts-cli.pl -o hello.wav -l en -t "Hello world" On 03/10/2015 04:36 AM, A J Stiles wrote:> On Tuesday 10 Mar 2015, janani m wrote: >> Thank You . >> >> But now i get solved with that error since I had some mistakes in >> installing googletts.agi >> >> Now when calling from my softphone i have written dialplan with an AGI >> script to convert from text to speech. >> >> It get executed without error but there is no sound getting played. >> >> My output, > [stuff deleted] > >> How could I solve this error?? > Plain old-fashioned hacking! > > First, try running the AGI script manually. Do a trace on it, so you can see > how parameters get passed to the script; then middle-click-paste the data > straight into the terminal. Make sure it really does what you're expecting it > to do. If your asterisk runs as a non-privileged user, make sure that it > works even when the script is invoked as that user -- if not, check and > double-check file and device permissions. > > In the worst case, you will have to modify your AGI script by inserting > statements at strategic points to write to syslog, or a file somewhere under > /tmp/ so you can get an idea what is happening. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150310/2bb53a72/attachment.html>