1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. A serious FreePBX vulnerability has been reported. Update your Framework Module immediately. Click here for details.

New Cepstral install failing to recognize voice on asterisk-side

Discussion in 'Bug Reporting and Fixes' started by amygrant, Feb 27, 2012.

  1. amygrant Guru

    [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/forum/showthread.php?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
  2. rossiv Guru

    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.
  3. amygrant Guru

    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
  4. amygrant Guru

    SOLVED - Need license installed

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

Share This Page