@@ -129,19 +129,30 @@ def submit_job_url(
129129 :returns: raw response data
130130 :raises: HTTPError
131131 """
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 ,
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 ,
145156 summarization_config = summarization_config ,
146157 translation_config = translation_config )
147158
@@ -235,19 +246,32 @@ def submit_job_local_file(
235246 if not filename :
236247 raise ValueError ('filename must be provided' )
237248
238- payload = self ._create_job_options_payload (None , metadata , callback_url ,
239- skip_diarization , skip_punctuation ,
240- speaker_channels_count ,
241- custom_vocabularies , filter_profanity ,
242- remove_disfluencies , delete_after_seconds ,
243- language , custom_vocabulary_id , transcriber ,
244- verbatim , rush , test_mode ,
245- segments_to_transcribe , speaker_names , None ,
246- notification_config , skip_postprocessing ,
247- remove_atmospherics , speakers_count ,
248- diarization_type ,
249- summarization_config ,
250- translation_config )
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 ,
273+ summarization_config = summarization_config ,
274+ translation_config = translation_config )
251275
252276 with open (filename , 'rb' ) as f :
253277 files = {
0 commit comments