class

OpenAI::ChatCompletionResponseMessageAudioVariant1

Inherits JSON::Serializable < Reference < Object

If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.

Constructors

new(id : String = "", expires_at : Int64 = 0, data : String = "", transcript : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

Base64 encoded audio bytes generated by the model, in the format specified in the request.

Source
data=(data : String)

Base64 encoded audio bytes generated by the model, in the format specified in the request.

Source
expires_at

The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.

Source
expires_at=(expires_at : Int64)

The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.

Source
id

Unique identifier for this audio response.

Source
id=(id : String)

Unique identifier for this audio response.

Source
transcript

Transcript of the audio generated by the model.

Source
transcript=(transcript : String)

Transcript of the audio generated by the model.

Source