Class: OpenAI::Models::Realtime::TranscriptionSessionUpdate::Session

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/transcription_session_update.rb

Overview

See Also:

Defined Under Namespace

Modules: Include, InputAudioFormat Classes: InputAudioNoiseReduction, TurnDetection

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(type: nil) ⇒ Object

Some parameter documentations has been truncated, see InputAudioNoiseReduction for more details.

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.

Parameters:



# File 'lib/openai/models/realtime/transcription_session_update.rb', line 132


Instance Attribute Details

#includeArray<Symbol, OpenAI::Models::Realtime::TranscriptionSessionUpdate::Session::Include>?

The set of items to include in the transcription. Current available items are: ‘item.input_audio_transcription.logprobs`



41
42
# File 'lib/openai/models/realtime/transcription_session_update.rb', line 41

optional :include,
-> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Realtime::TranscriptionSessionUpdate::Session::Include] }

#input_audio_formatSymbol, ...

The format of input audio. Options are ‘pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian byte order.



50
51
# File 'lib/openai/models/realtime/transcription_session_update.rb', line 50

optional :input_audio_format,
enum: -> { OpenAI::Realtime::TranscriptionSessionUpdate::Session::InputAudioFormat }

#input_audio_noise_reductionOpenAI::Models::Realtime::TranscriptionSessionUpdate::Session::InputAudioNoiseReduction?

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.



61
62
# File 'lib/openai/models/realtime/transcription_session_update.rb', line 61

optional :input_audio_noise_reduction,
-> { OpenAI::Realtime::TranscriptionSessionUpdate::Session::InputAudioNoiseReduction }

#input_audio_transcriptionOpenAI::Models::Realtime::AudioTranscription?

Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.



70
# File 'lib/openai/models/realtime/transcription_session_update.rb', line 70

optional :input_audio_transcription, -> { OpenAI::Realtime::AudioTranscription }

#turn_detectionOpenAI::Models::Realtime::TranscriptionSessionUpdate::Session::TurnDetection?

Configuration for turn detection. Can be set to ‘null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.



78
# File 'lib/openai/models/realtime/transcription_session_update.rb', line 78

optional :turn_detection, -> { OpenAI::Realtime::TranscriptionSessionUpdate::Session::TurnDetection }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/realtime/transcription_session_update.rb', line 102