Class: Cohere::Transcribe::TranscriptionResult
- Inherits:
-
Data
- Object
- Data
- Cohere::Transcribe::TranscriptionResult
- Defined in:
- lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs
Overview
Immutable result for one expanded input audio file.
Instance Attribute Summary collapse
-
#cues ⇒ Object
readonly
Returns the value of attribute cues.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#outputs ⇒ Object
readonly
Returns the value of attribute outputs.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#provenance ⇒ Object
readonly
Returns the value of attribute provenance.
-
#relative_path ⇒ Object
readonly
Returns the value of attribute relative_path.
-
#segments ⇒ Object
readonly
Returns the value of attribute segments.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#words ⇒ Object
readonly
Returns the value of attribute words.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path:, relative_path:, status:, text:, duration:, segments: [], words: [], cues: [], outputs: [], error: nil, provenance: TranscriptionProvenance.new) ⇒ TranscriptionResult
constructor
A new instance of TranscriptionResult.
Constructor Details
#initialize(path:, relative_path:, status:, text:, duration:, segments: [], words: [], cues: [], outputs: [], error: nil, provenance: TranscriptionProvenance.new) ⇒ TranscriptionResult
Returns a new instance of TranscriptionResult.
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 |
# File 'lib/cohere/transcribe/types.rb', line 369 def initialize( path:, relative_path:, status:, text:, duration:, segments: [], words: [], cues: [], outputs: [], error: nil, provenance: TranscriptionProvenance.new ) super( path: TypesSupport.immutable(path), relative_path: TypesSupport.immutable(relative_path), status: TypesSupport.immutable(status), text: TypesSupport.immutable(text), duration: duration, segments: TypesSupport.tuple(segments, field: "segments"), words: TypesSupport.tuple(words, field: "words"), cues: TypesSupport.tuple(cues, field: "cues"), outputs: TypesSupport.tuple(outputs, field: "outputs"), error: TypesSupport.immutable(error), provenance: provenance ) end |
Instance Attribute Details
#cues ⇒ Object (readonly)
Returns the value of attribute cues
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def cues @cues end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def duration @duration end |
#error ⇒ Object (readonly)
Returns the value of attribute error
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def error @error end |
#outputs ⇒ Object (readonly)
Returns the value of attribute outputs
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def outputs @outputs end |
#path ⇒ Object (readonly)
Returns the value of attribute path
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def path @path end |
#provenance ⇒ Object (readonly)
Returns the value of attribute provenance
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def provenance @provenance end |
#relative_path ⇒ Object (readonly)
Returns the value of attribute relative_path
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def relative_path @relative_path end |
#segments ⇒ Object (readonly)
Returns the value of attribute segments
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def segments @segments end |
#status ⇒ Object (readonly)
Returns the value of attribute status
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def status @status end |
#text ⇒ Object (readonly)
Returns the value of attribute text
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def text @text end |
#words ⇒ Object (readonly)
Returns the value of attribute words
356 357 358 |
# File 'lib/cohere/transcribe/types.rb', line 356 def words @words end |
Class Method Details
.new ⇒ TranscriptionResult
156 |
# File 'sig/cohere/transcribe.rbs', line 156
def self.new: (**untyped) -> TranscriptionResult
|