The extension will only work on systems support by the Swift engine, and has only been tested (so far) on Linux ( CentOS).
Try manually adding the /opt/swift/lib directory to /etc/ld.so.conf or /etc/ld.so.conf.d/ and run ldconfig.I’m happy to announce the first release of the Swift Text-To-Speech PHP extension the swift engine is the free TTS engine provided with any Cepstral TTS voice. A lot of Asterisk fans out there will recognize the Cepstral Allison voice, as the default voice for Asterisk installations. libswift.so.4: cannot open shared object file: No such file or directory Bear in mind this will add to your cpu overhead, so an 8khz voice is better from a performance perspective. Q: Can I use a 16khz "desktop voice" or do I have to use an 8kz telephone voice?įreeSWITCH™ will re-sample automatically to 8khz as needed.
Miguel-8kHz), License Can I use a 16khz "desktop voice"? Your Name, Company (if applicable), Voice (e.g. Run the following command "swift -reg-voice" and answer the questions
Allison-8kHz, Callie-8kHz, David-8kHz, Diane-8kHz, Marta-8kHz, Miguel-8kHz, William-8kHz)Ĭommon error is to just type session.speak("cepstral","Allison") when it should be session.speak("cepstral","Allison-8kHz") How do I install a license purchased from cepstral? In the /opt/swift/voices/ you will be able to see the names you should use. Please make sure you use the correct name in your session.speak. FAQ When selecting a different voice in session.speak it defaults to original voice. Previous sources had a bug in the APR lib. If not provide a symbolic link from the actual libswift.so library.Ĭreate a file /etc/ld.so.conf.d/nf with the following content: Then set environment var export SWIFT_HOME=/opt/swiftĬheck if /opt/swift /lib/libswift.so.5 link exists. Here is how it worked under Ubuntu 8.04: First, disable mod_flite as they are incompatible. Without this path mod_cepstral.DLL will not initialize during Freeswitch startup.
Between Cepstral 4.2 and 5.0 these paths changed.įinally, you'll need to make sure the the Cepstral bin path is part of the Windows PATH environment variable as the Cepstral DLLs are installed in this directory (C:\Program Files\Cepstral\bin ).
In addition you need to verify the following properties for mod_cepstral.c (right click mod_cepstral from the Solution Explorer on the left hand side and select "properties"). Scroll down until you see mod_cepstral and select the Bulid flag. Right click the FreeSWITCH solution from the Solution Explorer in VS and select Configuration Manager. Once the SDK is installed you'll need to make sure mod_cepstral is selected to be compiled (not on by default). You can, however, obtain an evaluation copy Contact Cepstral Support with subject line "Cepstral Windows SDK".
In order to compile mod_cepstral.c under Visual Studio C++ you must ensure the Cepstral SDK is installed on your build machine. The '15' in the above example means 15% of default volume.įor other SSML tricks check out the examples on Cepstral's support site. You should now be able to use something similar to the following in your dialplan You must define an environment variable SWIFT_HOME in the shell where you run fs, otherwise you won't hear any audio. If you don't use the default install dir (/opt/swift) you will need to modify `src/mod/asr_tts/mod_cepstral/Makefile` You can also use a Cepstral voice with a language other than English without editing any files. Enable mod_cepstral in the file by uncommenting.Edit nf and uncomment the line: asr_tts/mod_cepstral.Define SWIFT_HOME to point to install root (e.g.Add /opt/swift/lib (if you chose the default install) to end of file /etc/ ld.so.conf.Follow prompts (recommended add: export SWIFT_HOME=/opt/swift to your FS user profile).tar xvzf Cepstral_Allison-8kHz_i386-linux_6.0.1.tar.gz.
Each voice comes with the library, so the SDK is not needed.
Buy or download a free trial voice from Cepstral.Please help us keep this page current if you know of changes by commenting below or editing this page (ask for edit permission if needed). These instructions were developed under the old versions and possibly require updating for use with modern versions of Cepstral. Previously, the suggested version to use was 4.x since there were known issues with 5.1 (which is closed source). As of 2016.05.17 Cepstral version 6 is reported to work with FreeSWITCH.