<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The CLI script has come in handy for me in the past. If this doesn't
work, the AGI script will likely not work.<br>
<br>
If run from a remote server, dump the TTS to a wav file:<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<title></title>
<meta name="generator" content="LibreOffice 4.2.8.2 (Linux)">
<style type="text/css">
<!--
@page { margin: 0.79in }
p { margin-bottom: 0.08in; direction: ltr; color: #000000; widows: 2; orphans: 2 }
p.western { font-family: "Arial", sans-serif; font-size: 10pt; so-language: en-US }
p.cjk { font-family: "Times New Roman", serif; font-size: 10pt; so-language: zh-CN }
p.ctl { font-family: "Arial", sans-serif; font-size: 12pt; so-language: ar-SA }
a:visited { color: #800080 }
a.western:visited { so-language: en-US }
a.cjk:visited { so-language: zh-CN }
a.ctl:visited { so-language: hi-IN }
a:link { color: #0000ff }
-->
</style>googletts-cli.pl -o hello.wav -l en -t "Hello world"<br>
<br>
<div class="moz-cite-prefix">On 03/10/2015 04:36 AM, A J Stiles
wrote:<br>
</div>
<blockquote
cite="mid:201503100936.09295.asterisk_list@earthshod.co.uk"
type="cite">
<pre wrap="">On Tuesday 10 Mar 2015, janani m wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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,
</pre>
</blockquote>
<pre wrap="">
[stuff deleted]
</pre>
<blockquote type="cite">
<pre wrap="">How could I solve this error??
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
</blockquote>
<br>
</body>
</html>