Enum Class GoogleGenAiAudioSpeechOptions.AudioEncoding
java.lang.Object
java.lang.Enum<GoogleGenAiAudioSpeechOptions.AudioEncoding>
org.springframework.ai.google.genai.tts.GoogleGenAiAudioSpeechOptions.AudioEncoding
- All Implemented Interfaces:
Serializable,Comparable<GoogleGenAiAudioSpeechOptions.AudioEncoding>,Constable
- Enclosing class:
- GoogleGenAiAudioSpeechOptions
public static enum GoogleGenAiAudioSpeechOptions.AudioEncoding
extends Enum<GoogleGenAiAudioSpeechOptions.AudioEncoding>
The format of the audio byte stream returned by the synthesis. The Gemini-TTS
models always produce 24 kHz, 16-bit, mono PCM audio; the encoding only controls
whether a WAV header is added.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PCM
Raw 24 kHz, 16-bit, mono PCM, exactly as returned by the API. -
LINEAR16
The 24 kHz, 16-bit, mono PCM audio wrapped in a WAV header.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-