> 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. # addPronunciation > Add a pronunciation rule to correct how the AI speaks a specific word or phrase. [ref-agentbase]: /docs/server-sdks/reference/typescript/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** **`rule`** `PronunciationRule` — required A pronunciation rule object with the following fields: --- **`rule.replace`** `string` — required The expression to match in the AI's output text. --- **`rule.with`** `string` — required The phonetic spelling or alternative text the TTS engine should speak instead. --- **`rule.ignoreCase`** `boolean` Whether to ignore case when matching the `replace` expression. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {5} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.setPromptText('You are a helpful assistant.'); agent.addPronunciation({ replace: 'SQL', with: 'sequel' }); agent.addPronunciation({ replace: 'SWAIG', with: 'swig', ignoreCase: true }); await agent.serve(); ``` > Add a pronunciation rule to correct how the AI speaks a specific word or phrase.