CMUSphinxDict
Wrapper for CMU Sphinx Pronouncing Dictionary. It's a hashtable that maps words to phonemes.
Install
npm install cmusphinxdict
Usage
Single word
CMUSphinxDict;
Multiple words
CMUSphinxDict;
Special character lookup
CMUSphinxDict;
Add additional pronouncings
additionalPronouncings.json
var file = fs; CMUSphinxDict;
Command line
$ cmusphinxdict hello world HELLO HH AH L OW HH EH L OWWORLD W ER L D
JSON format:
$ cmusphinxdict hello world --format=json "HELLO": "HH AH L OW" "HH EH L OW" "WORLD": "W ER L D"
Aliases for format: -f=[type]
, --format=[type]
, --json
Format types: json
, text
(default)
License
CMU Pronouncing Dictionary is release under the Public Domain.
Everything else is released under the MIT License.