xf 维语转语音
This commit is contained in:
40
src/main/java/com/newyetai/sdk/xf/dto/TtsReqDTO.java
Normal file
40
src/main/java/com/newyetai/sdk/xf/dto/TtsReqDTO.java
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user