vicidial voice broadcast campaign with Google TTS
Google TTS is open source as of dated jan 2021We will be using the asterisk agi provided by zaf.github to interact with google tts engine for text to speech .link to download agi
https://zaf.github.io/asterisk-googletts/
Step 1: Installing the Pre-requisites
zypper install perl
zypper install perl-libwww-perl
zypper install perl-LWP-Protocol-https
zypper install sox
zypper install mpg123
asterisk -rx "module load format_sln.so"
(note format_sln might be pre loaded in most asterisk)
Step 2: Download the google tts AGI to asterisk server
link: https://zaf.github.io/asterisk-googletts/
git clone git://github.com/zaf/asterisk-googletts
or
wget https://github.com/zaf/asterisk-googletts/zipball/master
cp googletts.agi /var/lib/asterisk/agi-bin/
Step 3: Asterisk dialplan
we need to write two dialplans.
1. carrier dialplan
in default vicidial carrier dialplan , we need to add additional line which is used to set the vicidial lead fields as variable,which we are going use it for text to speech.
the agi name is agi-set_variables.agi provided by vicidial team
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,AGI(agi-set_variables.agi)
exten => _9X.,n,Dial(SIP/SIPTRUNK/${EXTEN:1},,Tto)
exten => _9X.,n,Hangup()
2. custom dialplan to playback the message with google tts agi.
Either you can write this dialplan in extensions.conf or write it in vicidial custom dialplan entryStep 3 : Creating Voice broadcast campaign.
For creating the voice broadcast campaign in vicidial kindly check and follow the below link
add the 668899 as line extension in remote agents
Dial plan variable By Vicidial
Google TTS will not support huge call volume , they might block your IP if too many connections established.
For support reach me at skype:manish.kadiya
Comments
Post a Comment