estimate_tts_cost
Estimate TTS credit costs locally before synthesis from text, voice, and account entitlements; no audio generated or final billing.
Instructions
Estimate TTS locally using backend text/SSML counting rules, account multipliers and current voice/account entitlements from existing APIs. Final settlement is performed by the synthesis backend. Show only display.estimated_costs as estimated credits, including when the selected entitlement uses characters. Raw costs retain the selected entitlement for budgets; do not show billable characters/seconds as the price. Does not synthesize.
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>",
"voice_id": "<voice_id>",
"accent": "<accent>"
},
"name": "estimate_tts_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| pitch | No | ||
| speed | No | ||
| style | No | ||
| accent | Yes | ||
| volume | No | ||
| voice_id | Yes | A public voice ID returned by the speech catalog. | |
| stability | No | ||
| similarity | No | ||
| emotion_name | No | Default | |
| exaggeration | No | ||
| article_title | No | Speech |