synthesize
Converts text into spoken WAV files with selectable provider and voice, then returns the absolute file path and metadata for use in games, videos, or agent projects.
Instructions
Synthesize speech to a WAV file and return its absolute path plus metadata.
Args: text: Spoken line to generate. provider: piper | pocket | woof | cartesia (default from env / first healthy local). voice: Provider-specific voice id or name (Pocket also accepts an audio prompt URL). filename_hint: Optional short label included in the output filename.
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>"
},
"name": "synthesize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| voice | No | ||
| provider | No | ||
| filename_hint | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |