feat: add script tts backend

This commit is contained in:
2026-05-17 16:36:06 +08:00
parent 1016111d19
commit 6b426c2b68
21 changed files with 808 additions and 5 deletions
@@ -0,0 +1,55 @@
package com.emotion.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.emotion.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_tts_task")
public class TtsTask extends BaseEntity {
@TableField("user_id")
private String userId;
@TableField("source_type")
private String sourceType;
@TableField("source_id")
private String sourceId;
@TableField("text_hash")
private String textHash;
@TableField("text_length")
private Integer textLength;
@TableField("voice")
private String voice;
@TableField("status")
private String status;
@TableField("audio_url")
private String audioUrl;
@TableField("audio_path")
private String audioPath;
@TableField("duration_ms")
private Long durationMs;
@TableField("error_message")
private String errorMessage;
@TableField("request_count")
private Integer requestCount;
}