delightful-solstice-20324
03/27/2025, 4:02 PMtall-airline-16756
03/27/2025, 4:02 PMtall-airline-16756
03/27/2025, 4:02 PMvertexai
parameter to True
to use Vertex AI instead of Google AI: vertexai=True
• Provide your Google Cloud project: project="your-project-name"
• Optionally specify a location (defaults to "us-central1"): location="us-central1"
The API key can be provided directly or through the GOOGLE_API_KEY
environment variable. For realtime applications, you can use the RealtimeModel with parameters like voice, temperature, and instructions.
Sources: Google integration guide | LiveKit Docs | livekit.plugins.google API documentationdelightful-solstice-20324
03/27/2025, 4:07 PMtall-airline-16756
03/27/2025, 4:07 PMGOOGLE_APPLICATION_CREDENTIALS
environment variable to point to your service account key file: GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
• Specify the Google Cloud project either via the project
argument, the GOOGLE_CLOUD_PROJECT
environment variable, or let it be inferred from the service account key file.
• Set the location via the location
argument, the GOOGLE_CLOUD_LOCATION
environment variable, or use the default "us-central1".
• Ensure that vertexai=True
is set when initializing your client to use Vertex AI instead of the regular Google AI API.
• Note that an API key is not required when using Vertex AI.
If you continue to encounter errors, please provide the specific error message or details for further assistance.
Sources: livekit.plugins.google API documentation | Google integration guide | LiveKit Docs