Commit 41eb7a56 by 苗权威

zhushi

parent c54f6196
......@@ -14,6 +14,7 @@ import java.io.File;
@Getter
@Setter
public class Dialog {
// 作品 角色名 语音人物名 文本 情绪
private String botAccount;
private String npcName;
private String person;
......
......@@ -16,10 +16,10 @@ import java.util.List;
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class TTSLSRequest {
private String _type;
private String platform;
private List<TextInfo> text_info_ls;
private String botname;
private String person;
private Integer gen3rd;
private String _type; // 等与 filename 时代表只是获取音频的文件名
private String platform; // 等与 xiaoai 时代表要将请求的多条文本的音频合并为一个文件,放到 xx/botAccount/xiaoai/ 目录下
private List<TextInfo> text_info_ls; // 请求的多个文本数据
private String botname; // 作品id
private String person; // 语音角色名
private Integer gen3rd; // // 第三方语音是否生成,为0则代表不处理该第三方语音
}
......@@ -14,14 +14,17 @@ import lombok.*;
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class TTSRequest {
private String person;
private String text;
private String _type;
private String pitch;
private String tone;
private String botname;
private String person; // 语音角色
private String text; // 文本
private String _type; // 为json时代表请求要获取的是音频访问链接
private String tone; // 情绪
private String botname; // 作品id
// 是否要获取线上地址,每个线下角色语音都有一个对应的线上角色,
// 在该请求获取不到时会跳转到其线上角色,这个参数控制是否跳转,false代表不
private Boolean get_online;
private String npcName; // 角色名,指的是与作品相关的角色名称,用于寻找人工语音
private String volume;
private String speed;
private Boolean get_online;
private String npcName;
private String pitch;
}
......@@ -18,12 +18,12 @@ import java.net.URLEncoder;
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class TextInfo {
private String person;
private String text;
private String tone;
private String volume;
private String pitch;
private String speed;
private String person; //语音角色
private String text; // 文本
private String tone; // 情绪
private String volume; // 音量
private String pitch; // 语调
private String speed; // 语速
private Boolean cache;
private String server;
private String botname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment