RAGI

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.

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
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

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.

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
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

Created by: muppetmaster, Last modification: Tue 12 of Jun, 2012 (02:55 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+