package com.backendsys.entity.Ai.Aiivh.AiivhMakeBroadcastTask;

import com.backendsys.entity.validator.RangeFloat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class SpeechParamDTO {
    @NotNull(message="语速不能为空", groups = { AiivhMakeBroadcastTaskDTO.Create.class })
    @RangeFloat(min = 0.5, max = 1.5, message = "语速范围须在 {min} 到 {max} 之间", groups = { AiivhMakeBroadcastTaskDTO.Create.class })
    private Float speed;

    private String timbre_key;

    @NotNull(message="音量不能为空", groups = { AiivhMakeBroadcastTaskDTO.Create.class })
    @Range(min = 1, max = 10, message = "音量范围须在 {min} 到 {max} 之间")
    private Integer volume;
}
