Class GoogleGenAiTextToSpeechConnectionDetails
java.lang.Object
org.springframework.ai.google.genai.tts.GoogleGenAiTextToSpeechConnectionDetails
Holds the connection details for the Gemini API used by Gemini-TTS and builds the
underlying Google GenAI
Client.
Two authentication modes are supported:
- Gemini Developer API: an API key only (
GoogleGenAiTextToSpeechConnectionDetails.Builder.apiKey(String)). - Vertex AI: a
projectIdandlocation, authenticated through Application Default Credentials (ADC) or an explicitGoogleCredentialsservice account.
- Since:
- 2.0.2
- Author:
- Olivier Le Quellec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields -
Method Summary
-
Field Details
-
DEFAULT_LOCATION
- See Also:
-
-
Method Details
-
builder
-
getProjectId
The Google Cloud project ID, ornullwhen the Gemini Developer API (API key) is used.- Returns:
- the project ID, if any
-
getLocation
The Vertex AI location. Defaults to "global".- Returns:
- the location
-
getApiKey
The Gemini Developer API key, ornullwhen Vertex AI is used.- Returns:
- the API key, if any
-
getGenAiClient
public com.google.genai.Client getGenAiClient()
-