Skip to Content
Pronunciation

Create a pronunciation table

Permissionpronunciation-tables:createRetriesIdempotency-Key requiredAuthentication
POST
/pronunciation-tables

Creates an ordered set of TTS-only text substitutions. The stored definition is normalized in the response.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
slug*string

Immutable workspace-unique slug.

Match^[a-z0-9_-]+$
Length2 <= length <= 64
name*string
Length1 <= length <= 200
description?|

Blank strings normalize to null.

Lengthlength <= 2000
definition?

Response Body

Pronunciation table created.

application/json
  1. response

Complete normalized table. configuration_errors is omitted for canonical rows. When present, it identifies invalid legacy or out-of-band stored fields and entries omitted from the safe definition. A malformed root/container or an encoded definition above 1,048,576 bytes returns the canonical empty definition; a legacy array above 250 entries is truncated before entries are normalized. Repair by replacing the complete definition with the current ETag.

id*string
Formatuuid
slug*string
name*string
description*string|null
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
definition*
configuration_errors?array<>

Exact repair diagnostics for legacy stored content. Invalid entries are not assumed to execute at call time. Correct every field and PATCH one complete definition using the current ETag.

Items1 <= items
Example Request
curl -X POST 'https://api.kejue.co/v1/pronunciation-tables' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "slug": "string",  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "name": "string",  "description": "string",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "definition": {    "entries": [      {        "id": "string",        "from": "string",        "to": "string",        "match": "word",        "case_sensitive": true      }    ]  },  "configuration_errors": [    {      "path": "string",      "code": "string",      "message": "string"    }  ]}