Upload
raynielllanes
View
221
Download
1
Embed Size (px)
Citation preview
7/26/2019 Acapela Asterisk
1/10
ACAPELA-GROUP
Acapelas UNIMRCP
Integration DocumentationTT !or Asteris"Julien Boy
18/02/2014
Documentaon to install an Acapela-Groups TTS Server dealing with Asterisk and with any other
UN!"#$ client%
7/26/2019 Acapela Asterisk
2/10
Acapela-Group
I.
Contents% #ontents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &
% Document revisions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '
% Architecture and nstallaon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (
&% Server%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (
'% #lient %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (
)% #on*guring and tesng the components %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +
&% Acapela Telecom Server %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +
'% Acapela !"#$ )' Server %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +
(% Uni!"#$ client %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ,
7/26/2019 Acapela Asterisk
3/10
Acapela-Group
II.
Document revisions
Date Author Descripon )ersion
&./'.&0 1ulien 2oy3 4irst version &%/
'&./'.&0 1ulien 2oy3 Acapelas con*guraon*les added%
&%&
7/26/2019 Acapela Asterisk
4/10
Acapela-Group
III.
Architecture and Installation
The 5ollowing documentaon is provided 5or an Uni6 environment and was tested on a #ent7S ,%+ ,08its
edion% 96cept 5or some speci*c points such as dependencies resoluon: the manual sll provides use5ul
in5ormaons 5or any environment%
1.
Server
The Acapela Telecom applicaon must 8e installed on the server as well as the Acapela !"#$ )' Server
applicaon% These steps will not 8e e6plained in this documentaon% $lease re5er to the o;cial Acapelas
documentaon o5 these products 5or more in5ormaon%
To have a straigh
7/26/2019 Acapela Asterisk
5/10
Acapela-Group
4ollow the instrucons and answer yes to all >uesons% $lease make sure that you do N7T have other
versions o5 A$": A$"-ul or So*a-S$ li8raries already installed% As menoned: those dependencies are
speci*cally patched 5or the compilaon o5 Asterisk% 7therwise: make sure that during the con*guraon
steps o5 Asterisk: the correct path is used to compile with the patched li8raries%
The ne6t step is a8out downloading: compiling and installing Asterisk=
cd /usr/local/src/;
wget !"s#//unimrc".googlecode.com/$les/uni-ast-"ac)age-%.%.&.tar.g';
tar -x( uni-ast-"ac)age-%.%.&.tar.g';
cd uni-ast-"ac)age-%.%.&;
There are ( shell scripts to help you with the installaon o5 Asterisk% ?owever: the manual compilaon
will 8e pre5erred as it may 8e use5ul to see de8ug in5ormaons in case o5 pro8lem @such as missing
dependencies% During the wring o5 this documentaon: the shell scripts were not displaying errors
while the installaon was incomplete%
cd asteris);
./con$gure;
ma)e;
ma)e install;
cd /usr/local/src/unimrc";
./con$gure;
ma)e;
ma)e install;
cd /usr/local/src/modules;
./con$gure;
ma)e;
ma)e install;
7/26/2019 Acapela Asterisk
6/10
Acapela-Group
IV.
Configuring and testing the components
2e5ore con*guring the client and the server to deal with !"#$: some preliminary tests should 8e
per5ormed%
1.
Acapela Telecom Server
Baunch the Acapela TTS server=
/o"t/*ca"ela/,-,erver/bin/acatel_srv;
#ompile the code sample and run it=
cd .opt.Acapela.TTS-Server.sample.C
make C
./!ssam"le;
2.Acapela MRC V2 Server
Some con*guraons *les must 8e modi*ed% 7pen .opt.Acapela.!"#$-'.con5.acapelas%6ml
connecon
"aram name01command-"ort1 value0166661/
"aram name01data-"ort1 value016661/
3-- nter yourAcapela Telecom server5 ere. 7o 9 "ut localost or %2:.&.&.% --"aram name01i"-address1 value01%2.%68.4&.%
7/26/2019 Acapela Asterisk
7/10
Acapela-Group
"ro"eres
3-- i" ty"e01auto1/ --
3-- nter yourAcapela MRCP V2 server5 ere. 7o 9 "ut localost or %2:.&.&.%. =e aware> ere te
i" is te same tan te *ca"ela , server as tis tutorial was "er(ormed on a unique ?@. --
i"%2.%68.4&.%
7/26/2019 Acapela Asterisk
8/10
Acapela-Group
7pen .usr.local.unimrcp.con5.client-pro*les. and create a *le named acapela%6ml where you will insert
this content=
Oxml version01%.&1 encoding01PF-81O
3-- Pni@AB client document --
unimrc"client xmlns#xsi01!"#//www.w
7/26/2019 Acapela Asterisk
9/10
Acapela-Group
; +++ @AB seSngs +++
version 0 2
;
; +++ ,5 +++
; 000 ,5 seSngs 000
server-i" 0 %2.%68.4&.%
7/26/2019 Acapela Asterisk
10/10
Acapela-Group
7pen .etc.asterisk.res-speech-unimrcp%con5 and comment the line unimrc"-"ro$le 0 uni2and add
unimrc"-"ro$le 0 aca2C
Iou should have something like=
LgeneralM
; Pni@AB named "ro$le. 9"ons are#
unimrc"-"ro$le 0 aca2 ; *ca"ela @ABv2 ,erver
;unimrc"-"ro$le 0 uni2 ; Pni@AB @ABv2 ,erver
;unimrc"-"ro$le 0 uni% ; Pni@AB @ABv% ,erver
Now launch the unimrcp client to per5orm a >uick test=
cd /usr/local/unimrc"/bin;
./unimrc"client;
Do N7T launch the client 5rom another locaon e%g% with a command like.usr.local.unimrcp.8in.unimrcpclient% The con*guraons *les are de*ned with relave paths 5rom the
current directoryE
!any lines will appear on the terminal: look 5or eventual warnings or errors% Noce the lines=
2&%4-&2-% &6#2