cielo24 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,146 +1,154 @@
1
- module Cielo24
2
- class TaskType < BasicObject
3
- def self.JOB_CREATED; "JOB_CREATED"; end
4
- def self.JOB_DELETED; "JOB_DELETED"; end
5
- def self.JOB_ADD_MEDIA; "JOB_ADD_MEDIA"; end
6
- def self.JOB_ADD_TRANSCRIPT; "JOB_ADD_TRANSCRIPT"; end
7
- def self.JOB_PERFORM_TRANSCRIPTION; "JOB_PERFORM_TRANSCRIPTION"; end
8
- def self.JOB_PERFORM_PREMIUM_SYNC; "JOB_PERFORM_PREMIUM_SYNC"; end
9
- def self.JOB_UPDATE_ELEMENTLIST; "JOB_UPDATE_ELEMENTLIST"; end
10
- def self.JOB_GET_TRANSCRIPT; "JOB_GET_TRANSCRIPT"; end
11
- def self.JOB_GET_CAPTION; "JOB_GET_CAPTION"; end
12
- def self.JOB_GET_ELEMENTLIST; "JOB_GET_ELEMENTLIST"; end
13
- end
14
-
15
- class ErrorType < BasicObject
16
- def self.LOGIN_INVALID; "LOGIN_INVALID"; end
17
- def self.ACCOUNT_EXISTS; "ACCOUNT_EXISTS"; end
18
- def self.ACCOUNT_UNPRIVILEGED; "ACCOUNT_UNPRIVILEGED"; end
19
- def self.BAD_API_TOKEN; "BAD_API_TOKEN"; end
20
- def self.INVALID_QUERY; "INVALID_QUERY"; end
21
- def self.INVALID_OPTION; "INVALID_OPTION"; end
22
- def self.MISSING_PARAMETER; "MISSING_PARAMETER"; end
23
- def self.INVALID_URL; "INVALID_URL"; end
24
- def self.ITEM_NOT_FOUND; "ITEM_NOT_FOUND"; end
25
- end
26
-
27
- class JobStatus < BasicObject
28
- def self.Authorizing; "SRT"; end
29
- def self.Pending; "SRT"; end
30
- def self.In_Process; "In Process"; end
31
- def self.Complete; "Complete"; end
32
- end
33
-
34
- class TaskStatus < BasicObject
35
- def self.COMPLETE; "COMPLETE"; end
36
- def self.INPROGRESS; "INPROGRESS"; end
37
- def self.ABORTED; "ABORTED"; end
38
- def self.FAILED; "FAILED"; end
39
- end
40
-
41
- class Priority < BasicObject
42
- def self.ECONOMY; "ECONOMY"; end
43
- def self.STANDARD; "STANDARD"; end
44
- def self.PRIORITY; "PRIORITY"; end
45
- def self.CRITICAL; "CRITICAL"; end
46
- def self.HIGH; "HIGH"; end
47
- def self.all; "[ ECONOMY, STANDARD, PRIORITY, CRITICAL, HIGH ]"; end
48
- end
49
-
50
- class Fidelity < BasicObject
51
- def self.MECHANICAL; "MECHANICAL"; end
52
- def self.STANDARD; "STANDARD"; end
53
- def self.HIGH; "HIGH"; end
54
- def self.PREMIUM; "PREMIUM"; end
55
- def self.PROFESSIONAL; "PROFESSIONAL"; end
56
- def self.EXTERNAL; "EXTERNAL"; end
57
- def self.all; "[ MECHANICAL, STANDARD, HIGH, PREMIUM, PROFESSIONAL, EXTERNAL ]"; end
58
- end
59
-
60
- class CaptionFormat < BasicObject
61
- def self.SRT; "SRT"; end
62
- def self.SBV; "SBV"; end
63
- def self.DFXP; "DFXP"; end
64
- def self.TRANSCRIPT; "TRANSCRIPT"; end
65
- def self.TWX; "TWX"; end
66
- def self.TPM; "TPM"; end
67
- def self.WEB_VTT; "WEB_VTT"; end
68
- def self.ECHO; "ECHO"; end
69
- def self.all; "[ SRT, SBV, DFXP, QT, TRANSCRIPT, TWX, TPM, WEB_VTT, ECHO ]"; end
70
- end
71
-
72
- class TokenType < BasicObject
73
- def self.word; "word"; end
74
- def self.punctuation; "punctuation"; end
75
- def self.sound; "sound"; end
76
- end
77
-
78
- class Tag < BasicObject
79
- def self.ENDS_SENTENCE; "ENDS_SENTENCE"; end
80
- def self.UNKNOWN; "UNKNOWN"; end
81
- def self.INAUDIBLE; "INAUDIBLE"; end
82
- def self.CROSSTALK; "CROSSTALK"; end
83
- def self.MUSIC; "MUSIC"; end
84
- def self.NOISE; "NOISE"; end
85
- def self.LAUGH; "LAUGH"; end
86
- def self.COUGH; "COUGH"; end
87
- def self.FOREIGN; "FOREIGN"; end
88
- def self.GUESSED; "GUESSED"; end
89
- def self.BLANK_AUDIO; "BLANK_AUDIO"; end
90
- def self.APPLAUSE; "APPLAUSE"; end
91
- def self.BLEEP; "BLEEP"; end
92
- end
93
-
94
- class SpeakerId < BasicObject
95
- def self.no; "no"; end
96
- def self.number; "number"; end
97
- def self.name; "name"; end
98
- end
99
-
100
- class SpeakerGender < BasicObject
101
- def self.UNKNOWN; "UNKNOWN"; end
102
- def self.MALE; "MALE"; end
103
- def self.FEMALE; "FEMALE"; end
104
- end
105
-
106
- class Case < BasicObject
107
- def self.upper; "upper"; end
108
- def self.lower; "lower"; end
109
- def self.unchanged; ""; end
110
- end
111
-
112
- class LineEnding < BasicObject
113
- def self.UNIX; "UNIX"; end
114
- def self.WINDOWS; "WINDOWS"; end
115
- def self.OSX; "OSX"; end
116
- end
117
-
118
- class CustomerApprovalSteps < BasicObject
119
- def self.TRANSLATION; "TRANSLATION"; end
120
- def self.RETURN; "RETURN"; end
121
- end
122
-
123
- class CustomerApprovalTools < BasicObject
124
- def self.AMARA; "AMARA"; end
125
- def self.CIELO24; "CIELO24"; end
126
- end
127
-
128
- class Language < BasicObject
129
- def self.English; "en"; end
130
- def self.French; "fr"; end
131
- def self.Spanish; "es"; end
132
- def self.German; "de"; end
133
- def self.Mandarin_Chinese; "cmn"; end
134
- def self.Portuguese; "pt"; end
135
- def self.Japanese; "jp"; end
136
- def self.Arabic; "ar"; end
137
- def self.Korean; "ko"; end
138
- def self.Traditional_Chinese; "zh"; end
139
- def self.Hindi; "hi"; end
140
- def self.Italian; "it"; end
141
- def self.Russian; "ru"; end
142
- def self.Turkish; "tr"; end
143
- def self.Hebrew; "he"; end
144
- def self.all; "[ en, fr, es, de, cmn, pt, jp, ar, ko, zh, hi, it, ru, tr, he ]"; end
145
- end
1
+ module Cielo24
2
+ class BaseEnum < BasicObject
3
+ def self.all
4
+ all_enums = []
5
+ self.constants(false).each{ |const_name|
6
+ all_enums.push(self.const_get(const_name))
7
+ }
8
+ return all_enums
9
+ end
10
+ end
11
+
12
+ class ErrorType < BaseEnum
13
+ LOGIN_INVALID = 'LOGIN_INVALID'
14
+ ACCOUNT_EXISTS = 'ACCOUNT_EXISTS'
15
+ ACCOUNT_DOES_NOT_EXIST = 'ACCOUNT_DOES_NOT_EXIST'
16
+ ACCOUNT_UNPRIVILEGED = 'ACCOUNT_UNPRIVILEGED'
17
+ BAD_API_TOKEN = 'BAD_API_TOKEN'
18
+ INVALID_QUERY = 'INVALID_QUERY'
19
+ INVALID_OPTION = 'INVALID_OPTION'
20
+ INVALID_URL = 'INVALID_URL'
21
+ MISSING_PARAMETER = 'MISSING_PARAMETER'
22
+ NOT_IMPLEMENTED = 'NOT_IMPLEMENTED'
23
+ ITEM_NOT_FOUND = 'ITEM_NOT_FOUND'
24
+ INVALID_RETURN_HANDLERS = 'INVALID_RETURN_HANDLERS'
25
+ NOT_PARENT_ACCOUNT = 'NOT_PARENT_ACCOUNT'
26
+ NO_CHILDREN_FOUND = 'NO_CHILDREN_FOUND'
27
+ UNHANDLED_ERROR = 'UNHANDLED_ERROR'
28
+ end
29
+
30
+ class JobStatus < BaseEnum
31
+ AUTHORIZING = 'Authorizing'
32
+ PENDING = 'Pending'
33
+ IN_PROCESS = 'In Process'
34
+ COMPLETE = 'Complete'
35
+ MEDIA_FAILURE = 'Media Failure'
36
+ REVIEWING = 'Reviewing'
37
+ end
38
+
39
+ class Priority < BaseEnum
40
+ ECONOMY = 'ECONOMY'
41
+ STANDARD = 'STANDARD'
42
+ PRIORITY = 'PRIORITY'
43
+ CRITICAL = 'CRITICAL'
44
+ end
45
+
46
+ class Fidelity < BaseEnum
47
+ MECHANICAL = 'MECHANICAL'
48
+ PREMIUM = 'PREMIUM'
49
+ PROFESSIONAL = 'PROFESSIONAL'
50
+ end
51
+
52
+ class CaptionFormat < BaseEnum
53
+ SRT = 'SRT'
54
+ SBV = 'SBV'
55
+ SCC = 'SCC'
56
+ DFXP = 'DFXP'
57
+ QT = 'QT'
58
+ TRANSCRIPT = 'TRANSCRIPT'
59
+ TWX = 'TWX'
60
+ TPM = 'TPM'
61
+ WEB_VTT = 'WEB_VTT'
62
+ ECHO = 'ECHO'
63
+ end
64
+
65
+ class TokenType < BaseEnum
66
+ WORD = 'word'
67
+ PUNCTUATION = 'punctuation'
68
+ SOUND = 'sound'
69
+ end
70
+
71
+ class SoundTag < BaseEnum
72
+ UNKNOWN = 'UNKNOWN'
73
+ INAUDIBLE = 'INAUDIBLE'
74
+ CROSSTALK = 'CROSSTALK'
75
+ MUSIC = 'MUSIC'
76
+ NOISE = 'NOISE'
77
+ LAUGH = 'LAUGH'
78
+ COUGH = 'COUGH'
79
+ FOREIGN = 'FOREIGN'
80
+ BLANK_AUDIO = 'BLANK_AUDIO'
81
+ APPLAUSE = 'APPLAUSE'
82
+ BLEEP = 'BLEEP'
83
+ ENDS_SENTENCE = 'ENDS_SENTENCE'
84
+ end
85
+
86
+ class SpeakerId < BaseEnum
87
+ NO = 'no'
88
+ NUMBER = 'number'
89
+ NAME = 'name'
90
+ end
91
+
92
+ class SpeakerGender < BaseEnum
93
+ UNKNOWN = 'UNKNOWN'
94
+ MALE = 'MALE'
95
+ FEMALE = 'FEMALE'
96
+ end
97
+
98
+ class Case < BaseEnum
99
+ UPPER = 'upper'
100
+ LOWER = 'lower'
101
+ UNCHANGED = ''
102
+ end
103
+
104
+ class LineEnding < BaseEnum
105
+ UNIX = 'UNIX'
106
+ WINDOWS = 'WINDOWS'
107
+ OSX = 'OSX'
108
+ end
109
+
110
+ class CustomerApprovalStep < BaseEnum
111
+ TRANSLATION = 'TRANSLATION'
112
+ RETURN = 'RETURN'
113
+ end
114
+
115
+ class CustomerApprovalTool < BaseEnum
116
+ AMARA = 'AMARA'
117
+ CIELO24 = 'CIELO24'
118
+ end
119
+
120
+ class Language < BaseEnum
121
+ ENGLISH = 'en'
122
+ FRENCH = 'fr'
123
+ SPANISH = 'es'
124
+ GERMAN = 'de'
125
+ MANDARIN_CHINESE = 'cmn'
126
+ PORTUGUESE = 'pt'
127
+ JAPANESE = 'jp'
128
+ ARABIC = 'ar'
129
+ KOREAN = 'ko'
130
+ TRADITIONAL_CHINESE = 'zh'
131
+ HINDI = 'hi'
132
+ ITALIAN = 'it'
133
+ RUSSIAN = 'ru'
134
+ TURKISH = 'tr'
135
+ HEBREW = 'he'
136
+ end
137
+
138
+ class IWP < BaseEnum
139
+ PREMIUM = 'PREMIUM'
140
+ INTERIM_PROFESSIONAL = 'INTERIM_PROFESSIONAL'
141
+ PROFESSIONAL = 'PROFESSIONAL'
142
+ SPEAKER_ID = 'SPEAKER_ID'
143
+ FINAL = 'FINAL'
144
+ MECHANICAL = 'MECHANICAL'
145
+ CUSTOMER_APPROVED_RETURN = 'CUSTOMER_APPROVED_RETURN'
146
+ CUSTOMER_APPROVED_TRANSLATION = 'CUSTOMER_APPROVED_TRANSLATION'
147
+ end
148
+
149
+ class JobDifficulty < BaseEnum
150
+ GOOD = 'Good'
151
+ BAD = 'Bad'
152
+ UNKNOWN = 'Unknown'
153
+ end
146
154
  end
