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.
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/cohere/transcribe/types.rb', line 355 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
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def cues @cues end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def duration @duration end |
#error ⇒ Object (readonly)
Returns the value of attribute error
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def error @error end |
#outputs ⇒ Object (readonly)
Returns the value of attribute outputs
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def outputs @outputs end |
#path ⇒ Object (readonly)
Returns the value of attribute path
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def path @path end |
#provenance ⇒ Object (readonly)
Returns the value of attribute provenance
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def provenance @provenance end |
#relative_path ⇒ Object (readonly)
Returns the value of attribute relative_path
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def relative_path @relative_path end |
#segments ⇒ Object (readonly)
Returns the value of attribute segments
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def segments @segments end |
#status ⇒ Object (readonly)
Returns the value of attribute status
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def status @status end |
#text ⇒ Object (readonly)
Returns the value of attribute text
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def text @text end |
#words ⇒ Object (readonly)
Returns the value of attribute words
342 343 344 |
# File 'lib/cohere/transcribe/types.rb', line 342 def words @words end |
Class Method Details
.new ⇒ TranscriptionResult
155 |
# File 'sig/cohere/transcribe.rbs', line 155
def self.new: (**untyped) -> TranscriptionResult
|