Generate Speech
generate_speechConverts text to speech with Kokoro TTS, letting Claude produce audio files or base64 data with selectable voices, speed, and formats.
Instructions
Generate speech from text using Kokoro TTS.
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": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to convert to speech | |
| speed | No | Speech speed multiplier (0.5-2.0) | |
| voice | No | Voice name or blended voice (e.g., 'af_bella(2)+af_sky(1)') | af_bella |
| save_to_file | No | Save to file (returns path) or return base64 data | |
| output_format | No | Audio format (mp3, wav, opus) | mp3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||