Class: OpenAI::Models::Live::MediaSessionConfig::WakePolicy
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::MediaSessionConfig::WakePolicy
- Defined in:
- lib/openai/models/live/media_session_config.rb,
sig/openai/models/live/media_session_config.rbs
Overview
Instance Attribute Summary collapse
-
#type ⇒ :speech
The wake policy type, always
speech. -
#vad_threshold ⇒ Float?
The speech detection threshold for the first wake and each later wake, from 0 to 1 inclusive.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(vad_threshold: nil, type: :speech) ⇒ WakePolicy
constructor
A new instance of WakePolicy.
- #to_hash ⇒ { ?type: :speech, ?vad_threshold: Float }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(vad_threshold: nil, type: :speech) ⇒ WakePolicy
Returns a new instance of WakePolicy.
|
|
# File 'lib/openai/models/live/media_session_config.rb', line 352
|
Instance Attribute Details
#type ⇒ :speech
The wake policy type, always speech.
342 |
# File 'lib/openai/models/live/media_session_config.rb', line 342 required :type, const: :speech |
#vad_threshold ⇒ Float?
The speech detection threshold for the first wake and each later wake, from 0 to 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech. This setting is independent of active turn detection.
350 |
# File 'lib/openai/models/live/media_session_config.rb', line 350 optional :vad_threshold, Float |
Instance Method Details
#to_hash ⇒ { ?type: :speech, ?vad_threshold: Float }
397 |
# File 'sig/openai/models/live/media_session_config.rbs', line 397
def to_hash: -> { ?type: :speech, ?vad_threshold: Float }
|