***

title: set_pronunciations
slug: /reference/python/agents/agent-base/set-pronunciations
description: Replace all pronunciation rules at once with a list of raw rule dictionaries.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Replace all pronunciation rules at once with a list of raw rule dictionaries.

## **Parameters**

<ParamField path="pronunciations" type="list[dict[str, Any]]" required={true} toc={true}>
  List of pronunciation rule dictionaries. Each dictionary must contain `replace` and
  `with` keys, and optionally `ignore_case`.
</ParamField>

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.set_pronunciations([
    {"replace": "SQL", "with": "sequel"},
    {"replace": "SWML", "with": "swimmel", "ignore_case": True},
    {"replace": "IEEE", "with": "I triple E"}
])
agent.serve()
```