Giter Club home page Giter Club logo

Comments (13)

zaf avatar zaf commented on August 16, 2024

Make sure that the user that owns the asterisk process has the right to execute the script.

from asterisk-googletts.

acheraime avatar acheraime commented on August 16, 2024

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.

zaf avatar zaf commented on August 16, 2024

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.

sebastian-rivas avatar sebastian-rivas commented on August 16, 2024

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.

zaf avatar zaf commented on August 16, 2024

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.

sebastian-rivas avatar sebastian-rivas commented on August 16, 2024

I checked that several times, and as a service asterisk also run as root user (in my configuration).

from asterisk-googletts.

zaf avatar zaf commented on August 16, 2024

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.

sebastian-rivas avatar sebastian-rivas commented on August 16, 2024

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.

zaf avatar zaf commented on August 16, 2024

I suppose binaries were installed in different places? $PATH differs? either-way good to know its now working.

from asterisk-googletts.

izee avatar izee commented on August 16, 2024

I have the same problem.

from asterisk-googletts.

izee avatar izee commented on August 16, 2024

@zaf

from asterisk-googletts.

sebastian-rivas avatar sebastian-rivas commented on August 16, 2024

@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.

izee avatar izee commented on August 16, 2024

@sebastian-rivas Thank you,I got the solution: #9

from asterisk-googletts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.