steven
Guru
- Joined
- Jun 11, 2013
- Messages
- 24
- Reaction score
- 11
Hey all,
With the recent demise of Google TTS and the rather unpleasant mannerism of Flite, I set out in search of another free text-to-speech solution for Asterisk. I found Pico TTS, which is SVOX's open source distribution of their offline text-to-speech engine. Some might already be familiar with this engine, as it is used as the default text-to-speech engine in the Android Open Source Project.
In order to integrate Pico TTS into Asterisk, I modified Lefteris Zafiris' Google TTS AGI script to run the appropriate commands to generate output from Pico TTS. As a result, the implementation is exactly the same, and you can easily download the script and do a find/replace in your dialplan to switch over to Pico TTS.
To install Pico TTS, simply follow the instructions below as root:
Ubuntu/Debian:
CentOS/Scientific Linux/Fedora/RHEL:
Raspberry Pi:
Follow the instructions here: http://rpihome.blogspot.com/2015/02/installing-pico-tts.html
Once Pico TTS is installed, download the AGI script and set the proper permissions:
I just put this together last night, so I can't guarantee that it works flawlessly, but I have it running on my development box and it seems to be working great. If you have any feedback or run across any issues, please feel free to file an issue on GitHub.
With the recent demise of Google TTS and the rather unpleasant mannerism of Flite, I set out in search of another free text-to-speech solution for Asterisk. I found Pico TTS, which is SVOX's open source distribution of their offline text-to-speech engine. Some might already be familiar with this engine, as it is used as the default text-to-speech engine in the Android Open Source Project.
In order to integrate Pico TTS into Asterisk, I modified Lefteris Zafiris' Google TTS AGI script to run the appropriate commands to generate output from Pico TTS. As a result, the implementation is exactly the same, and you can easily download the script and do a find/replace in your dialplan to switch over to Pico TTS.
To install Pico TTS, simply follow the instructions below as root:
Ubuntu/Debian:
Code:
apt-get install libttspico-utils
Code:
wget https://raw.githubusercontent.com/stevenmirabito/asterisk-picotts/master/picotts-install.sh -O - | sh
Follow the instructions here: http://rpihome.blogspot.com/2015/02/installing-pico-tts.html
Once Pico TTS is installed, download the AGI script and set the proper permissions:
Code:
cd /var/lib/asterisk/agi-bin
wget https://raw.githubusercontent.com/stevenmirabito/asterisk-picotts/master/picotts.agi
chown asterisk:asterisk picotts.agi
chmod 700 picotts.agi