News and Reviews on how to start a blog, Blog tools, Blogging tips and Software, Make money Blogging, Blog tutorial
Tuesday February 7th 2012

PhoneBlogger: Post to a blog by phone

PhoneBlogger is a tool for publishing to a blog via a phone call. PhoneBlogger is an automated voice application that first asks you for info about which pre-configured blog you wish to post to. After collecting the necessary information, PhoneBlogger records your audio message. Finally, it posts a blog entry that links to the recorded audio. In a little more technical detail, PhoneBlogger is a VoiceXML application. VoiceXML (VXML) is the W3C’s standard XML format for specifying interactive voice dialogues between a human and a computer. It allows voice applications to be developed and deployed in an analogous way to HTML for visual applications. Just as HTML documents are interpreted by a visual web browser, VoiceXML documents are interpreted by a voice browser. Phoneblogger uses speech recognition and text to speech to collect information from you over the phone concerning the blog to which you want to post. A couple Python CGI scripts and some other programs are used to save the audio and convert it to an audio file format that can be easily played in a web browser. PhoneBlogger uses the MetaWeblog XML-RPC API to post to a weblog. I was tested with Movable Type and Blogger, but it should not take too much work to get PhoneBlogger to post to another weblog tool that supports the MetaWeblog XML-RPC API or a similar API. he PhoneBlogger CGI scripts must be able to call into the XML-RPC interface for your weblog tool.

You need to have access to a voice server that provides a VoiceXML interpreter/browser. The easiest route to take is to get a free hosted developer account from a provider like TellMe, and Voxeo. These companies provide developers with free access to hosted VoiceXML servers which include the speech recognition engine, text to speech engine, JavaScript engine, etc. that PhoneBlogger relies on. Another option is to install your own voice server. IBM provides a voice server as a free download for non-commercial use. But, you then have to figure out how to connect to it via a phone call, which involves way more detail than I can cover here. You could use a VoIP or SIP connection, but compared to using one of the hosted providers above, you would have to be a glutton for punishment to go this route if you are doing this just for fun. By the way, TellMe, Voxeo, and some of the other hosted providers also support VoIP and/or SIP access. PhoneBlogger uses several Python CGI scripts to copy files, convert audio formats, and post to your weblog. With PhoneBlogger 0.2 you no longer need to set up the included Python files to run as CGI scripts on the web server where the audio files will be stored. You can use the new useNewMediaObject configuration setting to have the CGI scripts send the audio file to your weblog via an XML-RPC call. One of the Python CGI scripts spawns a process to call SoX to convert the u-law WAV file generated by most VoiceXML servers to an uncompressed WAV file. This step was needed, because LAME does not support u-law WAV files. One of the Python CGI scripts spawns a process to call LAME to convert the WAV file generated by SoX to a 96 kbps MP3 file.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
If you enjoyed this post, make sure you subscribe to my RSS feed!

Leave a Reply

*