voc
Download and play English vocabulary's audio by command line.
The audio will be downloaded to directory ~/vocabulary
(this is configurable), and played by command line afplay
(this is configurable)
English online dictionary website:
Installation
$ npm install -g voc-cli
Usage
Usage: voc <words...>
Options:
-h, --help output usage information
-V, --version output the version number
-a, --audio <cli> the command line to play .mp3 audio. set defaults to 'afplay'
-d, --dir <path> set the download directory. set defaults to '~/vocabulary'
-l, --list list all the configuration
-r, --reset reset configuration to default
Example
$ voc hello
$ voc hello world
Configuration
$ voc -a mplayer
$ voc -d ~/my_vocabulary
License
MIT