Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] help with Cepstral 6 and Asterisk 11


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
brandoncoale at sbcglo...
Guest





PostPosted: Wed Jan 08, 2014 9:11 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

Hello,

I recently purchased the Cepstral 6 text-to-speech engine (swift), and
am now wondering if I should have bought something else. I would like
to use Cepstral text to speech like some people use the Festival() or
Flite() applications. For example, when I do a "core show application
flite" at the CLI, flite is available to me:

localhost*CLI> core show application flite
-= Info about application 'Flite' =-
[Synopsis]
Say text to the user, using Flite TTS engine
[Description]
Flite(text[,intkeys]): This will invoke the Flite TTS engine, send a
text string,
get back the resulting waveform and play it to the user, allowing any
given interrupt
keys to immediately terminate and return the value, or 'any' to allow
any number back.


I would like to do the same thing with Cepstral, and am trying to use
app_swift available from:

https://github.com/darrensessions/app_swift

However, I am not able to get app_swift to compile. I am running
Asterisk 11.6.0 and CentOS 6.4 64-bit.

I am wondering if anyone else out there has been able to get app_swift
working with Asterisk 11 and could share any tricks they used to get it
installed?

Brandon

--
_____________________________________________________________________
-- 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-03 at jeremyk...
Guest





PostPosted: Thu Jan 09, 2014 12:13 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

On 1/8/2014 9:12 PM, Brandon Coale wrote:
Quote:
However, I am not able to get app_swift to compile. I am running
Asterisk 11.6.0 and CentOS 6.4 64-bit.

I am wondering if anyone else out there has been able to get app_swift
working with Asterisk 11 and could share any tricks they used to get it
installed?

can you pastie your configure and make ?

I don't have Cepstral6 but did submit tweaks to the code that should
have made it Cepstral6 compatible.

Also since you recently spent money with Cepstral, they'll help you.
They've got at least one guy who understands the app_swift code and was
working on forking it as an official version.

--

Jeremy Kister
http://jeremy.kister.net./


--
_____________________________________________________________________
-- 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
brandoncoale at sbcglo...
Guest





PostPosted: Thu Jan 09, 2014 1:07 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

Jeremy,
 
Thanks very much.  I admit I am new to compiling software on Linux.  I am not sure where I would grab the configure?  By make I believe you mean the Makefile that I downloaded from https://github.com/darrensessions/app_swift?
 
I went ahead and opened a support ticket with Cepstral, so we can wait until I hear back from them if you want.  If we come up with a solution, I will write back with what they come up with.
 
Thanks again,
Brandon


----- Original Message -----
From: Jeremy Kister <asterisk-03@jeremykister.com>
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com>
Cc:
Sent: Thursday, January 9, 2014 12:12 PM
Subject: Re: [asterisk-users] help with Cepstral 6 and Asterisk 11

On 1/8/2014 9:12 PM, Brandon Coale wrote:
Quote:
However, I am not able to get app_swift to compile.  I am running
Asterisk 11.6.0 and CentOS 6.4 64-bit.

I am wondering if anyone else out there has been able to get app_swift
working with Asterisk 11 and could share any tricks they used to get it
installed?

can you pastie your configure and make ?

I don't have Cepstral6 but did submit tweaks to the code that should have made it Cepstral6 compatible.

Also since you recently spent money with Cepstral, they'll help you. They've got at least one guy who understands the app_swift code and was working on forking it as an official version.

--
Jeremy Kister
http://jeremy.kister.net./


-- _____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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
brandoncoale at sbcglo...
Guest





PostPosted: Thu Jan 09, 2014 9:46 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

On 1/9/2014 12:12 PM, Jeremy Kister wrote:
Quote:
On 1/8/2014 9:12 PM, Brandon Coale wrote:
Quote:
However, I am not able to get app_swift to compile. I am running
Asterisk 11.6.0 and CentOS 6.4 64-bit.

I am wondering if anyone else out there has been able to get app_swift
working with Asterisk 11 and could share any tricks they used to get it
installed?

can you pastie your configure and make ?

I don't have Cepstral6 but did submit tweaks to the code that should
have made it Cepstral6 compatible.

Also since you recently spent money with Cepstral, they'll help you.
They've got at least one guy who understands the app_swift code and
was working on forking it as an official version.

