Generate speech (text to speech)
generate_speechTurn text into spoken audio with GenMagic. Returns the audio inline plus a hosted URL. The text is voiced verbatim.
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": {
"input": "<input>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The text to speak, read aloud verbatim. | |
| model | No | Optional GenMagic model id for the speech (call list_models with category "audio" for the ids and prices). Omit it to let GenMagic choose its default. | |
| voice | No | Optional voice name (e.g. alloy); list_models shows each speech model's voices. Defaults to a neutral voice. |