40 lines
804 B
Java
40 lines
804 B
Java
|
|
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;
|
|||
|
|
|
|||
|
|
}
|