Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
asterisk_translator [2015/08/16 13:03]
sschueller
asterisk_translator [2015/08/16 13:09]
sschueller
Line 1: Line 1:
 ====== Asterisk Translator ====== ====== Asterisk Translator ======
  
 +  * http://​zaf.github.io/​asterisk-googletts/​
 +  * http://​zaf.github.io/​asterisk-speech-recog/​
 +  * http://​zaf.github.io/​asterisk-googletranslate/​
 +
 +Required packges (CentOS)
 +<code bash>
 +yum install perl-Crypt-SSLeay perl-libwww-perl.noarch sox perl-JSON perl-JSON-XS flac perl-IO-Socket-SSL esound-devel libtool-ltdl
 +wget http://​apt.sw.be/​redhat/​el5/​en/​i386/​rpmforge/​RPMS/​mpg123-1.9.1-1.el5.rf.i386.rpm
 +rpm -i --force mpg123-1.9.1-1.el5.rf.i386.rpm
 +</​code>​
 +
 +For Cisco 7970 Authentication,​ must be set in xml.
 +<code php /​var/​www/​html/​xmlservices/​auth/​authenticate.php>​
 +<?php
 +echo "​AUTHORIZED";​
 +</​code>​
 <code bash /​etc/​asterisk/​extensions_custom.conf>​ <code bash /​etc/​asterisk/​extensions_custom.conf>​
 [g-speech] [g-speech]
Line 17: Line 33:
 </​code>​ </​code>​
  
 +XML service for cisco 7970. Reads transcript file and makes an xml.
 <code php /​var/​www/​html/​xmlservices/​translator/​index.php>​ <code php /​var/​www/​html/​xmlservices/​translator/​index.php>​
 <?php <?php
Line 34: Line 51:
 </​code>​ </​code>​
  
 +Create the transcript
 <code php /​var/​lib/​asterisk/​agi-bin/​transcript.agi>​ <code php /​var/​lib/​asterisk/​agi-bin/​transcript.agi>​
 #​!/​usr/​bin/​php #​!/​usr/​bin/​php
Line 43: Line 61:
 </​code>​ </​code>​
  
 +Push translate URL to cisco 7970
 <code php /​var/​lib/​asterisk/​agi-bin/​pushtocisco.agi>​ <code php /​var/​lib/​asterisk/​agi-bin/​pushtocisco.agi>​
 #​!/​usr/​bin/​php -q #​!/​usr/​bin/​php -q