RAGI (Ruby Asterisk Gateway Interface)
“Created by SnapVine”
APPEARS TO BE A NO LONGER ACTIVE PROJECT
Ruby Asterisk Gateway Interface (RAGI) is a useful open-source framework for bridging the Ruby on Rails web application server environment and Asterisk, the open-source PBX.
RAGI eases the development of interactive automated telephony applications such as IVR, call routing, automated call center, and extended IP-PBX functionality by leveraging the productivity of the Ruby on Rails framework. RAGI simplifies the process of creating rich telephony and web apps with a single common web application framework, object model and database backend.
Working with TTS (Cepstral)
For the current ‘speak_text’ to work you must have ‘swift.agi’ installed in /var/lib/asterisk/agi-bin with this content:
#!/bin/sh
text=`echo $*`
stdin="0"
while [ "$stdin" != "" ]
do
read stdin
if [ "$stdin" != "" ]
then
stdin2=`echo $stdin | sed -e 's/: /=/' -e 's/"//g' -e 's/$/"/' -e 's/=/="/
'`
eval `echo $stdin2`
fi
done
calleridnum=`echo $agi_callerid | cut -f2 -d\< | cut -f1 -d\>`
calleridname=`echo $agi_callerid | cut -f1 -d\< `
/usr/local/bin/swift -o /tmp/$agi_uniqueid.wav -p audio/channels=1,audio/samplin
g-rate=8000 " $text "
echo "stream file /tmp/$agi_uniqueid #"
read stream
rm /tmp/$agi_uniqueid.wav
exit 0