@@ -1,220 +1,220 @@
1
- module Cielo24
2
- class BaseOptions
3
-
4
- def get_hash
5
- hash = {}
6
- self.instance_variables.each{ |var|
7
- value = self.instance_variable_get(var)
8
- if !value.nil?
9
- hash[var.to_s.delete("@")] = self.instance_variable_get(var)
10
- end
11
- }
12
- return hash
13
- end
14
-
15
- def to_query
16
- hash = get_hash
17
- array = Array.new()
18
- hash.each do |key, value|
19
- array.push(key + '=' + value.to_s)
20
- end
21
- return array.join("&")
22
- end
23
-
24
- def populate_from_key_value_pair(key, value)
25
- # Iterate over instance variables
26
- self.instance_variables.each{ |var|
27
- if var.to_s.delete("@") == key
28
- self.instance_variable_set(var, value)
29
- break
30
- end
31
- }
32
- end
33
-
34
- def populate_from_hash(hash)
35
- hash.each do |key, value|
36
- populate_from_key_value_pair(key, value)
37
- end
38
- end
39
- end
40
-
41
- class CommonOptions < BaseOptions
42
-
43
- attr_accessor :characters_per_caption_line
44
- attr_accessor :elementlist_version
45
- attr_accessor :emit_speaker_change_token_as
46
- attr_accessor :mask_profanity
47
- attr_accessor :remove_sounds_list
48
- attr_accessor :remove_sound_references
49
- attr_accessor :replace_slang
50
- attr_accessor :sound_boundaries
51
-
52
- def initialize(characters_per_caption_line: nil,
53
- elementlist_version: nil,
54
- emit_speaker_change_token_as: nil,
55
- mask_profanity: nil,
56
- remove_sounds_list: nil,
57
- remove_sound_references: nil,
58
- replace_slang: nil,
59
- sound_boundaries: nil)
60
- @characters_per_caption_line = characters_per_caption_line
61
- @elementlist_version = elementlist_version
62
- @emit_speaker_change_token_as = emit_speaker_change_token_as
63
- @mask_profanity = mask_profanity
64
- @remove_sounds_list = remove_sounds_list
65
- @remove_sound_references = remove_sound_references
66
- @replace_slang = replace_slang
67
- @sound_boundaries = sound_boundaries
68
- end
69
- end
70
-
71
- class TranscriptionOptions < CommonOptions
72
-
73
- attr_accessor :create_paragraphs
74
- attr_accessor :newlines_after_paragraph
75
- attr_accessor :newlines_after_sentence
76
- attr_accessor :timecode_every_paragraph
77
- attr_accessor :timecode_format
78
- attr_accessor :time_code_interval
79
- attr_accessor :timecode_offset
80
-
81
- def initialize(create_paragraphs: nil,
82
- newlines_after_paragraph: nil,
83
- newlines_after_sentence: nil,
84
- timecode_every_paragraph: nil,
85
- timecode_format: nil,
86
- time_code_interval: nil,
87
- timecode_offset: nil)
88
- @create_paragraphs = create_paragraphs
89
- @newlines_after_paragraph = newlines_after_paragraph
90
- @newlines_after_sentence = newlines_after_sentence
91
- @timecode_every_paragraph = timecode_every_paragraph
92
- @timecode_format = timecode_format
93
- @time_code_interval = time_code_interval
94
- @timecode_offset = timecode_offset
95
- end
96
- end
97
-
98
- class CaptionOptions < CommonOptions
99
-
100
- attr_accessor :build_url
101
- attr_accessor :caption_words_min
102
- attr_accessor :caption_by_sentence
103
- attr_accessor :dfxp_header
104
- attr_accessor :disallow_dangling
105
- attr_accessor :display_effects_speaker_as
106
- attr_accessor :display_speaker_id
107
- attr_accessor :force_case
108
- attr_accessor :include_dfxp_metadata
109
- attr_accessor :layout_target_caption_length_ms
110
- attr_accessor :line_break_on_sentence
111
- attr_accessor :line_ending_format
112
- attr_accessor :lines_per_caption
113
- attr_accessor :maximum_caption_duration
114
- attr_accessor :merge_gap_interval
115
- attr_accessor :minimum_caption_length_ms
116
- attr_accessor :minimum_gap_between_captions_ms
117
- attr_accessor :minimum_merge_gap_interval
118
- attr_accessor :qt_seamless
119
- attr_accessor :silence_max_ms
120
- attr_accessor :single_speaker_per_caption
121
- attr_accessor :sound_threshold
122
- attr_accessor :sound_tokens_by_caption
123
- attr_accessor :sound_tokens_by_line
124
- attr_accessor :sound_tokens_by_caption_list
125
- attr_accessor :sound_tokens_by_line_list
126
- attr_accessor :speaker_on_new_line
127
- attr_accessor :srt_format
128
- attr_accessor :srt_print
129
- attr_accessor :strip_square_brackets
130
- attr_accessor :utf8_mark
131
-
132
- def initialize(build_url: nil,
133
- caption_words_min: nil,
134
- caption_by_sentence: nil,
135
- dfxp_header: nil,
136
- disallow_dangling: nil,
137
- display_effects_speaker_as: nil,
138
- display_speaker_id: nil,
139
- force_case: nil,
140
- include_dfxp_metadata: nil,
141
- layout_target_caption_length_ms: nil,
142
- line_break_on_sentence: nil,
143
- line_ending_format: nil,
144
- lines_per_caption: nil,
145
- maximum_caption_duration: nil,
146
- merge_gap_interval: nil,
147
- minimum_caption_length_ms: nil,
148
- minimum_gap_between_captions_ms: nil,
149
- minimum_merge_gap_interval: nil,
150
- qt_seamless: nil,
151
- silence_max_ms: nil,
152
- single_speaker_per_caption: nil,
153
- sound_threshold: nil,
154
- sound_tokens_by_caption: nil,
155
- sound_tokens_by_line: nil,
156
- sound_tokens_by_caption_list: nil,
157
- sound_tokens_by_line_list: nil,
158
- speaker_on_new_line: nil,
159
- srt_format: nil,
160
- srt_print: nil,
161
- strip_square_brackets: nil,
162
- utf8_mark: nil)
163
- @build_url = build_url
164
- @caption_words_min = caption_words_min
165
- @caption_by_sentence = caption_by_sentence
166
- @dfxp_header = dfxp_header
167
- @disallow_dangling = disallow_dangling
168
- @display_effects_speaker_as = display_effects_speaker_as
169
- @display_speaker_id = display_speaker_id
170
- @force_case = force_case
171
- @include_dfxp_metadata = include_dfxp_metadata
172
- @layout_target_caption_length_ms = layout_target_caption_length_ms
173
- @line_break_on_sentence = line_break_on_sentence
174
- @line_ending_format = line_ending_format
175
- @lines_per_caption = lines_per_caption
176
- @maximum_caption_duration = maximum_caption_duration
177
- @merge_gap_interval = merge_gap_interval
178
- @minimum_caption_length_ms = minimum_caption_length_ms
179
- @minimum_gap_between_captions_ms = minimum_gap_between_captions_ms
180
- @minimum_merge_gap_interval = minimum_merge_gap_interval
181
- @qt_seamless = qt_seamless
182
- @silence_max_ms = silence_max_ms
183
- @single_speaker_per_caption = single_speaker_per_caption
184
- @sound_threshold = sound_threshold
185
- @sound_tokens_by_caption = sound_tokens_by_caption
186
- @sound_tokens_by_line = sound_tokens_by_line
187
- @sound_tokens_by_caption_list = sound_tokens_by_caption_list
188
- @sound_tokens_by_line_list = sound_tokens_by_line_list
189
- @speaker_on_new_line = speaker_on_new_line
190
- @srt_format = srt_format
191
- @srt_print = srt_print
192
- @strip_square_brackets = strip_square_brackets
193
- @utf8_mark = utf8_mark
194
- end
195
- end
196
-
197
- class PerformTranscriptionOptions < BaseOptions
198
-
199
- attr_accessor :customer_approval_steps
200
- attr_accessor :customer_approval_tool
201
- attr_accessor :custom_metadata
202
- attr_accessor :notes
203
- attr_accessor :return_iwp
204
- attr_accessor :speaker_id
205
-
206
- def initialize(customer_approval_steps: nil,
207
- customer_approval_tool: nil,
208
- custom_metadata: nil,
209
- notes: nil,
210
- return_iwp: nil,
211
- speaker_id: nil)
212
- @customer_approval_steps = customer_approval_steps
213
- @customer_approval_tool = customer_approval_tool
214
- @custom_metadata = custom_metadata
215
- @notes = notes
216
- @return_iwp = return_iwp
217
- @speaker_id = speaker_id
218
- end
219
- end
1
+ module Cielo24
2
+ class BaseOptions
3
+
4
+ def get_hash
5
+ hash = {}
6
+ self.instance_variables.each{ |var|
7
+ value = self.instance_variable_get(var)
8
+ unless value.nil?
9
+ hash[var.to_s.delete('@')] = value
10
+ end
11
+ }
12
+ return hash
13
+ end
14
+
15
+ def to_query
16
+ hash = get_hash
17
+ array = Array.new
18
+ hash.each do |key, value|
19
+ array.push(key + '=' + value.to_s)
20
+ end
21
+ return array.join('&')
22
+ end
23
+
24
+ def populate_from_key_value_pair(key, value)
25
+ # Iterate over instance variables
26
+ self.instance_variables.each{ |var|
27
+ # key gets converted to_s because it can be a Symbol
28
+ if var.to_s.delete('@') == key.to_s
29
+ self.instance_variable_set(var, value)
30
+ break
31
+ end
32
+ }
33
+ end
34
+
35
+ def populate_from_hash(hash)
36
+ unless hash.nil?
37
+ hash.each do |key, value|
38
+ populate_from_key_value_pair(key, value)
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ class CommonOptions < BaseOptions
45
+
46
+ attr_accessor :elementlist_version
47
+ attr_accessor :emit_speaker_change_token_as
48
+ attr_accessor :mask_profanity
49
+ attr_accessor :remove_disfluencies
50
+ attr_accessor :remove_sounds_list
51
+ attr_accessor :remove_sound_references
52
+ attr_accessor :replace_slang
53
+ attr_accessor :sound_boundaries
54
+
55
+ def initialize
56
+ @elementlist_version = nil
57
+ @emit_speaker_change_token_as = nil
58
+ @mask_profanity = nil
59
+ @remove_disfluencies = nil
60
+ @remove_sounds_list = nil
61
+ @remove_sound_references = nil
62
+ @replace_slang = nil
63
+ @sound_boundaries = nil
64
+ end
65
+ end
66
+
67
+ class TranscriptOptions < CommonOptions
68
+
69
+ attr_accessor :create_paragraphs
70
+ attr_accessor :newlines_after_paragraph
71
+ attr_accessor :newlines_after_sentence
72
+ attr_accessor :timecode_every_paragraph
73
+ attr_accessor :timecode_format
74
+ attr_accessor :timecode_interval
75
+ attr_accessor :timecode_offset
76
+
77
+ def initialize(option_hash={})
78
+ @create_paragraphs = nil
79
+ @newlines_after_paragraph = nil
80
+ @newlines_after_sentence = nil
81
+ @timecode_every_paragraph = nil
82
+ @timecode_format = nil
83
+ @timecode_interval = nil
84
+ @timecode_offset = nil
85
+ populate_from_hash(option_hash)
86
+ end
87
+ end
88
+
89
+ class CaptionOptions < CommonOptions
90
+
91
+ attr_accessor :build_url
92
+ attr_accessor :caption_words_min
93
+ attr_accessor :caption_by_sentence
94
+ attr_accessor :characters_per_caption_line
95
+ attr_accessor :dfxp_header
96
+ attr_accessor :disallow_dangling
97
+ attr_accessor :display_effects_speaker_as
98
+ attr_accessor :display_speaker_id
99
+ attr_accessor :force_case
100
+ attr_accessor :include_dfxp_metadata
101
+ attr_accessor :layout_target_caption_length_ms
102
+ attr_accessor :line_break_on_sentence
103
+ attr_accessor :line_ending_format
104
+ attr_accessor :lines_per_caption
105
+ attr_accessor :maximum_caption_duration
106
+ attr_accessor :merge_gap_interval
107
+ attr_accessor :minimum_caption_length_ms
108
+ attr_accessor :minimum_gap_between_captions_ms
109
+ attr_accessor :qt_seamless
110
+ attr_accessor :silence_max_ms
111
+ attr_accessor :single_speaker_per_caption
112
+ attr_accessor :sound_threshold
113
+ attr_accessor :sound_tokens_by_caption
114
+ attr_accessor :sound_tokens_by_line
115
+ attr_accessor :sound_tokens_by_caption_list
116
+ attr_accessor :sound_tokens_by_line_list
117
+ attr_accessor :speaker_on_new_line
118
+ attr_accessor :srt_format
119
+ attr_accessor :strip_square_brackets
120
+ attr_accessor :utf8_mark
121
+
122
+ def initialize(option_hash={})
123
+ @build_url = nil
124
+ @caption_words_min = nil
125
+ @caption_by_sentence = nil
126
+ @characters_per_caption_line = nil
127
+ @dfxp_header = nil
128
+ @disallow_dangling = nil
129
+ @display_effects_speaker_as = nil
130
+ @display_speaker_id = nil
131
+ @force_case = nil
132
+ @include_dfxp_metadata = nil
133
+ @layout_target_caption_length_ms = nil
134
+ @line_break_on_sentence = nil
135
+ @line_ending_format = nil
136
+ @lines_per_caption = nil
137
+ @maximum_caption_duration = nil
138
+ @merge_gap_interval = nil
139
+ @minimum_caption_length_ms = nil
140
+ @minimum_gap_between_captions_ms = nil
141
+ @qt_seamless = nil
142
+ @silence_max_ms = nil
143
+ @single_speaker_per_caption = nil
144
+ @sound_threshold = nil
145
+ @sound_tokens_by_caption = nil
146
+ @sound_tokens_by_line = nil
147
+ @sound_tokens_by_caption_list = nil
148
+ @sound_tokens_by_line_list = nil
149
+ @speaker_on_new_line = nil
150
+ @srt_format = nil
151
+ @strip_square_brackets = nil
152
+ @utf8_mark = nil
153
+ populate_from_hash(option_hash)
154
+ end
155
+ end
156
+
157
+ class PerformTranscriptionOptions < BaseOptions
158
+
159
+ attr_accessor :customer_approval_steps
160
+ attr_accessor :customer_approval_tool
161
+ attr_accessor :custom_metadata
162
+ attr_accessor :generate_media_intelligence_for_iwp
163
+ attr_accessor :notes
164
+ attr_accessor :return_iwp
165
+ attr_accessor :speaker_id
166
+
167
+ def initialize(option_hash={})
168
+ @customer_approval_steps = nil
169
+ @customer_approval_tool = nil
170
+ @custom_metadata = nil
171
+ @generate_media_intelligence_for_iwp = nil
172
+ @notes = nil
173
+ @return_iwp = nil
174
+ @speaker_id = nil
175
+ populate_from_hash(option_hash)
176
+ end
177
+ end
178
+
179
+ class JobListOptions < BaseOptions
180
+
181
+ attr_accessor :CreationDateFrom
182
+ attr_accessor :CreationDateTo
183
+ attr_accessor :StartDateFrom
184
+ attr_accessor :StartDateTo
185
+ attr_accessor :DueDateFrom
186
+ attr_accessor :DueDateTo
187
+ attr_accessor :CompleteDateFrom
188
+ attr_accessor :CompleteDateTo
189
+ attr_accessor :JobStatus
190
+ attr_accessor :Fidelity
191
+ attr_accessor :Priority
192
+ attr_accessor :TurnaroundTimeHoursFrom
193
+ attr_accessor :TurnaroundTimeHoursTo
194
+ attr_accessor :JobName
195
+ attr_accessor :ExternalId
196
+ attr_accessor :JobDifficulty
197
+ attr_accessor :Username
198
+
199
+ def initialize(option_hash={})
200
+ @CreationDateFrom = nil
201
+ @CreationDateTo = nil
202
+ @StartDateFrom = nil
203
+ @StartDateTo = nil
204
+ @DueDateFrom = nil
205
+ @DueDateTo = nil
206
+ @CompleteDateFrom = nil
207
+ @CompleteDateTo = nil
208
+ @JobStatus = nil
209
+ @Fidelity = nil
210
+ @Priority = nil
211
+ @TurnaroundTimeHoursFrom = nil
212
+ @TurnaroundTimeHoursTo = nil
213
+ @JobName = nil
214
+ @ExternalId = nil
215
+ @JobDifficulty = nil
216
+ @Username = nil
217
+ populate_from_hash(option_hash)
218
+ end
219
+ end
220
220
  end