Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Speaks the lyrics to 'Fitter Happier' from OK Computer. Requires python and Mac OS.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Author: Cameron Lane
Description: Demonstration of the mac os x `say` command from within python.
import sys,os,urllib2
def main():
accesses a text file containing the lyrics to 'Fitter Happier' from OK Computer by Radiohead
and speaks the text of the file using Mac OS X's say command.
URL = ''
f = urllib2.urlopen(URL)
os.system('sty -v fred %s' %
print "File not found. It's possible it has been moved"
print "done!"
if __name__ == '__main__':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.