Skip to content

Commit

Permalink
修改voiceover的默认值 & 生成视频指定尺寸 (#50)
Browse files Browse the repository at this point in the history
* 修改voiceover的默认值

* mashup 生成指定尺寸

* code clean
  • Loading branch information
niehongxu116 authored Dec 30, 2024
1 parent 04529e4 commit 29220e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/py/yidong/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ class BgmConfig(BaseModel):

class GlobalEditorConfig(BaseModel):
bgm_config: BgmConfig = BgmConfig()
output_width: float | None = None
output_height: float | None = None


class AudioEditorConfig(BaseModel):
Expand All @@ -204,8 +206,8 @@ class VoiceoverEditorConfig(BaseModel):
font_color: str = ""
font_weight: str = ""
lang: str = ""
position_x: float = 0.0
position_y: float = 0.0
position_x: float | None = None
position_y: float | None = None
style: str = "0"
highlight_color: str = ""
stroke_color: str = ""
Expand Down

0 comments on commit 29220e3

Please sign in to comment.