Class: Cohere::Transcribe::SubtitleCue

Inherits:
Data
  • Object
show all
Defined in:
lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs

Overview

One rendered subtitle cue.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start:, end:, text:) ⇒ SubtitleCue

Returns a new instance of SubtitleCue.



263
264
265
# File 'lib/cohere/transcribe/types.rb', line 263

def initialize(start:, end:, text:)
  super(start: start, end: binding.local_variable_get(:end), text: TypesSupport.immutable(text))
end

Instance Attribute Details

#endObject (readonly)

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



262
263
264
# File 'lib/cohere/transcribe/types.rb', line 262

def end
  @end
end

#startObject (readonly)

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



262
263
264
# File 'lib/cohere/transcribe/types.rb', line 262

def start
  @start
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



262
263
264
# File 'lib/cohere/transcribe/types.rb', line 262

def text
  @text
end

Class Method Details

.newSubtitleCue

Parameters:

  • start: (Float)
  • end: (Float)
  • text: (String)

Returns:



118
# File 'sig/cohere/transcribe.rbs', line 118

def self.new: (start: Float, end: Float, text: String) -> SubtitleCue