Jeremy,

I heard back from Cepstral support, and sadly I was told "Unfortunately,
we do not provide support for app_swift. app_swift is an open source
program that was not written by Cepstral."

I am new to installing software on Linux from source code. I am
wondering if you would mind giving me some details on where I can find
my configure and make?

My /opt/swift directory looks like this:
[root@dialer swift]# ls -l
total 28
drwxr-xr-x 2 root root 4096 Dec 30 19:47 bin
drwxr-xr-x 2 root root 4096 Dec 30 19:47 doc
drwxr-xr-x 2 root root 4096 Dec 30 20:19 etc
drwxr-xr-x 2 root root 4096 Dec 30 19:47 include
drwxr-xr-x 2 root root 4096 Dec 30 19:47 lib
drwxr-xr-x 2 root root 4096 Dec 30 19:47 sfx
drwxr-xr-x 3 root root 4096 Dec 30 19:47 voices

I downloaded app_swift to /root/app_swift and the directory looks like this:
[root@dialer app_swift]# ls -l
total 48
-rw-r--r-- 1 root root 20073 Dec 31 10:23 app_swift.c
-rw-r--r-- 1 root root 15123 Dec 31 10:23 LICENSE
-rw-r--r-- 1 root root 3210 Jan 8 14:07 Makefile
-rw-r--r-- 1 root root 1701 Dec 31 10:23 README
-rw-r--r-- 1 root root 1072 Dec 31 10:23 swift.conf.sample

When I run the make command, it spews a whole bunch of errors and
warnings. The first few lines are:

gcc -I/opt/swift/include -I/usr/src/asterisk-11.6.0/include -g -Wall
-fPIC -D_SWIFT_VER_6 -D_AST_VER_11 -c -o app_swift.o app_swift.c
In file included from app_swift.c:33:
/usr/src/asterisk-11.6.0/include/asterisk.h:21:33: error:
asterisk/autoconfig.h: No such file or directory
In file included from /usr/src/asterisk-11.6.0/include/asterisk.h:27,
from app_swift.c:33:
/usr/src/asterisk-11.6.0/include/asterisk/compat.h:97: error: expected

Please let me know what information I can provide, thanks for your
patience with a newbie.

Brandon


--
_____________________________________________________________________
-- 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
webaccounts at jgoettg...
Guest





PostPosted: Fri Jan 10, 2014 4:48 am    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

Wouldn't it be easier in your case to pay somebody to do the job? I doubt that it would take
more than a couple of minutes to compile, install, and configure the package. Maybe some things
need to get adjusted as the author has abandoned the project (at least there is no longer a
project web page) and the latest sources are about 2 years old.

Building from sources is not that difficult, but if you don't have a proper configure script you
are responsible that all prerequisites are met, which can be time consuming if you don't know
your distro well enough. Here, there is no configure script and some things, which might be
invalid for your machine, are hand coded inside the Makefile. Nothing spectacular, but you could
end up asking a lot more questions that have nothing to do with asterisk.

jg

--
_____________________________________________________________________
-- 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
jkillen at allamerican...
Guest





PostPosted: Mon Jan 13, 2014 6:14 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

Another option is to use an MRCP server like UniMRCP along with the Cepstral plugin. One very nice thing about this approach is that there is less 'cepstral version' <-> 'asterisk version' dependency, which is a problem with the current app_swift module (each app_swift version is designed to work on specifically one version of asterisk and one version of cepstral).

Cepstral provides details here: http://www.cepstral.com/en/telephony/mrcp
Information on the open-source uniMRCP can be found here: http://www.unimrcp.org/
Information for connecting asterisk to uniMRCP can be found here (although it seems to be having issues ATM): http://code.google.com/p/unimrcp/wiki/asteriskUniMRCP



-Justin

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of jg
Sent: Friday, January 10, 2014 1:48 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] help with Cepstral 6 and Asterisk 11

Wouldn't it be easier in your case to pay somebody to do the job? I doubt that it would take
more than a couple of minutes to compile, install, and configure the package. Maybe some things
need to get adjusted as the author has abandoned the project (at least there is no longer a
project web page) and the latest sources are about 2 years old.

