Files
ai-agent/digital-human/model/entity/custom_voice.go
2026-06-10 15:29:21 +08:00

39 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
"gitea.redpowerfuture.com/red-future/common/beans"
)
type customVoiceCol struct {
beans.SQLBaseCol
Name string
Description string
Status string
ErrorMsg string
OssFile string
ReferenceAudio string
}
var CustomVoiceCol = customVoiceCol{
SQLBaseCol: beans.DefSQLBaseCol,
Name: "name",
Description: "description",
Status: "status",
ErrorMsg: "error_msg",
OssFile: "oss_file",
ReferenceAudio: "reference_audio",
}
// CustomVoice 自定义音色实体
type CustomVoice struct {
beans.SQLBaseDO `orm:",inline"`
// 基础信息
Name string `orm:"name" json:"name"` // 音色名称
Description string `orm:"description" json:"description"` // 音色描述
Text string `orm:"text" json:"text"` // 参考文本
Status int `orm:"status" json:"status"` // 状态0生成中/1成功/2失败
ErrorMsg string `orm:"error_msg" json:"errorMsg"` // 错误信息
OssFile string `orm:"oss_file" json:"ossFile"` // 结果文件URL如参考音频/特征文件等)
ReferenceAudio []byte `orm:"reference_audio" json:"referenceAudio"` // 参考音频数据(二进制)
}