Skip to main content
Hot reload and the on-prem migration APIs (add-voices, add-pdict) require release tag sonic-20260310 or later.

Hot reload

New voice artifacts are picked up automatically by your self-hosted deployment without requiring an API server restart. Hot reload is enabled by default. When a migration file lands in your GCS bucket, the API server detects and applies it automatically. No API server restarts or Helm upgrades are needed. To disable hot reload, set enable_hot_reload to false in your tfvars — see Managed Kubernetes for full configuration.

Adding voices

Add voices from the Cartesia voice library to your self-hosted deployment using the POST /onprem/add-voices endpoint. You can migrate up to 50 voices per request. The migration runs asynchronously — voices typically become available on your self-hosted deployment within 4–5 minutes.
This endpoint is called against the Cartesia cloud API (api.cartesia.ai), not your self-hosted deployment. Your API key must belong to an organization with an active on-prem contract.

Migrating to your dev bucket

Every on-prem organization has two artifact buckets: a production bucket (gs://cartesia-{name}) and a dev bucket (gs://dev-cartesia-{name}). Migrations target the production bucket by default. Set dev_bucket to true to migrate voices to the dev bucket instead, so you can test voices on a dev deployment before adding them to production.

Request body

Headers

Error responses

Verifying a voice

After migration completes, verify a voice is available on your self-hosted deployment with GET /voices/<id>.

Adding pronunciation dictionaries

Add pronunciation dictionaries from the Cartesia cloud to your self-hosted deployment using the POST /onprem/add-pdict endpoint. You can migrate up to 50 dictionaries per request. The migration runs asynchronously — dictionaries typically become available on your self-hosted deployment within 4–5 minutes.
This endpoint is called against the Cartesia cloud API (api.cartesia.ai), not your self-hosted deployment. Your API key must belong to an organization with an active on-prem contract, and must own each dictionary being migrated.
Like add-voices, this endpoint supports migrating to your dev bucket: set dev_bucket to true to target gs://dev-cartesia-{name} instead of your production bucket.

Request body

Headers

Error responses

Verifying a pronunciation dictionary

After migration completes, verify a dictionary is available on your self-hosted deployment with GET /pronunciation-dicts/<id>.