proud-battery-54912
01/02/2026, 9:31 AMtall-airline-16756
01/02/2026, 9:31 AMtall-airline-16756
01/02/2026, 9:31 AMGOOGLE_APPLICATION_CREDENTIALS to the path of the JSON key file, or
◦ Export an appropriate API key if you prefer GOOGLE_API_KEY.
Example:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
1. Install and configure the LiveKit Google plugin (if using LiveKit Agents):
pip install "livekit-agents[google]"
Then initialize the Google TTS plugin in your agent code (the plugin will use the environment credentials).
If you want, tell me:
• which language/runtime you’re using (Python, Node, etc.), and
• whether you’ll run LiveKit Agents server-side or in a specific deployment (so I can give exact code snippets and env var examples). Sources: An open source stack for real-time multimodal AI | Gemini Realtime Agent with Live Vision | LiveKit docsproud-battery-54912
01/02/2026, 9:51 AMtall-airline-16756
01/02/2026, 9:52 AMproud-battery-54912
01/02/2026, 9:52 AMtall-airline-16756
01/02/2026, 9:52 AMroles/iam.workloadIdentityUser on the service account to the AWS principal identifier in the pool (format provided by GCP when you create the provider).
1. Configure your LiveKit agent to fetch tokens
• Use Google Cloud client libraries which support Workload Identity Federation.
• Instead of GOOGLE_APPLICATION_CREDENTIALS, configure the federation by setting environment variables or a credentials config that points to your workload identity pool and provider. The libraries will exchange AWS STS tokens for short‑lived Google access tokens.
1. Verify TTS calls
• Run the agent and confirm application calls to Cloud TTS succeed. The Google library should show it’s using federated credentials (short‑lived).
If you want, I can provide:
• Exact IAM trust JSON and example AWS role policy for your runtime (ECS, EC2, or EKS).
• The exact `gcloud`/console commands or the JSON config snippet to set up the Workload Identity Provider and bind roles/iam.workloadIdentityUser.
Which runtime are you using on AWS (EC2, ECS/Fargate, or EKS)?