add_from_file
Add a pronunciation dictionary to ElevenLabs from a local .pls file or Base64 content, enabling custom pronunciations for text-to-speech projects.
Instructions
Add A 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": {
"name": "<name>"
},
"name": "add_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the pronunciation dictionary, used for identification only. | |
| file_path | No | A lexicon .pls file which we will use to initialize the project with. Local path. | |
| description | No | A description of the pronunciation dictionary, used for identification only. | |
| file_base64 | No | Base64 contents for "file". Use this when the server cannot read your local disk. | |
| file_filename | No | Filename to send for "file". Some endpoints infer the audio format from it. | |
| workspace_access | No | Should be one of 'admin', 'editor' or 'viewer'. If not provided, defaults to no access. |