Create a pronunciation dictionary
Create a new pronunciation dictionary for the authenticated organization. Each dictionary contains a list of items that control how specific words are spoken. Items can be alias type (text replacement) or phoneme type (IPA pronunciation notation).
As an alternative to providing items directly as JSON, you can upload a dictionary file (PLS/XML or plain text format, max 1MB) using multipart/form-data. PLS files use the standard W3C Pronunciation Lexicon Specification XML format. Text files use a line-based format: word=alias for aliases, word:/phoneme/ for IPA phonemes.
Limits:
- Maximum 50 dictionaries per organization
- Maximum 100 items per dictionary
- Text: max 200 characters
- Alias/phoneme value: max 500 characters
- File upload: max 1MB (1,048,576 bytes)
Authorizations
Telnyx API v2 key. Obtain from https://portal.telnyx.com
Body
Request body for creating a pronunciation dictionary.
Human-readable name. Must be unique within the organization.
1 - 255"Brand Names"
List of pronunciation items (alias or phoneme type). At least one item is required.
1 - 100 elementsA single pronunciation dictionary item. Use type 'alias' to replace matched text with a spoken alias, or type 'phoneme' to specify exact pronunciation using IPA notation.
- Option 1
- Option 2
Response
Pronunciation dictionary created successfully.
Response containing a single pronunciation dictionary.
A pronunciation dictionary record.