Skip to content

Commit

Permalink
add voice_style_text in video_mashup (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway authored Nov 28, 2024
1 parent 4685fa9 commit 8e1b248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/py/yidong/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def video_mashup(
voice_overs: list[str],
bgm_id: str,
voice_style_id: str,
voice_style_text: str,
chapters: list[Chapter] | None = None,
) -> TaskRef[VideoMashupTask, VideoMashupTaskResult]:
"""Create a new video based on the given videos and other elements.
Expand All @@ -378,7 +379,8 @@ def video_mashup(
chapters: The list of chapters. If not provided, the whole video will be used.
voice_overs: The list of voice over texts.
bgm_id: The background music id. Make sure it exists first.
voice_style_id: The voice style id. TODO: enumerate all available styles here.
voice_style_id: The voice style resource id. Make sure it exists first by uploading your voice sample.
voice_style_text: The transcript of the voice style.
"""
return self._submit_task(locals())

Expand Down
1 change: 1 addition & 0 deletions client/py/yidong/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class VideoMashupTask(BaseModel):
voice_overs: list[str]
bgm_id: str
voice_style_id: str
voice_style_text: str


class VideoMashupTaskResult(BaseModel):
Expand Down

0 comments on commit 8e1b248

Please sign in to comment.