Class: OpenAI::Models::Live::TranscriptGrouper

Inherits:
Object
  • Object
show all
Defined in:
sig/openai/helpers/live/transcript_grouper.rbs

Defined Under Namespace

Classes: ClosedSegment, Segment

Instance Method Summary collapse

Constructor Details

#initialize ⇒ TranscriptGrouper

Returns a new instance of TranscriptGrouper.

Parameters:

  • on_segment_updated: (^(Segment) -> void, nil)
  • on_segment_closed: (^(ClosedSegment) -> void, nil)
  • min_turn_separation_ms: (Integer, Float)
  • assistant_silence_ms: (Integer, Float)
  • backchannel_max_duration_ms: (Integer, Float)
  • backchannel_isolation_ms: (Integer, Float)
  • additional_acknowledgments: (Array[String])


27
28
29
30
31
32
33
34
35
# File 'sig/openai/helpers/live/transcript_grouper.rbs', line 27

def initialize: (
  ?on_segment_updated: (^(Segment) -> void)?,
  ?on_segment_closed: (^(ClosedSegment) -> void)?,
  ?min_turn_separation_ms: Integer | Float,
  ?assistant_silence_ms: Integer | Float,
  ?backchannel_max_duration_ms: Integer | Float,
  ?backchannel_isolation_ms: Integer | Float,
  ?additional_acknowledgments: Array[String]
) -> void

Instance Method Details

#close ⇒ void

This method returns an undefined value.



38
# File 'sig/openai/helpers/live/transcript_grouper.rbs', line 38

def close: -> void

#push ⇒ void

This method returns an undefined value.

Parameters:

  • event (top)


37
# File 'sig/openai/helpers/live/transcript_grouper.rbs', line 37

def push: (top event) -> void