The problem is that the Cepstral installer does not place the binary "swift" into any of the folders that are in the PATH so in the beginning you can only execute swift through "/opt/swift/bin/swift". To solve this make a link to "/usr/local/bin" so that it appears in the PATH. The instructions are in the README along with instructions on how to install all the other engines supported by this module.
eSpeak was added also, so now there 4-voice engines to use. Personally, I just prefer Cepstral Diane-8kHz and for $29.99 USD it is a small price to pay for deploying TextToSpeech in a business production environment with complex IVR menu system.
Code:
ln -s /opt/swift/bin/swift /usr/bin/swift
ln -s /usr/bin/swift /usr/local/bin/swift
This version (1.2.0.0) still uses the original 1.0 script's method of finding the binaries by issuing a "which $engine" shell command to get the location from a folder that is in the environment PATH variable.
This same problem bugged me just like you when I first installed Cepstral and one of the other engines since the module would not detect it. It was farking annoying especially since I'm a complete Linux newbie with only 1-week experience using the system and I'm not familiar with it at all.
(All these damned bin locations and every single package installs into a completely different place "/opt", "/usr", "/var", "/usr/local", give me plain and simple one single "C:\Programs" folder thank you! (Joking, I read something about each location having a purpose in the Linux Standards Base after this issue looking into these many folders.)
In the next release I'll look into changing the engine detection method to also include a direct look into each engine's default installation folder for the binary. I'll add it to the list of improvements for this module so that the need for the links won't be necessary since most folks shouldn't have to read the README to make this thing work, it should be Install-and-Use because that's the way I want it for myself, automatic, simple, and ready to go. Won't be able to make the change till next week, busy studying now.
PS: JakFrost checking in here, I wrote the version 1.1 and 1.2.0.0 of this TextToSpeech FreePBX module after _XO_ wrote the 1.0 proof-of-concept code. There will be a new version coming out in a few days/weeks with additional improvements. I came across this thread about my own module when I was searching for other TextToSpeech solutions for FreePBX, what a loopy web this is.