Image editor: Seedance2.0 refs and audio changes
Adds Seedance 2.0 reference-media constraints and forbids video data URLs; updates docs/decision-log and pitfalls to record the new rules. Introduces typed audio params (type: one-shot|loop, tempo: number|null), generator-specific placeholder styles/avoidance and UI changes for generation panels. Implements related front-end changes (new crop/ raster edit components, many image-editor models, tests and workflow hooks) and server-side contract/handler updates across api-server, shared-contracts, platform-audio, platform-image and vector_engine_audio_generation to support the new submission/asset flow and validations.
This commit is contained in:
@@ -101,6 +101,7 @@ export type EditorIconSpritesheetGenerationInput = {
|
||||
model?: string;
|
||||
aspectRatio?: string;
|
||||
imageSize?: string;
|
||||
priceMudPoints: number;
|
||||
};
|
||||
|
||||
export type EditorImageEditInput = {
|
||||
@@ -141,6 +142,7 @@ export type EditorIconSpritesheetGenerationResult = {
|
||||
model: string;
|
||||
provider: string;
|
||||
taskId: string;
|
||||
priceMudPoints: number;
|
||||
};
|
||||
|
||||
export type EditorCharacterAnimationResolution = '480p' | '720p';
|
||||
@@ -227,8 +229,8 @@ export type EditorVideoGenerationResult = {
|
||||
|
||||
export type EditorSoundEffectGenerationInput = {
|
||||
sound: string;
|
||||
type: 'ui' | 'foley' | 'ambient';
|
||||
tempo: 'slow' | 'medium' | 'fast';
|
||||
type: 'one-shot' | 'loop';
|
||||
tempo: number | null;
|
||||
priceMudPoints: number;
|
||||
};
|
||||
|
||||
@@ -558,6 +560,7 @@ export async function generateEditorIconSpritesheet(
|
||||
model: input.model?.trim() || EDITOR_IMAGE_MODEL_NANOBANANA2,
|
||||
...(input.aspectRatio ? { aspectRatio: input.aspectRatio } : {}),
|
||||
...(input.imageSize ? { imageSize: input.imageSize } : {}),
|
||||
priceMudPoints: input.priceMudPoints,
|
||||
}),
|
||||
'生成图标素材失败',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user