/home/jeff/blog

Sucking away valuable moments of your life ...

Creating TTS Prompts for Asterisk With Realspeak

| Comments

I was playing around with using ScanSoft Realspeak for Linux, and finally found the “magic sequence” to generate the appropriate GSM prompts for Asterisk.

Requires:

  • Standard installation of Scansoft Realspeak 4 with American English Jill voice
  • Debian’s libgsm-tools and sox
1
2
3
4
5
6
7
8
9
cd /usr/local/ScanSoft/RealSpeak_4.0
echo " - TTS being performed on $1 ... "
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ScanSoft/RealSpeak_4.0/api/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ScanSoft/RealSpeak_4.0/speech/components/common/
./standard "American English" Jill ./speech text.txt
echo " - Converting to 8000Hz WAV ... "
sox -r 8000 -t raw -w -s /usr/local/ScanSoft/RealSpeak_4.0/standard.pcm text.wav
sox text.wav text.au
cat text.au | toast -c -s > text.gsm

Related Posts