What you need
Getting a service-account JSON
- In the Google Cloud Console, select or create a project.
- Enable the Cloud Text-to-Speech API on it.
- Go to IAM & Admin → Service Accounts and create one.
- Open its Keys tab, choose Add Key → Create new key, and select JSON.
- The file downloads once. Store it securely and treat it as a secret.
private_key and client_email.
Adding the connection
- Go to Connections and choose Gemini TTS.
- Use Upload JSON to attach the service-account file.
- Save.
What you can select afterwards
Choose your model on Model Configurations. Model — use aflash model on calls. pro is slower and the delay is audible to the caller. See Google’s speech generation models.
Voice — Kore is the default. Google’s voice list describes how each one sounds.
Language — see Google’s speech generation models for current coverage.
Style prompt — optional. Describes delivery, for example Speak warmly and unhurriedly, like a receptionist who is not in a rush. Shapes tone, pace, and accent for the whole call. Blank gives the default delivery.
Region — optional server region, such as us-central1. Set per workflow, not on the connection.
Which Google voice connection to use
Each is a separate connection with its own credential.
Troubleshooting
I have an AI Studio API key, not a service account
I have an AI Studio API key, not a service account
Gemini TTS does not accept one. An AI Studio key drives the language model and belongs on the Gemini connection.
Voice fails at call time although the JSON was accepted
Voice fails at call time although the JSON was accepted
Enable the Cloud Text-to-Speech API on the service account’s project. Without it the credential saves and the call fails.
The service-account key will not upload
The service-account key will not upload
It must be the JSON file, not P12, and the whole file rather than one field from it.