Record Class OpenAiApi.ChatCompletionRequest.AudioParameters
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionRequest.AudioParameters
- Record Components:
voice- Specifies the voice type.format- Specifies the output audio format.
- Enclosing class:
OpenAiApi.ChatCompletionRequest
public static record OpenAiApi.ChatCompletionRequest.AudioParameters(OpenAiApi.ChatCompletionRequest.AudioParameters.Voice voice, OpenAiApi.ChatCompletionRequest.AudioParameters.AudioResponseFormat format)
extends Record
Parameters for audio output. Required when audio output is requested with outputModalities: ["audio"].
- Author:
- Christian Tzolov, Michael Lavelle, Mariusz Bernacki, Thomas Vitale, David Frizelle, Alexandros Pappas, Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies the output audio format.static enumSpecifies the voice type. -
Constructor Summary
ConstructorsConstructorDescriptionAudioParameters(OpenAiApi.ChatCompletionRequest.AudioParameters.Voice voice, OpenAiApi.ChatCompletionRequest.AudioParameters.AudioResponseFormat format) Creates an instance of aAudioParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voice()Returns the value of thevoicerecord component.
-
Constructor Details
-
AudioParameters
public AudioParameters(OpenAiApi.ChatCompletionRequest.AudioParameters.Voice voice, OpenAiApi.ChatCompletionRequest.AudioParameters.AudioResponseFormat format) Creates an instance of aAudioParametersrecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
voice
-
format
-