Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
GeminiRealtime
Speech-to-speech conversation with the Gemini Live API, e.g. “gemini-3.8-live”. Use it when one model should listen, reason and talk with minimal latency. Authenticates with GOOGLE_API_KEY from your environment, or an explicitapi_key.
Fields
Gemini Live model name, e.g. “gemini-3.8-live”. Defaults to ‘gemini-3.8-live’.
Model settings as a dict, e.g. voice (“Puck”, “Kore”), language_code, temperature, max_output_tokens, response_modalities and transcription options. Defaults to None (not set).
Path to a Google Cloud service account JSON file, used instead of an API key. Defaults to None (not set).
Connect through Vertex AI on Google Cloud instead of the Gemini API. Defaults to False.