Skip to content

Commit

Permalink
-offline add voice and industrycode
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 5, 2023
1 parent 77ffaf9 commit 67404b5
Show file tree
Hide file tree
Showing 6 changed files with 489 additions and 247 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-avatar/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-07-05 Version: 1.0.22
-offline add voice and industrycode

2023-06-13 Version: 1.0.21
-stream text

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-avatar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-avatar</artifactId>
<packaging>jar</packaging>
<version>1.0.21</version>
<version>1.0.22</version>
<name>aliyun-java-sdk-avatar</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,23 @@ public class SubmitAudioTo2DAvatarVideoTaskRequest extends RpcAcsRequest<SubmitA
@SerializedName("app")
private App app;

@SerializedName("avatarInfo")
private AvatarInfo avatarInfo;

private String title;

private String extParams;

private String url;

@SerializedName("videoInfo")
private VideoInfo videoInfo;

@SerializedName("avatarInfo")
private AvatarInfo avatarInfo;
private String callbackParams;

private Long tenantId;

private String title;

private String url;
private Boolean callback;
public SubmitAudioTo2DAvatarVideoTaskRequest() {
super("avatar", "2022-01-30", "SubmitAudioTo2DAvatarVideoTask");
setMethod(MethodType.POST);
Expand All @@ -56,17 +62,6 @@ public void setApp(App app) {
}
}

public VideoInfo getVideoInfo() {
return this.videoInfo;
}

public void setVideoInfo(VideoInfo videoInfo) {
this.videoInfo = videoInfo;
if (videoInfo != null) {
putQueryParameter("VideoInfo" , new Gson().toJson(videoInfo));
}
}

public AvatarInfo getAvatarInfo() {
return this.avatarInfo;
}
Expand All @@ -78,17 +73,6 @@ public void setAvatarInfo(AvatarInfo avatarInfo) {
}
}

public Long getTenantId() {
return this.tenantId;
}

public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
if(tenantId != null){
putQueryParameter("TenantId", tenantId.toString());
}
}

public String getTitle() {
return this.title;
}
Expand All @@ -100,6 +84,17 @@ public void setTitle(String title) {
}
}

public String getExtParams() {
return this.extParams;
}

public void setExtParams(String extParams) {
this.extParams = extParams;
if(extParams != null){
putQueryParameter("ExtParams", extParams);
}
}

public String getUrl() {
return this.url;
}
Expand All @@ -111,6 +106,50 @@ public void setUrl(String url) {
}
}

public VideoInfo getVideoInfo() {
return this.videoInfo;
}

public void setVideoInfo(VideoInfo videoInfo) {
this.videoInfo = videoInfo;
if (videoInfo != null) {
putQueryParameter("VideoInfo" , new Gson().toJson(videoInfo));
}
}

public String getCallbackParams() {
return this.callbackParams;
}

public void setCallbackParams(String callbackParams) {
this.callbackParams = callbackParams;
if(callbackParams != null){
putQueryParameter("CallbackParams", callbackParams);
}
}

public Long getTenantId() {
return this.tenantId;
}

public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
if(tenantId != null){
putQueryParameter("TenantId", tenantId.toString());
}
}

public Boolean getCallback() {
return this.callback;
}

public void setCallback(Boolean callback) {
this.callback = callback;
if(callback != null){
putQueryParameter("Callback", callback.toString());
}
}

public static class App {

@SerializedName("AppId")
Expand All @@ -125,6 +164,20 @@ public void setAppId(String appId) {
}
}

public static class AvatarInfo {

@SerializedName("Code")
private String code;

public String getCode() {
return this.code;
}

public void setCode(String code) {
this.code = code;
}
}

public static class VideoInfo {

@SerializedName("IsAlpha")
Expand Down Expand Up @@ -170,20 +223,6 @@ public Integer getAlphaFormat() {
public void setAlphaFormat(Integer alphaFormat) {
this.alphaFormat = alphaFormat;
}
}

public static class AvatarInfo {

@SerializedName("Code")
private String code;

public String getCode() {
return this.code;
}

public void setCode(String code) {
this.code = code;
}
}

@Override
Expand Down
Loading

0 comments on commit 67404b5

Please sign in to comment.