Package com.azure.ai.openai.models
Class AudioOutputParameters
java.lang.Object
com.azure.ai.openai.models.AudioOutputParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AudioOutputParameters>
public final class AudioOutputParameters
extends Object
implements com.azure.json.JsonSerializable<AudioOutputParameters>
Describes the parameters for audio output.
-
Constructor Summary
ConstructorsConstructorDescriptionAudioOutputParameters(SpeechVoice voice, OutputAudioFormat format) Creates an instance of AudioOutputParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioOutputParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AudioOutputParameters from the JsonReader.Get the format property: Specifies the output audio format.getVoice()Get the voice property: Specifies the voice type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AudioOutputParameters
Creates an instance of AudioOutputParameters class.- Parameters:
voice- the voice value to set.format- the format value to set.
-
-
Method Details
-
getVoice
Get the voice property: Specifies the voice type.- Returns:
- the voice value.
-
getFormat
Get the format property: Specifies the output audio format.- Returns:
- the format value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AudioOutputParameters>- Throws:
IOException
-
fromJson
public static AudioOutputParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AudioOutputParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AudioOutputParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AudioOutputParameters.
-