set_rules
Add or update alias and phoneme rules on a pronunciation dictionary by ID to control exact word and phrase pronunciation.
Instructions
Set Rules On The Pronunciation Dictionary
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pronunciation_dictionary_id": "<pronunciation_dictionary_id>",
"rules": "<rules>"
},
"name": "set_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | List of pronunciation rules. Rule can be either: an alias rule: {'string_to_replace': 'a', 'type': 'alias', 'alias': 'b', } or a phoneme rule: {'string_to_replace': 'a', 'type': 'phoneme', 'phoneme': 'b', 'alphabet': 'ipa' } | |
| pronunciation_dictionary_id | Yes | The id of the pronunciation dictionary |