class

OpenAI::SpeechAudioDeltaEvent

Inherits JSON::Serializable < Reference < Object

Emitted for each chunk of audio data generated during speech synthesis.

Constructors

new(type_value : SpeechAudioDeltaEventType = SpeechAudioDeltaEventType::SpeechAudioDelta, audio : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio

A chunk of Base64-encoded audio data.

Source
audio=(audio : String)

A chunk of Base64-encoded audio data.

Source
type_value

The type of the event. Always speech.audio.delta.

Source
type_value=(type_value : SpeechAudioDeltaEventType)

The type of the event. Always speech.audio.delta.

Source