TechHome Giving technology a good home
   Home      About us      Links     |     Electrical    Entertainment    HVAC    Networking    Plumbing    Security    VoIP    Wireless   


One of the first things we did after setting up our phone system was to experiment with the different ways that you could extend its capabilities. By using Asterisk we have relatively easy access to the internals of the system and can tweak the behaviour without totally rewriting the software. The easiest way to extend the system is by using the basic functions built into Asterisk itself. However, if you want to get really fancy you need to think outside the box. Asterisk makes this easy too. It includes a feature known as AGI scripts which allow you to write other programs or scripts to interact with Asterisk.

The Weather Channel

Being a weather freak I decided to experiment with getting the weather by dialing an extension on our new phone system. I started by writing up a quick shell script to download the weather from the internet and parse it. Basically I just strip out all the formatting and leave the basic forecast. That was easy and works well but how do we transfer this information to us over the phone.

Speak to me

While looking into how to get the system to read the weather to us we had a quick look at text to speech software. As it turns out there is a free text-to-speech system available for use with Asterisk. Cool! The Festival text-to-speech engine is relatively easy to setup and seems to work reasonably well. You feed it a text file and it spits out an audio file (wav). In the end it makes for a really slick system. You dial an extension and the phone reads you the current forecast. Of course the next obvious step is to extend the same concept to read you anything else you can imagine.


The script

If you want to try the script out for yourself feel free. You will most likely need to make some adjustments to get it to work for your environment / location.

Download the script and give it a whirl.
Leave a comment:
Name
E-mail
Website
Comment


   

 Previous Posts /  Following Posts

Recent posts:
May 27, 2012
October 30, 2010
March 20, 2009
March 13, 2009
February 20, 2009
February 16, 2009
February 11, 2009
February 10, 2009
February 9, 2009
February 8, 2009

Archives:

Photos / Videos:
May 27 - (16)




October 30 - (23)




March 20 - (13)




February 11 - (1)


February 10 - (2)


February 9 - (10)


February 8 - (2)


February 7 - (1)


February 3 - (7)


February 2 - (3)


January 23 - (1)
January 22 - (2)
January 21 - (2)
January 20 - (1)
January 19 - (1)
January 18 - (1)
January 17 - (1)
January 16 - (1)
January 15 - (9)






October 2 - (1)




July 4 - (8)






October 2 - (2)


June 15 - (1)




July 16 - (2)








June 5 - (1)






October 10 - (12)




September 25 - (2)






Copyright © 2019     Disclaimer