generate_speech
Convert text into audio using Gemini 2.5 Flash/Pro TTS, pick a voice, apply natural-language style directions, and optionally save the result as a WAV file.
Instructions
Generate high-quality speech from text using Gemini 2.5 Flash/Pro TTS models.
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 | The text to convert to speech. You can include performance notes like 'Say cheerfully: ...' | |
| model | No | The Gemini model to use (default: gemini-2.5-flash-preview-tts). | |
| voice | No | The prebuilt voice to use (default: Aoede). Use list_voices to see all options. | |
| outputPath | No | Optional local path to save the generated audio as a .wav file. |