8000 Add segmenation type in spoken index · video-db/videodb-python@6378ca6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6378ca6

Browse files
committed
Add segmenation type in spoken index
1 parent 52c6c5e commit 6378ca6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

videodb/video.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,14 @@ def translate_transcript(
284284
def index_spoken_words(
285285
self,
286286
language_code: Optional[str] = None,
287+
segmentation_type: Optional[str] = None,
287288
force: bool = False,
288289
callback_url: str = None,
289290
) -> None:
290291
"""Semantic indexing of spoken words in the video.
291292
292293
:param str language_code: (optional) Language code of the video
294+
:param str segmentation_type: (optional) Segmentation type used for indexing
293295
:param bool force: (optional) Force to index the video
294296
:param str callback_url: (optional) URL to receive the callback
295297
:raises InvalidRequestError: If the video is already indexed
@@ -301,6 +303,7 @@ def index_spoken_words(
301303
data={
302304
"index_type": IndexType.spoken_word,
303305
"language_code": language_code,
306+
"segmentation_type": segmentation_type,
304307
"force": force,
305308
"callback_url": callback_url,
306309
},

0 commit comments

Comments
 (0)
0