class

OpenAI::RealtimeAudioFormatsPCMAudioFormat

Inherits JSON::Serializable < Reference < Object

The PCM audio format. Only a 24kHz sample rate is supported.

Constructors

new(type_value : RealtimeAudioFormatsPCMAudioFormatType | Nil = nil, rate : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

rate

The sample rate of the audio. Always 24000.

Source
rate=(rate : Int64 | Nil)

The sample rate of the audio. Always 24000.

Source
type_value

The audio format. Always audio/pcm.

Source
type_value=(type_value : RealtimeAudioFormatsPCMAudioFormatType | Nil)

The audio format. Always audio/pcm.

Source