调整 音频合成, 头衔监测

This commit is contained in:
spllzh
2025-10-06 23:16:59 +08:00
parent 20378e8115
commit 76dedb657a
36 changed files with 1732 additions and 12 deletions

View File

@@ -99,6 +99,8 @@ public class DifyWorkflowResponseDto {

View File

@@ -0,0 +1,62 @@
package com.rj.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import java.math.BigDecimal;
/**
* 视频合成请求DTO
*
* @author rj
* @date 2025-01-02
*/
@Data
@Schema(description = "视频合成请求参数")
public class VideoSynthesisRequestDto {
@NotBlank(message = "图片URL不能为空")
@Schema(description = "图片URL", required = true, example = "https://example.com/image.jpg")
private String imageUrl;
@NotBlank(message = "音频URL不能为空")
@Schema(description = "音频URL", required = true, example = "https://example.com/audio.wav")
private String audioUrl;
@Schema(description = "使用的模型", example = "liveportrait")
private String model = "liveportrait";
@Schema(description = "图片ID", example = "img-12345")
private String imageId;
@Schema(description = "音频ID", example = "audio-67890")
private String audioId;
@Schema(description = "归属人姓名", example = "张三")
private String ownerName;
@Schema(description = "归属人电话", example = "13800138000")
private String ownerPhone;
@Schema(description = "模型供应商", example = "dashscope")
private String modelProvider;
@Schema(description = "模板ID", example = "normal")
private String templateId = "normal";
@Schema(description = "眼部动作频率", example = "0.5")
private BigDecimal eyeMoveFreq = new BigDecimal("0.5");
@Schema(description = "视频帧率", example = "30")
private Integer videoFps = 30;
@Schema(description = "嘴部动作强度", example = "1.0")
private BigDecimal mouthMoveStrength = new BigDecimal("1.0");
@Schema(description = "是否粘贴背景", example = "true")
private Boolean pasteBack = true;
@Schema(description = "头部动作强度", example = "0.7")
private BigDecimal headMoveStrength = new BigDecimal("0.7");
}