Comments (13)
Make sure that the user that owns the asterisk process has the right to execute the script.
from asterisk-googletts.
Sure the user has right to execute the script.
On Sun, Feb 5, 2012 at 12:29 PM, Lefteris Zafiris <
[email protected]
wrote:
Make sure that the user that owns the asterisk process has the right to
execute the script.
Reply to this email directly or view it on GitHub:
#2 (comment)
**
from asterisk-googletts.
I cannot reproduce the bug neither on centos or debian machines starting asterisk via safe_asterisk or distributors own init scripts.
Can you please provide some more info, asterisk console output or even enabling debbuging messages in the agi script (by setting $debug = 1; )
from asterisk-googletts.
I'm having the same issue. When I run asterisk in foreground I have this output:
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- /var/lib/asterisk/agi-bin/googletts.agi: Found sox version 14 in: /usr/bin/sox, mpg123 in: /usr/local/bin/mpg123
-- /var/lib/asterisk/agi-bin/googletts.agi: Command returned: 200 result=6
-- /var/lib/asterisk/agi-bin/googletts.agi: Command returned: 200 result=1 ((ulaw))
-- /var/lib/asterisk/agi-bin/googletts.agi: Text passed for synthesis: Google text to speech for Asterisk.
-- /var/lib/asterisk/agi-bin/googletts.agi: Language: en, Interrupt keys: , Sample rate: 8000
-- /var/lib/asterisk/agi-bin/googletts.agi: Speed: 1, Caching: 1, Cache dir: /tmp
-- /var/lib/asterisk/agi-bin/googletts.agi: File already in cache.
-- Playing '/tmp/66543be195cb5de8722a9fa1be8b3cfa' (escape_digits=) (sample_offset 0)
-- /var/lib/asterisk/agi-bin/googletts.agi: Command returned: 200 result=0 endpos=21600
-- <SIP/didlogic-00000000>AGI Script /var/lib/asterisk/agi-bin/googletts.agi completed, returning 0
When I run asterisk as a service, I have this:
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- <SIP/didlogic-00000000>AGI Script /var/lib/asterisk/agi-bin/googletts.agi completed, returning 0
from asterisk-googletts.
As noted previously check file/dir permissions and ownership, starting asterisk via command line (asterisk -c) forces it to run under user root, while when using an init script it is probably running under a different user (usually user asterisk)
from asterisk-googletts.
I checked that several times, and as a service asterisk also run as root user (in my configuration).
from asterisk-googletts.
Get the debug output of the script, either via the tty that asterisk was started (usually tty9) or via the logger and check whats going on.
Also check for stuff like SELinux etc etc
from asterisk-googletts.
Finally I reinstall mpg123 (using yum, the first time I download the package and use rpm) and now It works.
I'm not sure why It works now and not previously, and why always works when asterisk was running in foreground. Maybe is more a bug in asterisk than in this script.
Anyway thanks @zaf
from asterisk-googletts.
I suppose binaries were installed in different places? $PATH differs? either-way good to know its now working.
from asterisk-googletts.
I have the same problem.
from asterisk-googletts.
from asterisk-googletts.
@izee Maybe you can try and reinstall mpg123.
As I said, I reinstalled it using a yum repo (not rpm package as the first time), and tts works.
from asterisk-googletts.
@sebastian-rivas Thank you,I got the solution: #9
from asterisk-googletts.
Related Issues (20)
- Error: googletts.agi: Failed to fetch file. HOT 2
- 403 Forbidden HOT 1
- Unexpected result using googletts HOT 2
- Not working now( HOT 1
- Cannot locate installed sox or mpg123 HOT 13
- Entire call (5 seconds) is silent then disconnects HOT 7
- NVM!
- Shouldn't answer call explicitly HOT 3
- symbol lookup error: undefined symbol: Perl_Istack_sp_ptr HOT 1
- use read cmd instead of playback HOT 2
- Is there a limit now per day? Ty HOT 2
- Thank you for the token script
- googletts.agi not responding, returning 0 HOT 2
- Googletts returning -1 HOT 1
- Intkey digit number HOT 5
- New voices HOT 4
- Wavenet support
- SSML Support
- How to change voice to female
- Allow use of Playback with noanswer to not supervise
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asterisk-googletts.