Phonetic

A C++ library for working with the CMU Pronouncing Dictionary.

A screenshot of the interface of Phonetic

The CMU Pronouncing Dictionary (CMUdict) describes itself as:

an open-source machine-readable pronunciation dictionary for North American English that contains over 134,000 words and their pronunciations.

It's the go-to dataset for pronunciations in English. There's various tooling that uses it, e.g. this Python library. But I was working in C++, building WebAssembly projects, and by the third time I was copy-pasting this code into a new project I decided it was time to make this into a small, self-complete library.

It's a simple library, that can easily be used in other project in which you need access to the pronunciations of English words.

I use it in: