File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -284,12 +284,14 @@ def translate_transcript(
284
284
def index_spoken_words (
285
285
self ,
286
286
language_code : Optional [str ] = None ,
287
+ segmentation_type : Optional [str ] = None ,
287
288
force : bool = False ,
288
289
callback_url : str = None ,
289
290
) -> None :
290
291
"""Semantic indexing of spoken words in the video.
291
292
292
293
:param str language_code: (optional) Language code of the video
294
+ :param str segmentation_type: (optional) Segmentation type used for indexing
293
295
:param bool force: (optional) Force to index the video
294
296
:param str callback_url: (optional) URL to receive the callback
295
297
:raises InvalidRequestError: If the video is already indexed
@@ -301,6 +303,7 @@ def index_spoken_words(
301
303
data = {
302
304
"index_type" : IndexType .spoken_word ,
303
305
"language_code" : language_code ,
306
+ "segmentation_type" : segmentation_type ,
304
307
"force" : force ,
305
308
"callback_url" : callback_url ,
306
309
},
You can’t perform that action at this time.
0 commit comments