> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # add_pronunciation > Add a pronunciation rule to correct how the AI speaks a specific word or phrase. [ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base Add a pronunciation rule that tells the TTS engine how to speak a specific word or phrase. Useful for brand names, acronyms, and technical terms that are commonly mispronounced by text-to-speech engines. ## **Parameters** **`replace`** `str` — required The expression to match in the AI's output text. --- **`with_text`** `str` — required The phonetic spelling or alternative text the TTS engine should speak instead. --- **`ignore_case`** `bool` — default: False Whether to ignore case when matching the `replace` expression. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns self for method chaining. ## **Example** ```python {5-6} from signalwire import AgentBase agent = AgentBase(name="support", route="/support") agent.set_prompt_text("You are a helpful assistant.") agent.add_pronunciation("SQL", "sequel") agent.add_pronunciation("SWAIG", "swig", ignore_case=True) agent.serve() ``` > Add a pronunciation rule to correct how the AI speaks a specific word or phrase.