voc
Download and play English vocabulary's audio via command line.
The audio will be downloaded to directory ~/vocabulary
(this is configurable), and played by command line afplay
(this is configurable too)
Dictionary:
Text-To-Speech:
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
-y, --yahoo force download audio from yahoo
-g, --google force download audio from google
-i, --ispeech force download audio from ispeech
-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
$ voc hello_world -i
Configuration
$ voc -a mplayer
$ voc -d ~/my_vocabulary
License
MIT