New Cepstral install failing to recognize voice on asterisk-side

amygrant

Guru
Joined
Apr 4, 2010
Messages
132
Reaction score
3
[SOLVED] New Cepstral install failing to recognize voice on asterisk-side

Running PIAF 2, CentOS 6.2 64-bit and I wanted to install cepstral tonight.

Saw the thread at http://pbxinaflash.com/community/threads/cepstral-in-piaf-red-with-asterisk-10.12232/?t=12232

Ran install-cepstral and everything went fine, saw no errors

I can run the following two commands, and a wav file is generated using Allison (with nag intro)
Code:
swift -o test.wav "this is a test"
swift -n "Allison-8kHz" -o test.wav "this is a test"

If I run swift --voice, I get
Code:
root@pbx:/opt/swift $ swift --voices

Swift command-line synthesis program
Version 5.1.0 of July 2008
Copyright (c) 2000-2006, Cepstral LLC.

Voice      | Version | Lic? | Gender | Age | Language         | Sample Rate
-----------|---------|------|--------|-----|------------------|------------
Allison-8kHz| 5.1.0   | No   | Female | 28  | US English       | 8000 Hz


However, if I try getting asterisk to use Allison, I get the following error in my log
Code:
[2012-02-27 04:21:26] DEBUG[2992] app_swift.c: Text to Speak : Congratulations! You have installed Cepstral.
[2012-02-27 04:21:26] ERROR[2992] app_swift.c: Failed to set voice.


Failed to set voice?

My /etc/asterisk/swift.conf has
Code:
voice=Allison-8kHz

... not sure where to go from here. It seems to me that cepstral installed fine but there is a disconnect between it and asterisk.





Code:
                                           +------------------------System Information---------------------------+
                                           |  Asterisk   = ONLINE  | Dahdi     = ONLINE  | MySQL     = ONLINE    |
                                           |  SSH        = ONLINE  | Apache    = ONLINE  | Iptables  = ONLINE    |
                                           |  Fail2ban   = ONLINE  | Internet  = ONLINE  | Ip6Tables = ONLINE    |
                                           |  Disk Free  = ADEQUATE| Mem Free  = ADEQUATE| NTPD      = ONLINE    |
                                           |  SendMail   = ONLINE  | Samba     = OFFLINE | Webmin    = ONLINE    |
                                           |  Ethernet0  = ONLINE  | Ethernet1 = N/A     | Wlan0     = N/A       |
                                           |                                                                     |
                                           |  PIAF Installed Version   = 2.0.6.2 Running on *KVM*                |
                                           |  FreePBX Version          = 2.9.0.7                                 |
                                           |  Running Asterisk Version = 1.8.8.0                                 |
                                           |  Asterisk Source Version  = 1.8.8.0                                 |
                                           |  Dahdi Source Version     = 2.6.0+2.6.0                             |
                                           |  Libpri Source Version    = 1.4.12                                  |
                                           |  IP Address               = 192.168.1.20 on eth0                    |
                                           |  Operating System         = CentOS release 6.2 (Final)              |
                                           |  Kernel Version           = 2.6.32-220.2.1.el6.x86_64 - 64 Bit      |
                                           |  Incredible PBX 3 Version = 3.0.3                                   |
                                           +---------------------------------------------------------------------+


*edited for stupid mistakes
 
Last edited by a moderator:

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
Running PIAF 3.0.3 64-bit and I wanted to install cepstral tonight.

Saw the thread at http://pbxinaflash.com/community/threads/cepstral-in-piaf-red-with-asterisk-10.12232/?t=12232

Ran install-cepstral and everything went fine, saw no errors

I can run the following two commands, and a wav file is generated using Allison (with nag intro)
Code:
swift -o test.wav "this is a test"
swift -n "Allison-8kHz" -o test.wav "this is a test"

If I run swift --voice, I get
Code:
root@pbx:/opt/swift $ swift --voices

Swift command-line synthesis program
Version 5.1.0 of July 2008
Copyright (c) 2000-2006, Cepstral LLC.

Voice      | Version | Lic? | Gender | Age | Language         | Sample Rate
-----------|---------|------|--------|-----|------------------|------------
Allison-8kHz| 5.1.0   | No   | Female | 28  | US English       | 8000 Hz


However, if I try getting asterisk to use Allison, I get the following error in my log
Code:
[2012-02-27 04:21:26] DEBUG[2992] app_swift.c: Text to Speak : Congratulations! You have installed Cepstral.
[2012-02-27 04:21:26] ERROR[2992] app_swift.c: Failed to set voice.


Failed to set voice?

My /etc/asterisk/swift.conf has
Code:
voice=Allison-8kHz

... not sure where to go from here. It seems to me that cepstral installed fine but there is a disconnect between it and asterisk.





Code:
                                           +------------------------System Information---------------------------+
                                           |  Asterisk   = ONLINE  | Dahdi     = ONLINE  | MySQL     = ONLINE    |
                                           |  SSH        = ONLINE  | Apache    = ONLINE  | Iptables  = ONLINE    |
                                           |  Fail2ban   = ONLINE  | Internet  = ONLINE  | Ip6Tables = ONLINE    |
                                           |  Disk Free  = ADEQUATE| Mem Free  = ADEQUATE| NTPD      = ONLINE    |
                                           |  SendMail   = ONLINE  | Samba     = OFFLINE | Webmin    = ONLINE    |
                                           |  Ethernet0  = ONLINE  | Ethernet1 = N/A     | Wlan0     = N/A       |
                                           |                                                                     |
                                           |  PIAF Installed Version   = 2.0.6.2 Running on *KVM*                |
                                           |  FreePBX Version          = 2.9.0.7                                 |
                                           |  Running Asterisk Version = 1.8.8.0                                 |
                                           |  Asterisk Source Version  = 1.8.8.0                                 |
                                           |  Dahdi Source Version     = 2.6.0+2.6.0                             |
                                           |  Libpri Source Version    = 1.4.12                                  |
                                           |  IP Address               = 192.168.1.20 on eth0                    |
                                           |  Operating System         = CentOS release 6.2 (Final)              |
                                           |  Kernel Version           = 2.6.32-220.2.1.el6.x86_64 - 64 Bit      |
                                           |  Incredible PBX 3 Version = 3.0.3                                   |
                                           +---------------------------------------------------------------------+

3.0.3 is the Incredible PBX version, not PIAF which is 2.0.6.2. Anyway - I don't think that Cepstral allows Asterisk to generate TTS if its not licensed. I could be wrong but I think it is so.
 
Last edited by a moderator:

amygrant

Guru
Joined
Apr 4, 2010
Messages
132
Reaction score
3
3.0.3 is the Incredible PBX version, not PIAF which is 2.0.6.2. Anyway - I don't think that Cepstral allows Asterisk to generate TTS if its not licensed. I could be wrong but I think it is so.

Wow, that is what I get for making a post when I was mentally wiped out at about 4am my time. Had to double check everything I wrote to make sure I represented everything correctly. At least I only made one mistake.

Thank you for the recommendation, I will research that. I did plan on getting a license but have to wait for the boss to buy it so I figured I'd try to get this going prior too ... even with the nag intro
 

amygrant

Guru
Joined
Apr 4, 2010
Messages
132
Reaction score
3
SOLVED - Need license installed

... I don't think that Cepstral allows Asterisk to generate TTS if its not licensed. I could be wrong but I think it is so.

You are correct. Just installed the license and it works.
 

Members online

No members online now.

Forum statistics

Threads
25,779
Messages
167,505
Members
19,199
Latest member
leocipriano
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top