RAGI
Created by: muppetmaster,Last modification on Tue 31 of Jan, 2006 [20:57 UTC]
RAGI (Ruby Asterisk Gateway Interface)
"Created by SnapVine"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.
RAGI is available under the BSD license.
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
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

Comments