Cepstral on 2.3 with 1.8 asterisk installation

Status
Not open for further replies.

rnrover

Joined
Aug 2, 2009
Messages
73
Reaction score
0
After a large head bangathon trying to get Cepstral and Swift to work I found my way by searching google and using steps found with Nerdvittles and the Trixbox forums. No instructions that I found worked, so doing some careful looking at each step by step enabled me to create these instructions

These instructions are strictly for Elastix 2.3 with Asterisk 1.8. and the new version 6 Cepstral voices

You can go to this link to decide what voice you want to use. click on the telephony link for your choices. (I am using Allison) one concurent channel cost $40.00 or only $12.00 if you are upgrading from 5.0 You can download any of them to try for free.

http://www.cepstral.com/

open up a terminal or ssh client and login as root to your Elaxtix box.

issue the following to get gcc

[root@yourbox]# yum install gcc

(answer Y when the prompt says Total download size:** is this ok)
wait for yum to complete

Download your Cepstral voices from here as a backup to another computer:

http://www.cepstral.com/downloads/insta ... 0.1.tar.gz

here is the command to get Allison's voice in your box

[root@yourbox]# wget http://www.cepstral.com/downloads/insta ... 0.1.tar.gz

[root@yourbox]# tar -zxvf Cepstral*
[root@yourbox]# cd Cepstral_Allison-8kHz_i386-linux_6.0.1
[root@Cepstral_Allison-8kHz_i386-linux_6.0.1]# ./install.sh
Watch the screen as you press the enter key the percentage will change and slow your scrolling at 96% so don't go to far.

After you've read the license, type yes to install the voice on your system, not -yes- as the instructions imply. Don't ask how I know. Accept the default locations for the installation. When the installation completes, issue the following command

[root@Cepstral_Allison-8kHz_i386-linux_6.0.1]# echo /opt/swift/lib > /etc/ld.so.conf.d/cepstral.conf

then this command

[root@Cepstral_Allison-8kHz_i386-linux_6.0.1]# ldconfig
This places the Cepstral_Allison voice in /opt/swift/voices/

Now if you bought a license, here is how you install it. You must have the exact spelling of how you registered your voice or this will fail

[root@Cepstral_Allison-8kHz_i386-linux_6.0.1]# cd
[root@yourbox]# swift --reg-voice

Your Name: John Q. Public

Company (if applicable): Acme Widgets

Voice: Allison-8kHz

License Key: xx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx

The information you have entered appears to be valid.
Thank you for purchasing Cepstral Allison-8kHz.
[root@yourbox]# amportal restart

[root@yourbox]swift -V

Cepstral Swift v6.0.1, March 2012

Default Voice: Allison-8kHz v6.0.0
Language: US English v5.1.0
Lexicon: unknown v0.0.0

Concurrency: 1 Port(s) Registered
0 Port(s) In Use

Distribution: No audio distribution license was found.
Saving audio to a file is disabled.

Copyright (C) 2000-20012, Cepstral LLC.

Now install swift. There are a lot of ways to get this done and a lot of ways that fail. This is what I did

[root@yourbox]# wget --no-check-certificate https://github.com/awayment/app_swift/tarball/master
[root@yourbox]# tar -zxvf master
[root@yourbox]# cd awayment-app_swift-7010623
[root@yourbox awayment-app_swift-7010623]# cd Asterisk_1.8
[root@yourbox Asterisk_1.8]# make
[root@yourbox Asterisk_1.8]# make install
[root@yourbox Asterisk_1.8]# ln -s /opt/swift/bin/swift /usr/bin/swift
[root@yourbox Asterisk_1.8]# sed -i 's|David-8kHz|Allison-8kHz|' /etc/asterisk/swift.conf
[root@yourbox Asterisk_1.8]# amportal restart
[root@yourbox Asterisk_1.8]# asterisk -rx "core show application swift"

-= Info about application 'Swift' =-

[Synopsis]
Not available

[Description]
Not available

[Syntax]
Not available

[Arguments]
Not available

[See Also]
Not available

Edit elastix.custom.conf with the following:

;exten => 1234,1,Playback(demo-congrats)
exten => 1234,1,Swift(Oh baby You have installed Cepstral with Allisons sexy voice.)
exten => 1234,2,NoOp(Key pressed: ${SWIFT_DTMF})
exten => 1234,3,Swift(You pressed ${SWIFT_DTMF}. Goodbye.)
exten => 1234,4,Hangup()
exten => h,1,Hangup()

Then reload asterisk

My Allison voice now works. I don't know why the not available stuff is in the above lines.

The thing that was important was the yum installation of gcc. I am looking for other dependencies for the wolfram alpha program. If anyone knows what I need to load, please let me know.

Thanks to all the help that I have received

*PS I loaded yum install flac

now my wolfram alpha is working. It is not working all of the time but most of the time it replys with an answer.

Pay it forward
 
Hi. thanks for these explainations. +1

Compared with Asterisk 1.4, i did like this:
Code:
cd /usr/src
wget http://downloads.cepstral.com/cepstral/i386-linux/Cepstral_Jean-Pierre-8kHz_i386-linux_5.1.0.tar.gz
tar -zxvf Cepstral*
cd Cepstral_Jean-Pierre-8kHz_i386-linux_5.1.0
./install.sh
echo /opt/swift/lib > /etc/ld.so.conf.d/cepstral.conf
ldconfig
swift "Hello <break time='200ms' /> World" -o /var/www/html/cept.wav
cd /usr/src
wget http://pbxinaflash.net/source/app_swift/app_swift-1.4.2.tar.gz
cd app_swift-1.4.2
make
make install
ln -s /opt/swift/bin/swift /usr/bin/swift
cp swift.conf.sample /etc/asterisk/swift.conf
chown asterisk:asterisk /etc/asterisk/swift.conf
sed -i 's|David-8kHz|Jean-Pierre-8kHz|' /etc/asterisk/swift.conf
amportal restart

Look at the four last lines, there's chmod.
Maybe that....

But yes of course, you should have this:
show application Swift

-= Info about application 'Swift' =-

[Synopsis]
Speak text through Swift text-to-speech engine.

[Description]
Syntax: Swift(text[|timeout in ms|maximum digits])
Example: Swift(Hello World|5000|5) = 5 second delay between 5 digits
This application operates in two modes. One is processing text-to-speech while
listening for DTMF and the other just processes the text-to-speech while ignoring
DTMF entirely.
Unless the timeout and maximum digits options are BOTH specified, the application
will automatically ignore DTMF.
Returns -1 on hangup or 0 otherwise.

I agree with you.
 
Status
Not open for further replies.

Forum statistics

Threads
111,859
Messages
589,435
Members
164,700
Latest member
Apollo Cloud