Class: Cohere::Transcribe::TranscriptionSegment
- Inherits:
-
Data
- Object
- Data
- Cohere::Transcribe::TranscriptionSegment
- Defined in:
- lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs
Overview
Text generated for one ASR input segment.
Instance Attribute Summary collapse
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(index:, start:, end:, text:) ⇒ TranscriptionSegment
constructor
A new instance of TranscriptionSegment.
Constructor Details
#initialize(index:, start:, end:, text:) ⇒ TranscriptionSegment
Returns a new instance of TranscriptionSegment.
235 236 237 |
# File 'lib/cohere/transcribe/types.rb', line 235 def initialize(index:, start:, end:, text:) super(index: index, start: start, end: binding.local_variable_get(:end), text: TypesSupport.immutable(text)) end |
Instance Attribute Details
#end ⇒ Object (readonly)
Returns the value of attribute end
234 235 236 |
# File 'lib/cohere/transcribe/types.rb', line 234 def end @end end |
#index ⇒ Object (readonly)
Returns the value of attribute index
234 235 236 |
# File 'lib/cohere/transcribe/types.rb', line 234 def index @index end |
#start ⇒ Object (readonly)
Returns the value of attribute start
234 235 236 |
# File 'lib/cohere/transcribe/types.rb', line 234 def start @start end |
#text ⇒ Object (readonly)
Returns the value of attribute text
234 235 236 |
# File 'lib/cohere/transcribe/types.rb', line 234 def text @text end |
Class Method Details
.new ⇒ TranscriptionSegment
100 |
# File 'sig/cohere/transcribe.rbs', line 100
def self.new: (index: Integer, start: Float, end: Float, text: String) -> TranscriptionSegment
|