Class: OpenAI::Models::Realtime::RealtimeTranslationOutputTranscriptDeltaEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeTranslationOutputTranscriptDeltaEvent
- Defined in:
- lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb,
sig/openai/models/realtime/realtime_translation_output_transcript_delta_event.rbs
Instance Attribute Summary collapse
-
#delta ⇒ String
Append-only transcript text for the translated output audio.
-
#elapsed_ms ⇒ Integer?
Timing metadata for stream alignment, derived from the translation frame when available.
-
#event_id ⇒ String
The unique ID of the server event.
-
#type ⇒ :"session.output_transcript.delta"
The event type, must be
session.output_transcript.delta.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(delta:, event_id:, elapsed_ms: nil, type: :"session.output_transcript.delta") ⇒ RealtimeTranslationOutputTranscriptDeltaEvent
constructor
A new instance of RealtimeTranslationOutputTranscriptDeltaEvent.
- #to_hash ⇒ { delta: String, event_id: String, ?type: :"session.output_transcript.delta", ?elapsed_ms: Integer? }
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(delta:, event_id:, elapsed_ms: nil, type: :"session.output_transcript.delta") ⇒ RealtimeTranslationOutputTranscriptDeltaEvent
Returns a new instance of RealtimeTranslationOutputTranscriptDeltaEvent.
|
|
# File 'lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb', line 34
|
Instance Attribute Details
#delta ⇒ String
Append-only transcript text for the translated output audio.
11 |
# File 'lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb', line 11 required :delta, String |
#elapsed_ms ⇒ Integer?
Timing metadata for stream alignment, derived from the translation frame when
available. It advances in 200 ms increments, but multiple transcript deltas may
share the same elapsed_ms. Treat it as alignment metadata, not a unique
transcript-delta identifier.
32 |
# File 'lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb', line 32 optional :elapsed_ms, Integer, nil?: true |
#event_id ⇒ String
The unique ID of the server event.
17 |
# File 'lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb', line 17 required :event_id, String |
#type ⇒ :"session.output_transcript.delta"
The event type, must be session.output_transcript.delta.
23 |
# File 'lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb', line 23 required :type, const: :"session.output_transcript.delta" |
Instance Method Details
#to_hash ⇒ { delta: String, event_id: String, ?type: :"session.output_transcript.delta", ?elapsed_ms: Integer? }
46 47 48 49 50 51 |
# File 'sig/openai/models/realtime/realtime_translation_output_transcript_delta_event.rbs', line 46
def to_hash: -> {
delta: String,
event_id: String,
?type: :"session.output_transcript.delta",
?elapsed_ms: Integer?
}
|