Package com.openai.models.realtime
Interface RealtimeAudioFormats.Visitor
-
- All Implemented Interfaces:
public interface RealtimeAudioFormats.Visitor<T extends Object>
An interface that defines how to map each variant of RealtimeAudioFormats to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitAudioPcm(RealtimeAudioFormats.AudioPcm audioPcm)
The PCM audio format. abstract T
visitAudioPcmu(RealtimeAudioFormats.AudioPcmu audioPcmu)
The G.711 μ-law format. abstract T
visitAudioPcma(RealtimeAudioFormats.AudioPcma audioPcma)
The G.711 A-law format. T
unknown(JsonValue json)
Maps an unknown variant of RealtimeAudioFormats to a value of type T. -
-
Method Detail
-
visitAudioPcm
abstract T visitAudioPcm(RealtimeAudioFormats.AudioPcm audioPcm)
The PCM audio format. Only a 24kHz sample rate is supported.
-
visitAudioPcmu
abstract T visitAudioPcmu(RealtimeAudioFormats.AudioPcmu audioPcmu)
The G.711 μ-law format.
-
visitAudioPcma
abstract T visitAudioPcma(RealtimeAudioFormats.AudioPcma audioPcma)
The G.711 A-law format.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of RealtimeAudioFormats to a value of type T.
An instance of RealtimeAudioFormats can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-