Package com.openai.models.realtime
Class RealtimeAudioFormats.AudioPcm
-
- All Implemented Interfaces:
public final class RealtimeAudioFormats.AudioPcm
The PCM audio format. Only a 24kHz sample rate is supported.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeAudioFormats.AudioPcm.Builder
A builder for AudioPcm.
public final class
RealtimeAudioFormats.AudioPcm.Rate
The sample rate of the audio. Always
24000
.public final class
RealtimeAudioFormats.AudioPcm.Type
The audio format. Always
audio/pcm
.
-
Method Summary
Modifier and Type Method Description final Optional<RealtimeAudioFormats.AudioPcm.Rate>
rate()
The sample rate of the audio. final Optional<RealtimeAudioFormats.AudioPcm.Type>
type()
The audio format. final JsonField<RealtimeAudioFormats.AudioPcm.Rate>
_rate()
Returns the raw JSON value of rate. final JsonField<RealtimeAudioFormats.AudioPcm.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final RealtimeAudioFormats.AudioPcm.Builder
toBuilder()
final RealtimeAudioFormats.AudioPcm
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeAudioFormats.AudioPcm.Builder
builder()
Returns a mutable builder for constructing an instance of AudioPcm. -
-
Method Detail
-
rate
final Optional<RealtimeAudioFormats.AudioPcm.Rate> rate()
The sample rate of the audio. Always
24000
.
-
type
final Optional<RealtimeAudioFormats.AudioPcm.Type> type()
The audio format. Always
audio/pcm
.
-
_rate
final JsonField<RealtimeAudioFormats.AudioPcm.Rate> _rate()
Returns the raw JSON value of rate.
Unlike rate, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<RealtimeAudioFormats.AudioPcm.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeAudioFormats.AudioPcm.Builder toBuilder()
-
validate
final RealtimeAudioFormats.AudioPcm validate()
-
builder
final static RealtimeAudioFormats.AudioPcm.Builder builder()
Returns a mutable builder for constructing an instance of AudioPcm.
-
-
-
-