| 104 | |
| 105 | @dataclass |
| 106 | class Paper2VideoRequest(MainRequest): |
| 107 | paper_pdf_path: str = "" |
| 108 | # 用户上传的图片,添加在ppt中的,现在这个字段不用了 |
| 109 | user_imgs_path: str = "" |
| 110 | # tts使用的模型(CosyVoice) |
| 111 | tts_model: str = "cosyvoice-v3-flash" |
| 112 | tts_voice_name: str = "" |
| 113 | # 判断当前处于什么stage |
| 114 | script_stage: bool = True |
| 115 | |
| 116 | # 用户决定是否上传自己的声音 |
| 117 | use_specific_sound: bool = False |
| 118 | # 用户上传的声音 |
| 119 | ref_audio_path: str = "" |
| 120 | # 用户上传声音对应的文本 |
| 121 | ref_text: str = "" |
| 122 | # 用户上传的人像图片 |
| 123 | ref_img_path: str = "" |
| 124 | # 数字人模型:echomimic(本地)或 liveportrait(云,默认) |
| 125 | talking_model: str = "liveportrait" |
| 126 | # 用户上传的cursor图片 |
| 127 | cursor_path: str = field( |
| 128 | default_factory=lambda: str((PROJDIR / "dataflow_agent" / "toolkits" / "p2vtool" / "red.png").resolve()) |
| 129 | ) |
| 130 | |
| 131 | |
| 132 | # ==================== Paper2Video 生成 State ====================== |
no test coverage detected