speak
Generate speech from text via Gemini TTS, saving a WAV file to the output location you specify.
Instructions
Text to speech with Gemini TTS. Saves a WAV to output_path. (Music generation rides with the Live API in a later version.)
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>",
"output_path": "<output_path>"
},
"name": "speak"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | ||
| voice | No | Prebuilt voice name, e.g. Kore, Puck, Charon, Aoede. | |
| output_path | Yes | Where to save the .wav file. |