class

OpenAI::RealtimeSessionCreateRequestGAAudioInput

Inherits JSON::Serializable < Reference < Object

Constructors

new(format : RealtimeAudioFormats | Nil = nil, transcription : AudioTranscription | Nil = nil, noise_reduction : RealtimeSessionCreateRequestGAAudioInputNoiseReduction | Nil = nil, turn_detection : RealtimeTurnDetection | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

format

The format of the input audio.

Source
format=(format : RealtimeAudioFormats | Nil)

The format of the input audio.

Source
noise_reduction

Configuration for input audio noise reduction. This can be set to null to turn off. Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model. Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.

Source
noise_reduction=(noise_reduction : RealtimeSessionCreateRequestGAAudioInputNoiseReduction | Nil)

Configuration for input audio noise reduction. This can be set to null to turn off. Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model. Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.

Source
transcription

Configuration for input audio transcription, defaults to off and can be set to null to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through the /audio/transcriptions endpoint and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.

Source
transcription=(transcription : AudioTranscription | Nil)

Configuration for input audio transcription, defaults to off and can be set to null to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through the /audio/transcriptions endpoint and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.

Source
turn_detection
Source
turn_detection=(turn_detection : RealtimeTurnDetection | Nil)
Source