Archive

Posts Tagged ‘pronunciation’

A command-line, interactive mini dictionary

March 29, 2012 Leave a comment

In Google, you can use the search term “define:word” to get the definition of a given word. Google can also pronounce the word.

I’ve made a simple script that gives similar functionalities from the command-line. Usage: just type in a word. The script is part of my jabbapylib library; available here.

Screenshot

------------------------------------------
Jabba's Interactive Mini Dictionary v0.1.0
q - quit | c - clear
------------------------------------------
>>> barkeeper
===Definition===
(noun)
A person who owns or operates a bar for the sale of alcoholic beverages.
===Examples===
(1) Aaron called the barkeeper over and asked for a beer.
(2) The barkeeper was the only human in the establishment; all of the patrons were stout, broad-faced halflings.
>>>

It’s not visible here, but the script pronounces the given word too.

The script uses the API of wordnik.com, so you’ll need to ask an API key (free). More info here.

Audio pronunciation of words from Google

March 27, 2012 Leave a comment

Amit Agarwal has a nice post entitled “Download the Audio Pronunciation of Words from Google“.

In short
Take the following template URL:

https://ssl.gstatic.com/dictionary/static/sounds/de/0/WORD.mp3

And replace WORD with the word you want to hear pronounced. With mplayer and vlc I couldn’t play them directly, first I had to download them with wget.

Examples:

Update
This is implemented in my jabbapylib library, see here.

Categories: google Tags: ,

A little help for hyphenating words in LaTeX

September 28, 2011 Leave a comment

Problem
When working with LaTeX, sometimes I’m not sure if a word is correctly hyphenated by LaTeX so I’d like to verify that. As I’m not a native English speaker, it’d be nice to hear the correct pronunciation too.

Solution
I made a little script that addresses the two problems (available here). It’s part of my jabbapylib library. The script relies on dictionary.com.

Follow

Get every new post delivered to your Inbox.

Join 44 other followers