Skip to content

Commit

Permalink
-stream text
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 13, 2023
1 parent 5b418c0 commit 1201067
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
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-06-13 Version: 1.0.21
-stream text

2023-06-09 Version: 1.0.20
- SubmitAudioTo3DAvatarVideoTask

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.20</version>
<version>1.0.21</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 @@ -28,6 +28,9 @@ public class SendMessageRequest extends RpcAcsRequest<SendMessageResponse> {

private Boolean feedback;

@SerializedName("streamExtension")
private StreamExtension streamExtension;

private String textRequest;

private Long tenantId;
Expand All @@ -52,6 +55,17 @@ public void setFeedback(Boolean feedback) {
}
}

public StreamExtension getStreamExtension() {
return this.streamExtension;
}

public void setStreamExtension(StreamExtension streamExtension) {
this.streamExtension = streamExtension;
if (streamExtension != null) {
putQueryParameter("StreamExtension" , new Gson().toJson(streamExtension));
}
}

public String getTextRequest() {
return this.textRequest;
}
Expand Down Expand Up @@ -96,6 +110,42 @@ public void setSessionId(String sessionId) {
}
}

public static class StreamExtension {

@SerializedName("IsStream")
private Boolean isStream;

@SerializedName("Index")
private Integer index;

@SerializedName("Position")
private String position;

public Boolean getIsStream() {
return this.isStream;
}

public void setIsStream(Boolean isStream) {
this.isStream = isStream;
}

public Integer getIndex() {
return this.index;
}

public void setIndex(Integer index) {
this.index = index;
}

public String getPosition() {
return this.position;
}

public void setPosition(String position) {
this.position = position;
}
}

public static class VAMLRequest {

@SerializedName("Code")
Expand Down

0 comments on commit 1201067

Please sign in to comment.