VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
csejananim at gmail.com Guest
|
Posted: Mon Mar 09, 2015 5:54 am Post subject: [asterisk-users] Regarding Text To Speech conversion |
|
|
The Error Which I face I have attached.I need a clarification of Why I face this error and how to overcome this.
Anybody know Please help...... |
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Mon Mar 09, 2015 6:12 am Post subject: [asterisk-users] Regarding Text To Speech conversion |
|
|
On Monday 09 Mar 2015, janani m wrote:
Quote: | The Error Which I face I have attached.
I need a clarification of Why I face this error and how to overcome this.
Anybody know Please help......
|
That's a very common error and what it means is, the AGI script
"/var/lib/asterisk/agi-bin/googletts.agi" either has an incorrect #! line, or
needs chmod +x run on it.
What do you get if you run
# ls -l /var/lib/asterisk/agi-bin/googletts.agi
and
# head -n1 /var/lib/asterisk/agi-bin/googletts.agi
respectively?
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Mon Mar 09, 2015 10:33 am Post subject: [asterisk-users] Regarding Text To Speech conversion |
|
|
Quote: | On Monday 09 Mar 2015, janani m wrote:
|
Quote: | Quote: | The Error Which I face I have attached.
|
|
Please do not attach pictures. Please cut and past text.
On Mon, 9 Mar 2015, A J Stiles wrote:
Quote: | That's a very common error and what it means is, the AGI script
"/var/lib/asterisk/agi-bin/googletts.agi" either has an incorrect #!
line, or needs chmod +x run on it.
What do you get if you run
# ls -l /var/lib/asterisk/agi-bin/googletts.agi
and
# head -n1 /var/lib/asterisk/agi-bin/googletts.agi
respectively?
|
Another possibility if Windows boxes have been involved in
downloading/extracting/copying the script -- incorrect line endings.
What does:
od -c /var/lib/asterisk/agi-bin/googletts.agi | head --lines=2
look like. Any '\r \n' (Windows line ending) where '\n' (Unix line ending)
should be?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
csejananim at gmail.com Guest
|
Posted: Tue Mar 10, 2015 2:29 am Post subject: [asterisk-users] Regarding Text To Speech conversion |
|
|
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@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@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...... |
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Tue Mar 10, 2015 4:36 am Post subject: [asterisk-users] Regarding Text To Speech conversion |
|
|
On Tuesday 10 Mar 2015, janani m wrote:
Quote: | 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]
Quote: | 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 .
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
bryanburroughs at char... Guest
|
Posted: Tue Mar 10, 2015 5:35 am Post subject: [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:
Quote: | Quote: | On Tuesday 10 Mar 2015, janani m wrote:
Quote: | 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]
Quote: | 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.
| |
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|