Skip to main content

Overview

Phrase replacements let you control how specific words and phrases are pronounced. This is useful for:
  • Brand names — convert English spellings to Urdu phonetics
  • Technical terms — ensure consistent pronunciation
  • LLM outputs — fix common misspellings from AI models
  • Regional variations — adapt to local dialects

client.tts.phraseReplacements.create(config)

Create a reusable phrase replacement configuration.

Using in TTS Requests

Pass the configId to any TTS method:

client.tts.phraseReplacements.list()

List all your phrase replacement configurations.

client.tts.phraseReplacements.get(configId)

Fetch a specific configuration by ID.

client.tts.phraseReplacements.update(configId, config)

Update an existing configuration.