Skip to main content
Gemini is a text-to-speech plugin. It uses Gemini TTS models with your Gemini API key: expressive voices whose delivery you steer with a plain-language style instruction. For Google Cloud Text-to-Speech, see Google TTS.

Setup

Set your Gemini API key in the worker environment. Generate a key from the Gemini site:

Usage

Import the plugin and pass it to the pipeline’s tts slot.
GeminiTTS ships in the Python SDK only. The Node JS SDK does not include this plugin yet.

Parameters

Constructor parameters for GeminiTTS.

Import paths

Synthesized audio is streamed back to the caller after the LLM produces a response.

Inference

This provider also runs through the Inference Gateway on your Zero Runtime auth token, with no Gemini API key. Import GeminiTTS from zeroruntime.inference instead of zeroruntime.plugins.