Coder Social home page Coder Social logo

zaf / asterisk-espeak Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 18.0 106 KB

Asterisk module that provides the "eSpeak" dialplan application. It allows you to use the eSpeak text to speech synthesizer. Works with asterisk 1.6 or newer.

Home Page: http://zaf.github.com/Asterisk-eSpeak/

License: GNU General Public License v2.0

C 84.45% Makefile 15.55%

asterisk-espeak's People

Contributors

crschmidt avatar risca avatar zaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asterisk-espeak's Issues

cant install

hello, im trying to setup the eSpeak module with eSpeak from yum repo on centos 6

[root@sip Asterisk-eSpeak]# make
gcc -pipe -fPIC -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DAST_MODULE_SELF_SYM=__internal_app_espeak_self -g -O2 -c -o app_espeak.o app_espeak.c
app_espeak.c:39:33: error: espeak-ng/speak_lib.h: No such file or directory
app_espeak.c:40:24: error: samplerate.h: No such file or directory
app_espeak.c:150: error: expected declaration specifiers or ‘...’ before ‘espeak_EVENT’
app_espeak.c: In function ‘synth_callback’:
app_espeak.c:153: error: ‘events’ undeclared (first use in this function)
app_espeak.c:153: error: (Each undeclared identifier is reported only once
app_espeak.c:153: error: for each function it appears in.)
app_espeak.c: In function ‘raw_resample’:
app_espeak.c:169: error: ‘SRC_DATA’ undeclared (first use in this function)
app_espeak.c:169: error: expected ‘;’ before ‘rate_change’
app_espeak.c:198: warning: implicit declaration of function ‘src_short_to_float_array’
app_espeak.c:204: error: ‘rate_change’ undeclared (first use in this function)
app_espeak.c:210: warning: implicit declaration of function ‘src_simple’
app_espeak.c:210: error: ‘SRC_SINC_FASTEST’ undeclared (first use in this function)
app_espeak.c:212: warning: implicit declaration of function ‘src_strerror’
app_espeak.c:212: warning: format ‘%s’ expects type ‘char *’, but argument 7 has type ‘int’
app_espeak.c:221: warning: implicit declaration of function ‘src_float_to_short_array’
app_espeak.c: In function ‘espeak_exec’:
app_espeak.c:247: error: ‘espeak_ERROR’ undeclared (first use in this function)
app_espeak.c:247: error: expected ‘;’ before ‘espk_error’
app_espeak.c:255: warning: missing initializer
app_espeak.c:255: warning: (near initialization for ‘args.text’)
app_espeak.c:315: warning: implicit declaration of function ‘espeak_Initialize’
app_espeak.c:315: error: ‘AUDIO_OUTPUT_SYNCHRONOUS’ undeclared (first use in this function)
app_espeak.c:319: warning: implicit declaration of function ‘espeak_SetSynthCallback’
app_espeak.c:320: warning: implicit declaration of function ‘espeak_SetVoiceByName’
app_espeak.c:320: error: ‘EE_OK’ undeclared (first use in this function)
app_espeak.c:324: warning: implicit declaration of function ‘espeak_SetParameter’
app_espeak.c:324: error: ‘espeakRATE’ undeclared (first use in this function)
app_espeak.c:328: error: ‘espeakVOLUME’ undeclared (first use in this function)
app_espeak.c:332: error: ‘espeakWORDGAP’ undeclared (first use in this function)
app_espeak.c:336: error: ‘espeakPITCH’ undeclared (first use in this function)
app_espeak.c:350: error: ‘espk_error’ undeclared (first use in this function)
app_espeak.c:350: warning: implicit declaration of function ‘espeak_Synth’
app_espeak.c:350: error: ‘POS_CHARACTER’ undeclared (first use in this function)
app_espeak.c:351: error: ‘espeakCHARS_AUTO’ undeclared (first use in this function)
app_espeak.c:352: warning: implicit declaration of function ‘espeak_Terminate’
make: *** [app_espeak.o] Error 1

Asterisk unsuable after first run

My Asterisk won't response for a while after run the TTS for the first time. Also the TTS won't work anymore.

-- Executing [5999@sip:2] eSpeak("IAX2/upstream-iax-peer-3503", ""This is a simple espeak test in english.",any") in new stack
[2018-12-27 00:42:33] WARNING[1968]: channel.c:1124 __ast_queue_frame: Exceptionally long voice queue length queuing to IAX2/upstream-iax-peer-3503
[...]
[2018-12-27 00:45:43] WARNING[1967]: chan_iax2.c:3571 __attempt_transmit: Max retries exceeded to host 172.16.0.2 on IAX2/upstream-iax-peer-3503 (type = 6, subclass = 11, ts=160009, seqno=26)
[2018-12-27 00:45:51] WARNING[1973]: chan_iax2.c:3571 __attempt_transmit: Max retries exceeded to host 172.16.0.2 on IAX2/upstream-iax-peer-3503 (type = 6, subclass = 2, ts=168011, seqno=27)
[2018-12-27 00:45:53] WARNING[1971]: chan_iax2.c:3571 __attempt_transmit: Max retries exceeded to host 172.16.0.2 on IAX2/upstream-iax-peer-3503 (type = 6, subclass = 11, ts=170009, seqno=28)

I just got a lot of this Warnings in my log.

Compiled agains Asteriks 16.1.0 on Ubuntu 16.04

Best,
Pakon

Please make formal release

Hi,

Last formal release was in 2011, and I notice some commits since then.

Please consider make a formal release.

Failed to set capind

I've tried by installing Asterisk 13 on Debian 9 these packages: asterisk asterisk-espeak
But when just diaplan runs:
same => n,Espeak("deje su mensaje",any,es)
then Asterisk console shows:
[Jul 31 14:17:14] ERROR[13903][C-00000000]: app_espeak.c:352 espeak_exec: eSpeak: Failed to set capind=0. Same behaviour

doesn't work: ERROR[13977][C-00000000] app_espeak.c: eSpeak: Failed to set capind=0.

After that the call is terminated.

[Sep 1 02:03:52] DEBUG[30819][C-00000000] pbx.c: Launching 'eSpeak'
[Sep 1 02:03:52] VERBOSE[30819][C-00000000] pbx.c: Executing [31182796546@users:2] eSpeak("SIP/31182796546-00000000", ""Hallo! Hier is niets te zien.",any") in new stack
[Sep 1 02:03:52] DEBUG[30819][C-00000000] app_espeak.c: eSpeak:
[Sep 1 02:03:52] ERROR[30819][C-00000000] app_espeak.c: eSpeak: Failed to set capind=0.

[general]
usecache=no
cachedir=/var/lib/asterisk/espeakcache

[voice]
voice=af

drwxrwxr-x 2 asterisk asterisk 4096 Sep 1 01:47 /var/lib/asterisk/espeakcache

Module load error src_short_to_float_array

With asterisk-18.10 I get following error when loading the app_espeak.so module from zaf-Asterisk-eSpeak-7431b8d

[2022-02-15 14:11:22] ERROR[1698364]: loader.c:283 module_load_error: Error loading module 'app_espeak': /usr/lib/asterisk/modules/app_espeak.so: undefined symbol: src_short_to_float_array

Daniel

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.