Frequently i had a visits to google to search for some word pronunciations.
So I wrote this small script to save my time.
you need to install mpg123 before you run this script
by
$ sudo apt-get install mpg123
spellit.py
So I wrote this small script to save my time.
you need to install mpg123 before you run this script
by
$ sudo apt-get install mpg123
spellit.py
#!/usr/bin/python import os import sys url = 'http://ssl.gstatic.com/dictionary/static/sounds/de/0/' if len(sys.argv[:]) != 2: print 'usage: ./spellit.py word' exit(0) word = sys.argv[1] final = url+word+'.mp3' os.system('mpg123 -q %s'% final)
Comments
Post a Comment