Class: OpenAI::Models::Realtime::TranscriptionSessionUpdatedEvent::Session::TurnDetection
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::TranscriptionSessionUpdatedEvent::Session::TurnDetection
- Defined in:
- lib/openai/models/realtime/transcription_session_updated_event.rb
Overview
Instance Attribute Summary collapse
-
#prefix_padding_ms ⇒ Integer?
Amount of audio to include before the VAD detected speech (in milliseconds).
-
#silence_duration_ms ⇒ Integer?
Duration of silence to detect speech stop (in milliseconds).
-
#threshold ⇒ Float?
Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5.
-
#type ⇒ String?
Type of turn detection, only ‘server_vad` is currently supported.
Instance Method Summary collapse
-
#initialize(prefix_padding_ms: nil, silence_duration_ms: nil, threshold: nil, type: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TurnDetection for more details.
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(prefix_padding_ms: nil, silence_duration_ms: nil, threshold: nil, type: nil) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Realtime::TranscriptionSessionUpdatedEvent::Session::TurnDetection for more details.
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.
|
|
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 172
|
Instance Attribute Details
#prefix_padding_ms ⇒ Integer?
Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.
148 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 148 optional :prefix_padding_ms, Integer |
#silence_duration_ms ⇒ Integer?
Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.
156 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 156 optional :silence_duration_ms, Integer |
#threshold ⇒ Float?
Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.
164 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 164 optional :threshold, Float |
#type ⇒ String?
Type of turn detection, only ‘server_vad` is currently supported.
170 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 170 optional :type, String |