xf 维语转语音

This commit is contained in:
ran.shang
2025-08-22 15:52:49 +08:00
parent cc8c388925
commit 5effd9bcf4
5 changed files with 76 additions and 17 deletions

View File

@@ -0,0 +1,40 @@
package com.newyetai.sdk.xf.dto;
import com.newyetai.sdk.xf.util.WebTtsWS;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TtsReqDTO implements Serializable {
@NotBlank(message = "合成文本不能为空")
private String text;
/**
* 发音人
* x4_yezi(中文)/x2_ugsp_dilare(维语)
*/
@Default
private String vcn = "xiaoyan";
/**
* 文本编码格式
* GB2312
* GBK
* BIG5
* UNICODE(小语种)
* GB18030
* UTF8(小语种推荐使用UTF8编码)
* */
@Default
private String tte = WebTtsWS.TTL_UTF8;
}