@@ -123,26 +123,36 @@ def submit_job_url(
123
123
:param remove_atmospherics: Atmospherics such as <laugh>, <affirmative>, etc. will not
124
124
appear in the transcript.
125
125
:param speakers_count: Use to specify the total number of unique speakers in the audio.
126
+ :param diarization_type: Use to specify diarization type.
126
127
:param summarization_config: Use to request transcript summary.
127
128
:param translation_config: Use to request transcript translation.
128
- :param diarization_type: Use to specify diarization type.
129
129
:returns: raw response data
130
130
:raises: HTTPError
131
131
"""
132
- payload = self ._create_job_options_payload (media_url , metadata , callback_url ,
133
- skip_diarization , skip_punctuation ,
134
- speaker_channels_count ,
135
- custom_vocabularies , filter_profanity ,
136
- remove_disfluencies , delete_after_seconds ,
137
- language , custom_vocabulary_id , transcriber ,
138
- verbatim , rush , test_mode ,
139
- segments_to_transcribe , speaker_names ,
140
- source_config , notification_config ,
141
- skip_postprocessing ,
142
- remove_atmospherics ,
143
- speakers_count ,
144
- diarization_type ,
145
- skip_postprocessing ,
132
+ payload = self ._create_job_options_payload (media_url = media_url ,
133
+ metadata = metadata ,
134
+ callback_url = callback_url ,
135
+ skip_diarization = skip_diarization ,
136
+ skip_punctuation = skip_punctuation ,
137
+ speaker_channels_count = speaker_channels_count ,
138
+ custom_vocabularies = custom_vocabularies ,
139
+ filter_profanity = filter_profanity ,
140
+ remove_disfluencies = remove_disfluencies ,
141
+ delete_after_seconds = delete_after_seconds ,
142
+ language = language ,
143
+ custom_vocabulary_id = custom_vocabulary_id ,
144
+ transcriber = transcriber ,
145
+ verbatim = verbatim ,
146
+ rush = rush ,
147
+ test_mode = test_mode ,
148
+ segments_to_transcribe = segments_to_transcribe ,
149
+ speaker_names = speaker_names ,
150
+ source_config = source_config ,
151
+ notification_config = notification_config ,
152
+ skip_postprocessing = skip_postprocessing ,
153
+ remove_atmospherics = remove_atmospherics ,
154
+ speakers_count = speakers_count ,
155
+ diarization_type = diarization_type ,
146
156
summarization_config = summarization_config ,
147
157
translation_config = translation_config )
148
158
@@ -236,17 +246,30 @@ def submit_job_local_file(
236
246
if not filename :
237
247
raise ValueError ('filename must be provided' )
238
248
239
- payload = self ._create_job_options_payload (None , metadata , callback_url ,
240
- skip_diarization , skip_punctuation ,
241
- speaker_channels_count ,
242
- custom_vocabularies , filter_profanity ,
243
- remove_disfluencies , delete_after_seconds ,
244
- language , custom_vocabulary_id , transcriber ,
245
- verbatim , rush , test_mode ,
246
- segments_to_transcribe , speaker_names , None ,
247
- notification_config , skip_postprocessing ,
248
- remove_atmospherics , speakers_count ,
249
- diarization_type ,
249
+ payload = self ._create_job_options_payload (media_url = None ,
250
+ metadata = metadata ,
251
+ callback_url = callback_url ,
252
+ skip_diarization = skip_diarization ,
253
+ skip_punctuation = skip_punctuation ,
254
+ speaker_channels_count = speaker_channels_count ,
255
+ custom_vocabularies = custom_vocabularies ,
256
+ filter_profanity = filter_profanity ,
257
+ remove_disfluencies = remove_disfluencies ,
258
+ delete_after_seconds = delete_after_seconds ,
259
+ language = language ,
260
+ custom_vocabulary_id = custom_vocabulary_id ,
261
+ transcriber = transcriber ,
262
+ verbatim = verbatim ,
263
+ rush = rush ,
264
+ test_mode = test_mode ,
265
+ segments_to_transcribe = segments_to_transcribe ,
266
+ speaker_names = speaker_names ,
267
+ source_config = None ,
268
+ notification_config = notification_config ,
269
+ skip_postprocessing = skip_postprocessing ,
270
+ remove_atmospherics = remove_atmospherics ,
271
+ speakers_count = speakers_count ,
272
+ diarization_type = diarization_type ,
250
273
summarization_config = summarization_config ,
251
274
translation_config = translation_config )
252
275
0 commit comments