pronunciation-apply
Pronunciation lexicon to SSML phoneme and sub tags — Applies your pronunciation lexicon (up to 200 terms, each an IPA string or a spoken alias) to a text of up to 20000 characters and returns SSML 1.1 with or around each whole-word match, XML-escaped, for an agent preparing text for a text-to-speech engine. Matching is whole-word, longest term first, left to right, deterministic. It does not guess pronunciations,
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": {
"text": "<text>",
"lexicon": "<lexicon>"
},
"name": "pronunciation-apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | xml:lang of the speak element (default en-US). | |
| text | Yes | ||
| lexicon | Yes | ||
| wrapSpeak | No | Wrap in <speak version="1.1"> (default true). |