Class GoogleGenAiTextToSpeechConnectionDetails

java.lang.Object
org.springframework.ai.google.genai.tts.GoogleGenAiTextToSpeechConnectionDetails

public final class GoogleGenAiTextToSpeechConnectionDetails extends Object
Holds the connection details for the Gemini API used by Gemini-TTS and builds the underlying Google GenAI Client.

Two authentication modes are supported:

Since:
2.0.2
Author:
Olivier Le Quellec
  • Field Details

  • Method Details

    • builder

    • getProjectId

      public @Nullable String getProjectId()
      The Google Cloud project ID, or null when the Gemini Developer API (API key) is used.
      Returns:
      the project ID, if any
    • getLocation

      public String getLocation()
      The Vertex AI location. Defaults to "global".
      Returns:
      the location
    • getApiKey

      public @Nullable String getApiKey()
      The Gemini Developer API key, or null when Vertex AI is used.
      Returns:
      the API key, if any
    • getGenAiClient

      public com.google.genai.Client getGenAiClient()