-offline add voice and industrycode
This commit is contained in:
@@ -31,37 +31,52 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
};
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest();
|
||||
~SubmitAudioTo2DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
std::string getUrl() const;
|
||||
void setUrl(const std::string &url);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
long tenantId_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
std::string url_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
|
||||
@@ -31,39 +31,55 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
std::string industryCode;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
};
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest();
|
||||
~SubmitAudioTo3DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
std::string getUrl() const;
|
||||
void setUrl(const std::string &url);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
long tenantId_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
std::string url_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
|
||||
@@ -31,13 +31,6 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
bool isSubtitles;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
struct AudioInfo {
|
||||
std::string voice;
|
||||
int volume;
|
||||
@@ -47,31 +40,53 @@ public:
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
bool isSubtitles;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
SubmitTextTo2DAvatarVideoTaskRequest();
|
||||
~SubmitTextTo2DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
AudioInfo getAudioInfo() const;
|
||||
void setAudioInfo(const AudioInfo &audioInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
AudioInfo audioInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
long tenantId_;
|
||||
std::string text_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string text_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
|
||||
@@ -31,6 +31,18 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AudioInfo {
|
||||
std::string voice;
|
||||
int volume;
|
||||
int speechRate;
|
||||
int pitchRate;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
std::string industryCode;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
@@ -38,33 +50,46 @@ public:
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
};
|
||||
SubmitTextTo3DAvatarVideoTaskRequest();
|
||||
~SubmitTextTo3DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
AudioInfo getAudioInfo() const;
|
||||
void setAudioInfo(const AudioInfo &audioInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
AudioInfo audioInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
long tenantId_;
|
||||
std::string text_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string text_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
|
||||
@@ -34,6 +34,42 @@ void SubmitAudioTo2DAvatarVideoTaskRequest::setApp(const SubmitAudioTo2DAvatarVi
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::AvatarInfo SubmitAudioTo2DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setAvatarInfo(const SubmitAudioTo2DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::VideoInfo SubmitAudioTo2DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
@@ -46,13 +82,13 @@ void SubmitAudioTo2DAvatarVideoTaskRequest::setVideoInfo(const SubmitAudioTo2DAv
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::AvatarInfo SubmitAudioTo2DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setAvatarInfo(const SubmitAudioTo2DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitAudioTo2DAvatarVideoTaskRequest::getTenantId() const {
|
||||
@@ -64,21 +100,30 @@ void SubmitAudioTo2DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
bool SubmitAudioTo2DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,45 @@ void SubmitAudioTo3DAvatarVideoTaskRequest::setApp(const SubmitAudioTo3DAvatarVi
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::AvatarInfo SubmitAudioTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitAudioTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
setParameter(std::string("AvatarInfo") + ".IndustryCode", avatarInfo.industryCode);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::VideoInfo SubmitAudioTo3DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
@@ -46,15 +85,13 @@ void SubmitAudioTo3DAvatarVideoTaskRequest::setVideoInfo(const SubmitAudioTo3DAv
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::AvatarInfo SubmitAudioTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitAudioTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitAudioTo3DAvatarVideoTaskRequest::getTenantId() const {
|
||||
@@ -66,21 +103,30 @@ void SubmitAudioTo3DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
bool SubmitAudioTo3DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,19 +34,6 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setApp(const SubmitTextTo2DAvatarVide
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo SubmitTextTo2DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setVideoInfo(const SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".BackgroundImageUrl", videoInfo.backgroundImageUrl);
|
||||
setParameter(std::string("VideoInfo") + ".IsSubtitles", videoInfo.isSubtitles ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
SubmitTextTo2DAvatarVideoTaskRequest::AudioInfo SubmitTextTo2DAvatarVideoTaskRequest::getAudioInfo() const {
|
||||
return audioInfo_;
|
||||
}
|
||||
@@ -68,6 +55,46 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setAvatarInfo(const SubmitTextTo2DAva
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo SubmitTextTo2DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setVideoInfo(const SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".BackgroundImageUrl", videoInfo.backgroundImageUrl);
|
||||
setParameter(std::string("VideoInfo") + ".IsSubtitles", videoInfo.isSubtitles ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitTextTo2DAvatarVideoTaskRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
@@ -77,6 +104,24 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SubmitTextTo2DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
@@ -86,12 +131,12 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setText(const std::string &text) {
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,48 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setApp(const SubmitTextTo3DAvatarVide
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::AudioInfo SubmitTextTo3DAvatarVideoTaskRequest::getAudioInfo() const {
|
||||
return audioInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setAudioInfo(const SubmitTextTo3DAvatarVideoTaskRequest::AudioInfo &audioInfo) {
|
||||
audioInfo_ = audioInfo;
|
||||
setParameter(std::string("AudioInfo") + ".Voice", audioInfo.voice);
|
||||
setParameter(std::string("AudioInfo") + ".Volume", std::to_string(audioInfo.volume));
|
||||
setParameter(std::string("AudioInfo") + ".SpeechRate", std::to_string(audioInfo.speechRate));
|
||||
setParameter(std::string("AudioInfo") + ".PitchRate", std::to_string(audioInfo.pitchRate));
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo SubmitTextTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
setParameter(std::string("AvatarInfo") + ".IndustryCode", avatarInfo.industryCode);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::VideoInfo SubmitTextTo3DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
@@ -47,15 +89,13 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setVideoInfo(const SubmitTextTo3DAvat
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo SubmitTextTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitTextTo3DAvatarVideoTaskRequest::getTenantId() const {
|
||||
@@ -67,6 +107,24 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SubmitTextTo3DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
@@ -76,12 +134,12 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setText(const std::string &text) {
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user