Building from sources is not that difficult, but if you don't have a proper configure script you
are responsible that all prerequisites are met, which can be time consuming if you don't know
your distro well enough. Here, there is no configure script and some things, which might be
invalid for your machine, are hand coded inside the Makefile. Nothing spectacular, but you could
end up asking a lot more questions that have nothing to do with asterisk.

jg

--
_____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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
brandoncoale at sbcglo...
Guest





PostPosted: Tue Jan 14, 2014 8:08 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

On 1/9/2014 12:12 PM, Jeremy Kister wrote:
Quote:
On 1/8/2014 9:12 PM, Brandon Coale wrote:
Quote:
However, I am not able to get app_swift to compile. I am running
Asterisk 11.6.0 and CentOS 6.4 64-bit.

I am wondering if anyone else out there has been able to get app_swift
working with Asterisk 11 and could share any tricks they used to get it
installed?

can you pastie your configure and make ?

I don't have Cepstral6 but did submit tweaks to the code that should
have made it Cepstral6 compatible.

Also since you recently spent money with Cepstral, they'll help you.
They've got at least one guy who understands the app_swift code and
was working on forking it as an official version.

Thanks to Jeremy Kister's advice, I was able to get this compiled. He
suggested these two commands:
yum update -y
yum install asterisk-devel

These commands upgraded my Asterisk to 11.7.0 and installed the Asterisk
development files that I was missing. After I did that, the make worked
beautifully:

[root@dialer app_swift]# make


_ ___
(_) / __) _
_____ ____ ____ ___ _ _ _ _ _| |__ _| |_
(____ | _ \| _ \ /___) | | | (_ __|_ _)
/ ___ | |_| | |_| | ____ |___ | | | | | | | | |_
\_____| __/| __/ (____) |___/ \___/|_| |_| \__)
|_| |_|

gcc -I/opt/swift/include -I/usr/include -g -Wall -fPIC -D_SWIFT_VER_6
-D_AST_VER_11 -c -o app_swift.o app_swift.c
gcc -shared -Xlinker -x -o app_swift.so -L/opt/swift/lib -L/usr/lib
-lswift -lceplang_en -lceplex_us app_swift.o

********************************************************
* Run 'make install' to install the app_swift module. *
********************************************************

When I ran the make install, I did get "install: cannot create regular
file `/usr/lib/asterisk/modules': No such file or directory", but I just
changed the line SYS_LIB_DIR=/usr/lib in the Makefile to
SYS_LIB_DIR=/usr/lib64 and it worked fine.

Just wanted to post this resolution in case it helps someone else out there.

Brandon


--
_____________________________________________________________________
-- 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
brandoncoale at sbcglo...
Guest





PostPosted: Tue Jan 14, 2014 8:11 pm    Post subject: [asterisk-users] help with Cepstral 6 and Asterisk 11 Reply with quote

On 1/13/2014 6:13 PM, Justin Killen wrote:
Quote:
Another option is to use an MRCP server like UniMRCP along with the Cepstral plugin. One very nice thing about this approach is that there is less 'cepstral version' <-> 'asterisk version' dependency, which is a problem with the current app_swift module (each app_swift version is designed to work on specifically one version of asterisk and one version of cepstral).

Cepstral provides details here: http://www.cepstral.com/en/telephony/mrcp
Information on the open-source uniMRCP can be found here: http://www.unimrcp.org/
Information for connecting asterisk to uniMRCP can be found here (although it seems to be having issues ATM): http://code.google.com/p/unimrcp/wiki/asteriskUniMRCP



-Justin

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of jg
Sent: Friday, January 10, 2014 1:48 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] help with Cepstral 6 and Asterisk 11

Wouldn't it be easier in your case to pay somebody to do the job? I doubt that it would take
more than a couple of minutes to compile, install, and configure the package. Maybe some things
need to get adjusted as the author has abandoned the project (at least there is no longer a
project web page) and the latest sources are about 2 years old.

Building from sources is not that difficult, but if you don't have a proper configure script you
are responsible that all prerequisites are met, which can be time consuming if you don't know
your distro well enough. Here, there is no configure script and some things, which might be
invalid for your machine, are hand coded inside the Makefile. Nothing spectacular, but you could
end up asking a lot more questions that have nothing to do with asterisk.

jg

Justin,

Thank you very much for the information, that is great to learn that I
have that option as well.

Brandon



--
_____________________________________________________________________
-- 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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services