Pronunciation Dictionaries
update pronunciation dictionary
Changed onUpdates a pronunciation dictionary's name, entries or both. entries replaces the whole list. The save is live: sessions that start afterwards use the new entries, and running sessions keep the entries they started with.
Without expectedRevision, the update applies to the current revision and the last write wins. With it, the update is rejected with 409 REVISION_CONFLICT if the dictionary has been saved since that revision.
Entries are validated as a whole: if any entry is invalid, nothing is saved and the response lists every error by one-based row.
put/v1/pronunciation-dictionaries/{id}
Request
- Base URLhttps://api.anam.ai
- URLhttps://api.anam.ai/v1/pronunciation-dictionaries/{id}
- AuthHTTP bearer
Path parameters
idstring uuid required
Pronunciation dictionary ID
Request body
Example request
{
"name": "Brand names",
"entries": [
{
"text": "Anam",
"kind": "sounds_like",
"pronunciation": "annum",
"soundsLike": "annum"
}
],
"expectedRevision": 1
}Response
Successfully updated 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