Pronunciation Dictionaries
import pronunciation dictionary
Changed onCreates a pronunciation dictionary from a Cartesia pronunciation dictionary file: an array of { text, pronunciation, case_sensitive? } rows, with an optional Anam sounds_like fallback. A pronunciation containing << or >> is imported as an IPA entry; anything else is a sounds-like entry.
The file is validated as a whole: it must hold 1 to 500 rows and at most 1 MiB of UTF-8 JSON. When json is an array, the limit applies to the array serialized without whitespace. If any row is invalid, nothing is saved and the response lists every error by one-based row and file field name.
post/v1/pronunciation-dictionaries/import
Request
- Base URLhttps://api.anam.ai
- URLhttps://api.anam.ai/v1/pronunciation-dictionaries/import
- AuthHTTP bearer
Request body
Example request
{
"name": "Brand names"
}Response
Successfully imported pronunciation dictionary
Example response
{
"id": "4f600129-13cf-4bfa-909a-2f4c31467f43",
"name": "Brand names",
"revision": 1,
"entries": [
{
"text": "Anam",
"kind": "sounds_like",
"pronunciation": "annum",
"soundsLike": "annum"
}
]
}Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info