r/wiktionary • u/AlexanderRodin • 16h ago
A program that fetches IPA pronunciations for General American and Received Pronunciation from Wiktionary
I wrote a program that fetches pronunciations in IPA format from Wiktionary. It also gives links to sounds with pronunciations. For example, when this program is invoked as
./wiktionary-text-to-ipa peace
it outputs
{"generalAmerican":"ˈpis","receivedPronunciation":"ˈpiːs","word":"peace"}
It also can give URLS of sounds with actual pronunciations and these sounds can be played using a combination of `jq`, `curl`, and `vlc`.
It is released under GPLv2+ license in the Git repository https://github.com/alexander-rodin2/wiktionary-text-to-ipa.

