SubmitTextTo2DAvatarVideoTaskRequest.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTO2DAVATARVIDEOTASKREQUEST_H_
  17. #define ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTO2DAVATARVIDEOTASKREQUEST_H_
  18. #include <alibabacloud/avatar/AvatarExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Avatar {
  25. namespace Model {
  26. class ALIBABACLOUD_AVATAR_EXPORT SubmitTextTo2DAvatarVideoTaskRequest : public RpcServiceRequest {
  27. public:
  28. struct App {
  29. std::string appId;
  30. };
  31. struct AudioInfo {
  32. std::string voice;
  33. int volume;
  34. int speechRate;
  35. int pitchRate;
  36. int sampleRate;
  37. };
  38. struct AvatarInfo {
  39. std::string code;
  40. int x;
  41. int width;
  42. int y;
  43. int height;
  44. };
  45. struct VideoInfo {
  46. bool isAlpha;
  47. std::string backgroundImageUrl;
  48. bool isSubtitles;
  49. bool subtitleEmbedded;
  50. struct SubtitleStyle {
  51. std::string color;
  52. int size;
  53. std::string name;
  54. int y;
  55. std::string outlineColor;
  56. };
  57. SubtitleStyle subtitleStyle;
  58. int resolution;
  59. int alphaFormat;
  60. };
  61. SubmitTextTo2DAvatarVideoTaskRequest();
  62. ~SubmitTextTo2DAvatarVideoTaskRequest();
  63. App getApp() const;
  64. void setApp(const App &app);
  65. AudioInfo getAudioInfo() const;
  66. void setAudioInfo(const AudioInfo &audioInfo);
  67. AvatarInfo getAvatarInfo() const;
  68. void setAvatarInfo(const AvatarInfo &avatarInfo);
  69. std::string getTitle() const;
  70. void setTitle(const std::string &title);
  71. std::string getExtParams() const;
  72. void setExtParams(const std::string &extParams);
  73. VideoInfo getVideoInfo() const;
  74. void setVideoInfo(const VideoInfo &videoInfo);
  75. std::string getCallbackParams() const;
  76. void setCallbackParams(const std::string &callbackParams);
  77. long getTenantId() const;
  78. void setTenantId(long tenantId);
  79. bool getCallback() const;
  80. void setCallback(bool callback);
  81. std::string getExtParams_CLS() const;
  82. void setExtParams_CLS(const std::string &extParams_CLS);
  83. std::string getText() const;
  84. void setText(const std::string &text);
  85. std::string getCallbackParams_CLS() const;
  86. void setCallbackParams_CLS(const std::string &callbackParams_CLS);
  87. private:
  88. App app_;
  89. AudioInfo audioInfo_;
  90. AvatarInfo avatarInfo_;
  91. std::string title_;
  92. std::string extParams_;
  93. VideoInfo videoInfo_;
  94. std::string callbackParams_;
  95. long tenantId_;
  96. bool callback_;
  97. std::string extParams_CLS_;
  98. std::string text_;
  99. std::string callbackParams_CLS_;
  100. };
  101. } // namespace Model
  102. } // namespace Avatar
  103. } // namespace AlibabaCloud
  104. #endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTO2DAVATARVIDEOTASKREQUEST_H_