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.)
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. |