Pronunciación
Diccionarios de pronunciación: cómo se dice cada forma escrita.
GET /v1/pronunciation-dictionaries
List the pronunciation dictionaries of my organization
Solo para usuarios con sesión iniciada (sin API key) · Rol: viewer o superior
Any signed-in member. Each rule replaces the written form `grapheme` (a whole word or phrase, never part of a word) with `alias`, how it is said, in the text sent to the voice (pipeline assistants only). Case is ignored unless `case_sensitive`. Phonemes (IPA, CMU) are not supported. An assistant attaches dictionaries by id in `config.pronunciation.dictionary_ids`. 401 when the token is missing, expired or invalid; 503 when dictionaries are not available.
Respuestas
200Successful Response · PronunciationDictionaryListNombre Tipo Requerido Descripción itemsPronunciationDictionaryResponse[]sí items[].created_atstring (date-time)sí items[].idstring (uuid)sí items[].languagestring | nullsí items[].namestringsí items[].rulesPronunciationRuleResponse[]sí items[].rules[].aliasstringsí items[].rules[].case_sensitivebooleansí items[].rules[].graphemestringsí items[].updated_atstring (date-time)sí 401Missing, expired or invalid token. · ErrorResponse403Role below the one in `x-min-role`, a suspended organization, or an API key without the operation's `x-api-key-scope` (any key, if the operation has none). · ErrorResponse503Dictionaries are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
POST /v1/pronunciation-dictionaries
Create a pronunciation dictionary
Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior
An `editor` or above. `name` (up to 80, unique in the organization), optional `language` (a tag such as `es-AR`) and up to 500 `rules`; up to 100 dictionaries per organization. Each rule replaces the written form `grapheme` (a whole word or phrase, never part of a word) with `alias`, how it is said, in the text sent to the voice (pipeline assistants only). Case is ignored unless `case_sensitive`. Phonemes (IPA, CMU) are not supported. Written to the audit log as `pronunciation_dictionary.create` (counts only, never the rules). 401 when the token is missing, expired or invalid; 403 below `editor`; 409 when the name is taken or the organization is at the limit; 422 when a field is invalid; 503 when dictionaries are not available.
Cuerpo de la solicitud
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
language | string | null | ||
name | string | sí | |
rules | PronunciationRuleInput[] | sí | |
rules[].alias | string | sí | |
rules[].case_sensitive | boolean | ||
rules[].grapheme | string | sí |
Respuestas
201Successful Response · PronunciationDictionaryResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí idstring (uuid)sí languagestring | nullsí namestringsí rulesPronunciationRuleResponse[]sí rules[].aliasstringsí rules[].case_sensitivebooleansí rules[].graphemestringsí updated_atstring (date-time)sí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse409Another dictionary has this name. · ErrorResponse503Dictionaries are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
GET /v1/pronunciation-dictionaries/{dictionary_id}
One pronunciation dictionary
Solo para usuarios con sesión iniciada (sin API key) · Rol: viewer o superior
Any signed-in member. 401 when the token is missing, expired or invalid; 404 when the dictionary is not in the caller's organization; 503 when dictionaries are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
dictionary_id | path | string (uuid) | sí |
Respuestas
200Successful Response · PronunciationDictionaryResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí idstring (uuid)sí languagestring | nullsí namestringsí rulesPronunciationRuleResponse[]sí rules[].aliasstringsí rules[].case_sensitivebooleansí rules[].graphemestringsí updated_atstring (date-time)sí 401Missing, expired or invalid token. · ErrorResponse403Role below the one in `x-min-role`, a suspended organization, or an API key without the operation's `x-api-key-scope` (any key, if the operation has none). · ErrorResponse404No such dictionary in the caller's tenant. · ErrorResponse503Dictionaries are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
PUT /v1/pronunciation-dictionaries/{dictionary_id}
Replace a pronunciation dictionary
Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior
An `editor` or above. Replaces the name, language and every rule. The change applies to calls that start after it. Audited as `pronunciation_dictionary.update`. 401 when the token is missing, expired or invalid; 403 below `editor`; 404 when the dictionary is not in the caller's organization; 409 when the name is taken; 422 when a field is invalid; 503 when dictionaries are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
dictionary_id | path | string (uuid) | sí |
Cuerpo de la solicitud
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
language | string | null | ||
name | string | sí | |
rules | PronunciationRuleInput[] | sí | |
rules[].alias | string | sí | |
rules[].case_sensitive | boolean | ||
rules[].grapheme | string | sí |
Respuestas
200Successful Response · PronunciationDictionaryResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí idstring (uuid)sí languagestring | nullsí namestringsí rulesPronunciationRuleResponse[]sí rules[].aliasstringsí rules[].case_sensitivebooleansí rules[].graphemestringsí updated_atstring (date-time)sí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such dictionary in the caller's tenant. · ErrorResponse409Another dictionary has this name. · ErrorResponse503Dictionaries are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
DELETE /v1/pronunciation-dictionaries/{dictionary_id}
Delete a pronunciation dictionary
Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior
An `editor` or above. An assistant version that still names it keeps working (the dictionary is skipped); a draft that names it cannot be saved. Audited as `pronunciation_dictionary.delete`. 401 when the token is missing, expired or invalid; 403 below `editor`; 404 when the dictionary is not in the caller's organization; 503 when dictionaries are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
dictionary_id | path | string (uuid) | sí |
Respuestas
204Successful Response401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such dictionary in the caller's tenant. · ErrorResponse503Dictionaries are not available. · ErrorResponsedefaultDefault Response · ErrorResponse