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 too)
English Website:
Installation
$ npm install -g voc-cli
Usage
Usage: voc <words...>
Options:
-h, --help output usage information
-V, --version output the version number
-w, --webster force download audio from webster
-v, --voicetube force download audio from voicetube
-y, --yahoo force download audio from yahoo
-g, --google force download audio from google
-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
$ voc hello_world -g
Configuration
$ voc -a mplayer
$ voc -d ~/my_vocabulary
License
MIT