优化替换角色添加音频

This commit is contained in:
Azmat@qq.com
2026-09-01 17:55:57 +08:00
parent a520b230c5
commit 0603a85d83
10 changed files with 322 additions and 111 deletions
+3 -4
View File
@@ -45,7 +45,6 @@ const REF_BYTES_MAX = { product: 200 * 1024 * 1024, character: 200 * 1024 * 1024
const SEEDANCE_MAX_OUTPUT_SECONDS = 30;
// 第 3 步补充信息上限,与后端 MAX_SUBJECT_BRIEF 保持一致
const SUBJECT_BRIEF_MAX = 500;
type ProductSource = "library" | "temporary" | "";
type ReplaceMode = "product" | "character";
@@ -108,9 +107,9 @@ const REPLACE_MODE_COPY = {
historyKind: "角色",
pickToast: "已选择角色",
briefStep: "3. 角色信息",
briefOptional: "选填 · 建议写明性别",
briefPlaceholder: "例:男性,30 岁左右,中低音域,语速平稳,声音干净有亲和力",
briefHint: "配音会按这里的设定重新生成声线,建议写明男 / 女,避免沿用原视频人物的音色。",
briefOptional: "选填",
briefPlaceholder: "例:30 岁左右男性,短发,深色衬衫,气质干练利落",
briefHint: "写明目标角色是男或女时,系统会自动使用对应的通用声音参考;未写明则保留参考视频原声。",
},
} as const;
+2
View File
@@ -625,6 +625,8 @@ export type FreeVideoTask = {
subject_name?: string;
subject_source?: "library" | "temporary" | "";
subject_brief?: string;
voice_gender?: "male" | "female" | "";
voice_strategy?: string;
product_id?: string;
model_id?: string;
review_stage?: "reviewing" | "";
+15
View File
@@ -204,6 +204,21 @@
}
/* 第 3 步补充信息。输入框本体复用共享 .textarea,这里只给提示文案留出间距。 */
.vrep-page .replace-voice-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.vrep-page .replace-voice-label {
font-size: 13px;
font-weight: 500;
color: var(--accent-black);
margin-right: 2px;
}
.vrep-page .replace-brief-hint {
margin: 6px 0 0;
}