> 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. # setPronunciations > Replace the agent's pronunciation rules in a single call. [ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base [ref-add-pronunciation]: /docs/server-sdks/reference/typescript/agents/agent-base/add-pronunciation Replace every pronunciation rule on the agent with the provided array. Use [`addPronunciation()`][ref-add-pronunciation] to append a single rule without replacing the list. ## **Parameters** **`rules`** `PronunciationRule[]` — required Ordered list of pronunciation rules. Each rule has `replace` (the spelled-out token), `with` (the phonetic replacement), and an optional `ignoreCase` boolean. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {5-9} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.setPromptText('You are a helpful assistant.'); agent.setPronunciations([ { replace: 'SignalWire', with: 'signal wire' }, { replace: 'SWML', with: 'swim el' }, { replace: 'SWAIG', with: 'swayg' }, ]); await agent.serve(); ``` > Replace the agent's pronunciation rules in a single call.