Plays/downloads the Wiktionary pronounciation of a word.

Jade Levesque fdb5f37f59 Added the limit option 1 week ago
COPYING 0cc9f2e659 Init commit 1 week ago
README.md fdb5f37f59 Added the limit option 1 week ago
pronounce.sh fdb5f37f59 Added the limit option 1 week ago

README.md

pronounce.sh

Plays/downloads the Wiktionary pronunciation of a word.
Usage: "pronounce.sh WORD [limit -po filename]"

If you use the limit option, then write a number-- then only that number of pronunciations (if available) will be played.

If you use the "-p" option, then instead of saving the pronunciation, it will be played.

If you use the "-o" option, then it will be saved to the specified filename.

If you use both ("-po"), then it'll do both.

Oh, and the options must come after the word.

There's a bloody eel in my hovercraft, dammit! How do I say hovercraft?

$ pronounce.sh hovercraft 1 -p

Only tested on OpenBSD's ksh, but it should work on bash and other modern shells.