Referencia de la API

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

  • 200 Successful Response · PronunciationDictionaryList
    NombreTipoRequeridoDescripció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í
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role 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). · ErrorResponse
  • 503 Dictionaries are not available. · ErrorResponse
  • default Default 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

NombreTipoRequeridoDescripción
languagestring | null
namestringsí
rulesPronunciationRuleInput[]sí
rules[].aliasstringsí
rules[].case_sensitiveboolean
rules[].graphemestringsí

Respuestas

  • 201 Successful Response · PronunciationDictionaryResponse
    NombreTipoRequeridoDescripció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í
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this needs. · ErrorResponse
  • 409 Another dictionary has this name. · ErrorResponse
  • 503 Dictionaries are not available. · ErrorResponse
  • default Default 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

NombreEnTipoRequeridoDescripción
dictionary_idpathstring (uuid)sí

Respuestas

  • 200 Successful Response · PronunciationDictionaryResponse
    NombreTipoRequeridoDescripció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í
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role 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). · ErrorResponse
  • 404 No such dictionary in the caller's tenant. · ErrorResponse
  • 503 Dictionaries are not available. · ErrorResponse
  • default Default 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

NombreEnTipoRequeridoDescripción
dictionary_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
languagestring | null
namestringsí
rulesPronunciationRuleInput[]sí
rules[].aliasstringsí
rules[].case_sensitiveboolean
rules[].graphemestringsí

Respuestas

  • 200 Successful Response · PronunciationDictionaryResponse
    NombreTipoRequeridoDescripció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í
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this needs. · ErrorResponse
  • 404 No such dictionary in the caller's tenant. · ErrorResponse
  • 409 Another dictionary has this name. · ErrorResponse
  • 503 Dictionaries are not available. · ErrorResponse
  • default Default 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

NombreEnTipoRequeridoDescripción
dictionary_idpathstring (uuid)sí

Respuestas

  • 204 Successful Response
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this needs. · ErrorResponse
  • 404 No such dictionary in the caller's tenant. · ErrorResponse
  • 503 Dictionaries are not available. · ErrorResponse
  • default Default Response · ErrorResponse