Skip to content
VoiceMint Developers

Generate Pronunciation

POST/language/pronunciation

Generate pronunciation guide for text.

Authentication

Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication.

Request body

application/json

FieldTypeDescription
dialectDialectCode
include_audioboolean
language*LanguageCode
one of en, es, fr, de, it, pt, ru, zh, ja, ko, ar, hi, nl, pl, tr, sv, da, no, fi, el, he, cs, hu, ro, th, vi, id, ms, auto
Common language codes (ISO 639-1).
phonetic_systemstringPhonetic system (ipa, arpabet)
speech_ratenumber
text*stringText to pronounce

Response

200 application/json

FieldTypeDescription
audio_urlstring
ipa_symbolsobject[]
phonetic_system*string
phonetic_transcription*string
pronunciation_tipsstring[]
stress_pattern*integer[]
syllable_breakdown*string[]
{
  "phonetic_system": "string",
  "phonetic_transcription": "string",
  "stress_pattern": [
    0
  ],
  "syllable_breakdown": [
    "string"
  ]
}

Errors

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over a rate limit; retry after `Retry-After` seconds.

All statuses: Errors.

Example

curl -X POST "https://api.voicemint.io/api/v1/language/pronunciation" \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "dialect": "en-US",
  "include_audio": true,
  "language": "en",
  "phonetic_system": "ipa",
  "speech_rate": 1,
  "text": "string"
}'