package cn.iocoder.byzs.module.ai.controller.admin.tts.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.byzs.framework.excel.core.annotations.DictFormat;
import cn.iocoder.byzs.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - AI TTS文转音 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AiTtsRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "发音人名字", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发音人名字")
    private String name;

    @Schema(description = "发音人标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发音人标识")
    private String model;

    @Schema(description = "TTS平台", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "TTS平台", converter = DictConvert.class)
    @DictFormat("ai_platform") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String platform;

    @Schema(description = "发音人类型")
    @ExcelProperty(value = "发音人类型", converter = DictConvert.class)
    @DictFormat("ai_tts_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer type;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "语速")
    @ExcelProperty("语速")
    private Integer speechRate;

    @Schema(description = "语调")
    @ExcelProperty("语调")
    private Integer volume;

    @Schema(description = "音量")
    @ExcelProperty("音量")
    private Integer pitchRate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "租户id")
    private Long tenantId;

    @Schema(description = "情感")
    @ExcelProperty("情感")
    private String emotion;

    @Schema(description = "语音指令")
    @ExcelProperty("语音指令")
    private String command;

}