@@ -71,6 +71,7 @@ def submit_job_url(
71
71
skip_postprocessing = False ,
72
72
remove_atmospherics = False ,
73
73
speakers_count = None ,
74
+ diarization_type = None ,
74
75
summarization_config : SummarizationOptions = None ,
75
76
translation_config : TranslationOptions = None ):
76
77
"""Submit media given a URL for transcription.
@@ -124,6 +125,7 @@ def submit_job_url(
124
125
:param speakers_count: Use to specify the total number of unique speakers in the audio.
125
126
:param summarization_config: Use to request transcript summary.
126
127
:param translation_config: Use to request transcript translation.
128
+ :param diarization_type: Use to specify diarization type.
127
129
:returns: raw response data
128
130
:raises: HTTPError
129
131
"""
@@ -137,6 +139,10 @@ def submit_job_url(
137
139
segments_to_transcribe , speaker_names ,
138
140
source_config , notification_config ,
139
141
skip_postprocessing ,
142
+ remove_atmospherics ,
143
+ speakers_count ,
144
+ diarization_type ,
145
+ skip_postprocessing ,
140
146
summarization_config = summarization_config ,
141
147
translation_config = translation_config )
142
148
@@ -172,6 +178,7 @@ def submit_job_local_file(
172
178
skip_postprocessing = False ,
173
179
remove_atmospherics = False ,
174
180
speakers_count = None ,
181
+ diarization_type = None ,
175
182
summarization_config : SummarizationOptions = None ,
176
183
translation_config : TranslationOptions = None ):
177
184
"""Submit a local file for transcription.
@@ -220,6 +227,7 @@ def submit_job_local_file(
220
227
:param remove_atmospherics: Atmospherics such as <laugh>, <affirmative>, etc. will not
221
228
appear in the transcript.
222
229
:param speakers_count: Use to specify the total number of unique speakers in the audio.
230
+ :param diarization_type: Use to specify diarization type.
223
231
:param summarization_config: Use to request transcript summary.
224
232
:param translation_config: Use to request transcript translation.
225
233
:returns: raw response data
@@ -237,6 +245,8 @@ def submit_job_local_file(
237
245
verbatim , rush , test_mode ,
238
246
segments_to_transcribe , speaker_names , None ,
239
247
notification_config , skip_postprocessing ,
248
+ remove_atmospherics , speakers_count ,
249
+ diarization_type ,
240
250
summarization_config = summarization_config ,
241
251
translation_config = translation_config )
242
252
@@ -714,6 +724,7 @@ def _create_job_options_payload(
714
724
skip_postprocessing = False ,
715
725
remove_atmospherics = None ,
716
726
speakers_count = None ,
727
+ diarization_type = None ,
717
728
summarization_config : SummarizationOptions = None ,
718
729
translation_config : TranslationOptions = None ):
719
730
payload = {}
@@ -764,6 +775,8 @@ def _create_job_options_payload(
764
775
payload ['remove_atmospherics' ] = remove_atmospherics
765
776
if speakers_count :
766
777
payload ['speakers_count' ] = speakers_count
778
+ if diarization_type :
779
+ payload ['diarization_type' ] = diarization_type
767
780
if summarization_config :
768
781
payload ['summarization_config' ] = summarization_config .to_dict ()
769
782
if translation_config :
0 commit comments