See https://github.com/brawer/PronunBot for source code and description.