voc
Download and play English vocabulary's audio via command line.
The audio will be downloaded to directory ~/vocabulary
by default, and played by audio player command line.
Dictionary:
Text-To-Speech:
Change Log
Please see CHANGELOG.
Installation
$ npm install -g voc-cli
or
$ git clone https://github.com/zlargon/voc.git
$ cd voc/
$ npm link
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
-f, --freedic force download audio from freedictionary
-c, --collins force download audio from collins
-g, --google force download audio from google
-i, --ispeech force download audio from ispeech
-v, --voicerss force download audio from voicerss
-a, --audio <cli> the command line to play .mp3 audio.
-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
Audio Player Command Line
Configuration
$ voc -d ~/my_vocabulary
$ voc -a mplayer
$ voc -a "dlc -p"
License
MIT