Pronunciation API

Free · Livelanguage

Pronunciation of English words: ARPABET and IPA transcriptions, stress, and syllable counts, from the CMU Pronouncing Dictionary.

https://api.gargantuan.dev/v1/pronunciationFull reference →

Quick start

No key needed. Try a request right now:

Request
curl "https://api.gargantuan.dev/v1/pronunciation/languages"

Or open it in your browser: https://api.gargantuan.dev/v1/pronunciation/languages

Authentication & limits

No key required. Anonymous callers are rate-limited by IP. Send Authorization: Bearer <key> (or an X-Api-Key header) for a higher tier.

With a key (higher tier)
curl "https://api.gargantuan.dev/v1/pronunciation/languages" \
  -H "Authorization: Bearer YOUR_API_KEY"

Also accepts X-Api-Key or ?api_key=. Limits ride in X-RateLimit-* headers; over the limit returns 429. See rate limits.

Datasets

Pick one with ?lang= (or the relevant param). 1 available:

DatasetCodeLocaleEntries
Englishenen126,052

Endpoints

Edit the inputs and hit Send request to try any endpoint live, right here. No key needed.

GET/v1/pronunciation/languages

List the supported languages (datasets).

Request
https://api.gargantuan.dev/v1/pronunciation/languages
GET/v1/pronunciation/random

Return a random word with its pronunciation.

Request
https://api.gargantuan.dev/v1/pronunciation/random?lang=en
GET/v1/pronunciation/search

Autocomplete: words that start with a prefix.

Request
https://api.gargantuan.dev/v1/pronunciation/search?q=pron&limit=5&lang=en
GET/v1/pronunciation/syllables/{word}

Syllable count of a word.

Request
https://api.gargantuan.dev/v1/pronunciation/syllables/pronunciation?lang=en
GET/v1/pronunciation/{word}

Pronunciations (ARPABET + IPA), stress pattern, and syllable count.

Request
https://api.gargantuan.dev/v1/pronunciation/serendipity?lang=en

FAQ

Is the Pronunciation API free to use?

Yes. It is free and public. Anonymous requests need no key and are rate-limited by IP; a free API key raises your limits.

Do I need an API key?

No key is required to start. Send an Authorization: Bearer key (or an X-Api-Key header, or ?api_key=) to move to a higher tier.

What is the base URL?

https://api.gargantuan.dev/v1/pronunciation

What are the rate limits?

Every response carries X-RateLimit-Limit and X-RateLimit-Remaining headers. Anonymous callers get the lowest tier (by IP); a free key is higher; Pro is highest. Over the limit returns 429 with Retry-After.

What format does it return?

JSON over HTTPS. Every response also includes a "source": "itsmattgeorge.com" attribution field.

About the Pronunciation API

The Pronunciation API turns an English word into the data you need to say it, show it, or analyze it: a phonetic transcription, a syllable count, and which syllable carries the stress. Its backbone is the CMU Pronouncing Dictionary, an open, machine readable pronunciation dictionary of North American English maintained at Carnegie Mellon University with well over a hundred thousand entries (source).

That dictionary writes each pronunciation in ARPABET, a scheme created for the DARPA speech research of the 1970s that represents the sounds of American English with plain ASCII letters, for example K AE1 T for cat. ARPABET is compact and trivial for software to parse, which is why it became a fixture of text to speech and speech recognition pipelines.

For a human facing display the API also returns the International Phonetic Alphabet, the cross language standard maintained by the International Phonetic Association for representing speech sounds. IPA is what you see printed in a dictionary, so one request can feed both a speech engine (ARPABET) and a reader (IPA).

The numeral on an ARPABET vowel marks lexical stress (0 for none, 1 for primary, 2 for secondary), which is how the API knows that record is stressed differently as a noun and as a verb. Counting the vowels in the transcription yields the syllable count that drives meter analysis, readability scoring, and tools for poetry and songwriting.

Sources (7)
  1. CMU Pronouncing Dictionary (Wikipedia)
  2. CMU Pronouncing Dictionary, source (CMUSphinx on GitHub)
  3. ARPABET (Wikipedia)
  4. International Phonetic Alphabet (Wikipedia)
  5. International Phonetic Association
  6. Stress in linguistics (Wikipedia)
  7. Syllable (Wikipedia)
Full reference & authentication
Params, live responses, keys, and every endpoint in one place.
Open the docs →