curl --request POST \
--url https://api.slng.ai/v1/pronunciation/dictionaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "brand-pronunciations",
"metadata": {
"language": "hi-IN",
"providers": [
"sarvam",
"cartesia"
]
},
"modes": {
"rewrite": {
"rules": [
{
"match": "NAIC",
"replace": "en ay eye see"
},
{
"match": "B2B",
"replace": "bee to bee"
}
]
}
}
}
'{
"id": "pd_01abc...",
"org_id": "org_123",
"name": "brand-pronunciations",
"normalized_name": "brand-pronunciations",
"modes": {
"rewrite": {
"rules": [
{
"match": "NAIC",
"replace": "en ay eye see"
}
]
},
"ipa": {
"rules": [
{
"match": "SLNG",
"ipa": "slɪŋ"
}
]
}
},
"content_hash": "sha256:...",
"created_at": "2026-05-15T12:00:00.000Z",
"metadata": {
"language": "hi-IN",
"providers": [
"sarvam",
"cartesia"
]
},
"created_by_key_label": "production-key"
}Create pronunciation dictionary
Create a reusable pronunciation dictionary for TTS rewrite rules.
curl --request POST \
--url https://api.slng.ai/v1/pronunciation/dictionaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "brand-pronunciations",
"metadata": {
"language": "hi-IN",
"providers": [
"sarvam",
"cartesia"
]
},
"modes": {
"rewrite": {
"rules": [
{
"match": "NAIC",
"replace": "en ay eye see"
},
{
"match": "B2B",
"replace": "bee to bee"
}
]
}
}
}
'{
"id": "pd_01abc...",
"org_id": "org_123",
"name": "brand-pronunciations",
"normalized_name": "brand-pronunciations",
"modes": {
"rewrite": {
"rules": [
{
"match": "NAIC",
"replace": "en ay eye see"
}
]
},
"ipa": {
"rules": [
{
"match": "SLNG",
"ipa": "slɪŋ"
}
]
}
},
"content_hash": "sha256:...",
"created_at": "2026-05-15T12:00:00.000Z",
"metadata": {
"language": "hi-IN",
"providers": [
"sarvam",
"cartesia"
]
},
"created_by_key_label": "production-key"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Unique dictionary name within the authenticated organization.
128^[A-Za-z0-9._-]+$"brand-pronunciations"
Pronunciation modes stored on the dictionary. Only rewrite is executable today.
Show child attributes
Show child attributes
Optional application metadata stored with the dictionary.
{
"language": "hi-IN",
"providers": ["sarvam", "cartesia"]
}Response
Pronunciation dictionary created.
Immutable pronunciation dictionary identifier.
"pd_01abc..."
Organization that owns the dictionary.
"org_123"
Dictionary name.
"brand-pronunciations"
Normalized dictionary name used for lookups.
"brand-pronunciations"
Pronunciation modes stored on the dictionary. Only rewrite is executable today.
Show child attributes
Show child attributes
Content hash for the stored dictionary.
"sha256:..."
Creation timestamp.
"2026-05-15T12:00:00.000Z"
Optional application metadata stored with the dictionary.
{
"language": "hi-IN",
"providers": ["sarvam", "cartesia"]
}API key label that created the dictionary, when available.
"production-key"
Was this page helpful?