Skip to content

Commit a8f6ea5

Browse files
committed
Merge branch 'main' of https://github.com/video-db/videodb-python into feat/add-biling
2 parents e2484c5 + 588f6e8 commit a8f6ea5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

videodb/video.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ def get_transcript_text(self, force: bool = False) -> str:
133133
self._fetch_transcript(force)
134134
return self.transcript_text
135135

136-
def index_spoken_words(self, force: bool = False, callback_url: str = None) -> None:
136+
def index_spoken_words(
137+
self,
138+
language_code: Optional[str] = None,
139+
force: bool = False,
140+
callback_url: str = None,
141+
) -> None:
137142
"""Semantic indexing of spoken words in the video
138143
139144
:raises InvalidRequestError: If the video is already indexed
@@ -144,6 +149,7 @@ def index_spoken_words(self, force: bool = False, callback_url: str = None) -> N
144149
path=f"{ApiPath.video}/{self.id}/{ApiPath.index}",
145150
data={
146151
"index_type": IndexType.semantic,
152+
"language_code": language_code,
147153
"force": force,
148154
"callback_url": callback_url,
149155
},

0 commit comments

Comments
 (0)