Uses of Class
dev.langchain4j.model.google.genai.GoogleGenAiTextToSpeechModel.Builder
Packages that use GoogleGenAiTextToSpeechModel.Builder
-
Uses of GoogleGenAiTextToSpeechModel.Builder in dev.langchain4j.model.google.genai
Methods in dev.langchain4j.model.google.genai that return GoogleGenAiTextToSpeechModel.BuilderModifier and TypeMethodDescriptionGoogleGenAiTextToSpeechModel.Builder.apiEndpoint(String apiEndpoint) Sets the base URL of the API.Sets the API key of the Gemini Developer API.GoogleGenAiTextToSpeechModel.builder()GoogleGenAiTextToSpeechModel.Builder.client(com.google.genai.Client client) Sets the Google GenAI client to use.GoogleGenAiTextToSpeechModel.Builder.customHeaders(Map<String, String> customHeaders) Sets HTTP headers added to every request.GoogleGenAiTextToSpeechModel.Builder.googleCredentials(com.google.auth.oauth2.GoogleCredentials googleCredentials) Sets the credentials used to call Vertex AI.Sets labels attached to every request, used by Vertex AI to break down billing.GoogleGenAiTextToSpeechModel.Builder.languageCode(String languageCode) Sets the language of the speech as a BCP-47 code, for examplede-DE.Sets the Google Cloud location used to call Vertex AI.GoogleGenAiTextToSpeechModel.Builder.logRequests(Boolean logRequests) Enables logging of the requests sent to the API.GoogleGenAiTextToSpeechModel.Builder.logRequestsAndResponses(Boolean logRequestsAndResponses) Enables logging of both the requests and the responses.GoogleGenAiTextToSpeechModel.Builder.logResponses(Boolean logResponses) Enables logging of the responses received from the API.GoogleGenAiTextToSpeechModel.Builder.maxRetries(Integer maxRetries) Sets how many times a failed request is retried.Sets the text-to-speech model to use, for examplegemini-3.8-flash-tts.GoogleGenAiTextToSpeechModel.Builder.multiSpeakerVoiceConfig(com.google.genai.types.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig) Sets the voice of each speaker of a conversation.Sets the Google Cloud project used to call Vertex AI.GoogleGenAiTextToSpeechModel.Builder.safetySettings(List<com.google.genai.types.SafetySetting> safetySettings) Sets the safety settings applied to the text.Adds a speaker of a conversation and the prebuilt voice it speaks with, for examplespeaker("Joe", "Kore").Sets the timeout of each HTTP request.