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
| Field | Type | Description |
|---|---|---|
dialect | DialectCode | |
include_audio | boolean | |
language* | LanguageCodeone 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_system | string | Phonetic system (ipa, arpabet) |
speech_rate | number | |
text* | string | Text to pronounce |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
audio_url | string | |
ipa_symbols | object[] | |
phonetic_system* | string | |
phonetic_transcription* | string | |
pronunciation_tips | string[] | |
stress_pattern* | integer[] | |
syllable_breakdown* | string[] |
{
"phonetic_system": "string",
"phonetic_transcription": "string",
"stress_pattern": [
0
],
"syllable_breakdown": [
"string"
]
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over 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"
}'