#!/usr/bin/env python
import os
import feedparser
feeds2Read = ['http://cypod.blogspot.com/rss.xml']
for feed in feeds2Read:
d = feedparser.parse(feed)
entry = 5
if len(d['entries']) < entry: entry = len(d['entries'])
for i in xrange(0,entry):
os.system('espeak "%s"' % d['entries'][i]['title'])
e = d.entries[i]
content = e.content
os.system('espeak "%s"' % content)
espeak is an open source speach synthesizer, the script uses it to handle the text to speach stuff. Feedparser handles all the html grepping, it's a little messy with some formating getting into the stream if there is some interests maybe some of you uberneird readers can post a one up in the comments
No comments:
Post a Comment