Class: Cielo24::TranscriptionOptions

Inherits:
CommonOptions show all
Defined in:
lib/cielo24/options.rb

Instance Attribute Summary collapse

Attributes inherited from CommonOptions

#characters_per_caption_line, #elementlist_version, #emit_speaker_change_token_as, #mask_profanity, #remove_sound_references, #remove_sounds_list, #replace_slang, #sound_boundaries

Instance Method Summary collapse

Methods inherited from BaseOptions

#get_hash, #populate_from_hash, #populate_from_key_value_pair, #to_query

Constructor Details

#initialize(create_paragraphs: nil, newlines_after_paragraph: nil, newlines_after_sentence: nil, timecode_every_paragraph: nil, timecode_format: nil, time_code_interval: nil, timecode_offset: nil) ⇒ TranscriptionOptions

Returns a new instance of TranscriptionOptions.



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/cielo24/options.rb', line 81

def initialize(create_paragraphs: nil,
               newlines_after_paragraph: nil,
               newlines_after_sentence: nil,
               timecode_every_paragraph: nil,
               timecode_format: nil,
               time_code_interval: nil,
               timecode_offset: nil)
  @create_paragraphs = create_paragraphs
  @newlines_after_paragraph = newlines_after_paragraph
  @newlines_after_sentence = newlines_after_sentence
  @timecode_every_paragraph = timecode_every_paragraph
  @timecode_format = timecode_format
  @time_code_interval = time_code_interval
  @timecode_offset = timecode_offset
end

Instance Attribute Details

#create_paragraphsObject

Returns the value of attribute create_paragraphs.



73
74
75
# File 'lib/cielo24/options.rb', line 73

def create_paragraphs
  @create_paragraphs
end

#newlines_after_paragraphObject

Returns the value of attribute newlines_after_paragraph.



74
75
76
# File 'lib/cielo24/options.rb', line 74

def newlines_after_paragraph
  @newlines_after_paragraph
end

#newlines_after_sentenceObject

Returns the value of attribute newlines_after_sentence.



75
76
77
# File 'lib/cielo24/options.rb', line 75

def newlines_after_sentence
  @newlines_after_sentence
end

#time_code_intervalObject

Returns the value of attribute time_code_interval.



78
79
80
# File 'lib/cielo24/options.rb', line 78

def time_code_interval
  @time_code_interval
end

#timecode_every_paragraphObject

Returns the value of attribute timecode_every_paragraph.



76
77
78
# File 'lib/cielo24/options.rb', line 76

def timecode_every_paragraph
  @timecode_every_paragraph
end

#timecode_formatObject

Returns the value of attribute timecode_format.



77
78
79
# File 'lib/cielo24/options.rb', line 77

def timecode_format
  @timecode_format
end

#timecode_offsetObject

Returns the value of attribute timecode_offset.



79
80
81
# File 'lib/cielo24/options.rb', line 79

def timecode_offset
  @timecode_offset
end