Jose Casares
Member
- Joined
- Mar 21, 2016
- Messages
- 37
- Reaction score
- 2
How did you get it to work?Patch works like a charm... thanks to all!
How did you get it to work?Patch works like a charm... thanks to all!
ttsengines is a Sangoma commercial module and therefore not part of IPBX.I installed the patch but can anybody tell me how to use it? Sorry I'm a newbie. I tried to update TTS Module and got this error.
Module Administration
Errors with selection:
No actions to perform
- Text To Speech cannot be installed:
Please try again after the dependencies have been installed.
- Module ttsengines is required.
Thanks in advance.
Jose Casares
PIAF 3.0.6.7
FreePBX Ver: 2.11.0.43
Running Asterisk Version: 11.22.0
Operating Sys: CentOS 6.7
# patch to replace GoogleTTS with FLITE since GoogleTTS is dead meat
sed -i '\:// BEGIN nv-news-yahoo:,\:// END nv-news-yahoo:d' /etc/asterisk/extensions_custom.conf
echo ';# // BEGIN nv-news-yahoo
exten => 951,1,Answer
exten => 951,n,Wait(1)
exten => 951,n,Set(TIMEOUT(digit)=7)
exten => 951,n,Set(TIMEOUT(response)=10)
exten => 951,n,Flite("Please hold a moment while we retrieve the latest Yahoo news headlines.")
exten => 951,n,AGI(nv-news-yahoo.php,10)
exten => 951,n,Flite("${NEWS}")
exten => 951,n,Hangup
;# // END nv-news-yahoo
' > /tmp/news.txt
sed -i '/\[from-internal-custom\]/r /tmp/news.txt' /etc/asterisk/extensions_custom.conf
rm -f /tmp/news.txt
sed -i '\:// BEGIN nv-weather-google:,\:// END nv-weather-google:d' /etc/asterisk/extensions_custom.conf
echo ';# // BEGIN nv-weather-google
exten => 949,1,Answer
exten => 949,n,Wait(1)
exten => 949,n,Set(TIMEOUT(digit)=7)
exten => 949,n,Set(TIMEOUT(response)=10)
exten => 949,n(retryw),Flite("After the beep say the city and state or province of the weather report you wish to retrieve. Then press pound.")
exten => 949,n,agi(speech-recog.agi,en-US)
exten => 949,n,Noop(= Script returned: ${status} , ${id} , ${confidence} , ${utterance} =)
exten => 949,n,GotoIf($["${confidence}" > "0.4"]?proceedw:retryw)
exten => 949,n(proceedw),Flite("Please hold a moment while we retrieve your report for ${utterance}.")
exten => 949,n,AGI(nv-weather-google.php,${utterance})
exten => 949,n,NoOp(Forecast: ${WEATHER})
exten => 949,n,Flite("${WEATHER}")
exten => 949,n,Hangup
;# // END nv-weather-google
' > /tmp/weather.txt
sed -i '/\[from-internal-custom\]/r /tmp/weather.txt' /etc/asterisk/extensions_custom.conf
rm -f /tmp/weather.txt
asterisk -rx "dialplan reload"
cd /tmp
git clone https://github.com/zaf/asterisk-googletts.git
cd asterisk-googletts
mv goo* /var/lib/asterisk/agi-bin/
chown asterisk:asterisk /var/lib/asterisk/agi-bin/*.agi
cd cli
mv googletts-cli.* /usr/local/sbin/.
chmod +x /usr/local/sbin/googletts*
cd /tmp
rm -rf asterisk-googletts
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.