Koozali.org: home of the SME Server

Cepstral & Sail?

Offline billym

  • 16
  • +0/-0
Cepstral & Sail?
« on: June 30, 2008, 06:42:33 PM »
Does anyone have cepstral working with sail? I am trying to create a custom app & feel that I am almost there with using swift/cepstral for T2S.

In the Asterisk remote client, I get the error  "app_swift.c:240 swift_exec: Failed to set voice " using Cepstral_Allison_i386-linux_5.1.0.tar.gz

I have my extension configured like this:
exten => *101*,1,Answer
exten => *101*,2,Swift("this is a test of the cepstral voice")
exten => *101*,3,Hangup

Which throws the error:
app_swift.c:240 swift_exec: Failed to set voice

when I run: swift -n Allison -o test.wav "this is a test"
it generates a test.wav file using the allison voice with no issues.

when I run: swift --voices I get:

Voice | Version | Lic? | Gender | Age | Language | Sample Rate
-----------|---------|------|--------|-----|------------------|------------
Allison | 5.1.0 | No | Female | 28 | US English | 16000 Hz
Callie | 5.1.0 | No | female | 30 | US English | 22050 Hz

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Cepstral & Sail?
« Reply #1 on: June 30, 2008, 07:57:04 PM »
dob't know if it help but some kind soul left this in response to the same eproblem...

Quote
I fixed the first problem below
load app_swift.so
[May 24 12:47:52] WARNING[20866]: loader.c:363 load_dynamic_module: Error loading module ‘app_swift.so’: libswift.so.5: cannot open shared object file: No such file or directory

by editing the ls.so.conf and added the line /opt/swift/lib asterisk then finds the library libswift.so.5


Offline billym

  • 16
  • +0/-0
Re: Cepstral & Sail?
« Reply #2 on: June 30, 2008, 09:53:35 PM »
ok, I have it working now, I think that did the trick. Now the issue is that when I point my primary number(trunkline) Open Inbound Route to the custom app name, all I get is a busy signal.

I have my custom app configured like this: (I have the span set to "Both")

exten => *101*,1,Answer()
exten => *101*,2,System(rm -rf /tmp/test.wav)
exten => *101*,3,System(swift -n Allison -o /tmp/test.wav -p audio/sampling-rate=8000 "Another test. ${CALLERID(num)}")
exten => *101*,4,Playback(/tmp/test)
exten => *101*,5,Hangup()

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Cepstral & Sail?
« Reply #3 on: July 01, 2008, 01:08:32 AM »
which release of sail do you have?