tencentcloud-sdk-mps 3.0.1204 → 3.0.1205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190612/models.rb +68 -11
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da69c64e1e2d51ed925c9b6f10251b762b6aaafa
4
- data.tar.gz: 24123df363857f27dc65805b9c2e3a7c72def1b5
3
+ metadata.gz: be8d905a7a2990ecd40348448aaaebf477c38c4d
4
+ data.tar.gz: 5ea60050766bb9781a193324adeab14ca01fd905
5
5
  SHA512:
6
- metadata.gz: fcffca96cb3a8bc0c79e752606d34181fa6b836119f76d3926ba84b2caba6103968a3c4deb977fbfad596e03bf2fd85b7bd29d2d0e43af6848d7ada27fc4a14a
7
- data.tar.gz: 6eaaf11de6fd9aaada037bdc1c07a58deb40b68dcbb860e8a0e18fd32c85ea70067a175058112d7399dd74328d152ab36102c029ac011f5e1cd994613ff5a472
6
+ metadata.gz: de8ad90042c016c00043afc3d0ce93fb9d015280aaf5cf21db12474c6f568ae5890bdbb0ae2fdb91f220c7d663f2369af186741a7c0e2275bc76362a3d935d17
7
+ data.tar.gz: 0cc6727300a3a206685008182963e40cd9f3120999e7586063e38880e02286b2e8cc7e74a91cdb40b86f747bae3bfd391b40923f0df2410b6af2597dd048ccac
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1204
1
+ 3.0.1205
@@ -826,12 +826,15 @@ module TencentCloud
826
826
  # @type ImageSet: Array
827
827
  # @param OutputConfig: 图片处理输出配置。
828
828
  # @type OutputConfig: :class:`Tencentcloud::Mps.v20190612.models.ImageProcessOutputConfig`
829
+ # @param ExtPrompt: 图片处理附加 prompt,只针对某些场景可用。
830
+ # @type ExtPrompt: Array
829
831
 
830
- attr_accessor :ImageSet, :OutputConfig
832
+ attr_accessor :ImageSet, :OutputConfig, :ExtPrompt
831
833
 
832
- def initialize(imageset=nil, outputconfig=nil)
834
+ def initialize(imageset=nil, outputconfig=nil, extprompt=nil)
833
835
  @ImageSet = imageset
834
836
  @OutputConfig = outputconfig
837
+ @ExtPrompt = extprompt
835
838
  end
836
839
 
837
840
  def deserialize(params)
@@ -847,6 +850,14 @@ module TencentCloud
847
850
  @OutputConfig = ImageProcessOutputConfig.new
848
851
  @OutputConfig.deserialize(params['OutputConfig'])
849
852
  end
853
+ unless params['ExtPrompt'].nil?
854
+ @ExtPrompt = []
855
+ params['ExtPrompt'].each do |i|
856
+ imageprocessprompt_tmp = ImageProcessPrompt.new
857
+ imageprocessprompt_tmp.deserialize(i)
858
+ @ExtPrompt << imageprocessprompt_tmp
859
+ end
860
+ end
850
861
  end
851
862
  end
852
863
 
@@ -1573,20 +1584,24 @@ module TencentCloud
1573
1584
  # @type VideoPath: String
1574
1585
  # @param SpeakerPath: 标记文件路径
1575
1586
  # @type SpeakerPath: String
1587
+ # @param VoiceId: 音色id
1588
+ # @type VoiceId: String
1576
1589
  # @param OutputStorage: 译制视频存储位置。
1577
1590
  # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
1578
1591
 
1579
- attr_accessor :VideoPath, :SpeakerPath, :OutputStorage
1592
+ attr_accessor :VideoPath, :SpeakerPath, :VoiceId, :OutputStorage
1580
1593
 
1581
- def initialize(videopath=nil, speakerpath=nil, outputstorage=nil)
1594
+ def initialize(videopath=nil, speakerpath=nil, voiceid=nil, outputstorage=nil)
1582
1595
  @VideoPath = videopath
1583
1596
  @SpeakerPath = speakerpath
1597
+ @VoiceId = voiceid
1584
1598
  @OutputStorage = outputstorage
1585
1599
  end
1586
1600
 
1587
1601
  def deserialize(params)
1588
1602
  @VideoPath = params['VideoPath']
1589
1603
  @SpeakerPath = params['SpeakerPath']
1604
+ @VoiceId = params['VoiceId']
1590
1605
  unless params['OutputStorage'].nil?
1591
1606
  @OutputStorage = TaskOutputStorage.new
1592
1607
  @OutputStorage.deserialize(params['OutputStorage'])
@@ -7820,6 +7835,12 @@ module TencentCloud
7820
7835
  # 4. GV, 可选[3.1]。
7821
7836
  # 5. OS,可选[2.0]。
7822
7837
  # @type ModelVersion: String
7838
+ # @param SceneType: 指定场景生视频。
7839
+ # 注意:仅部分模型支持指定场景。
7840
+ # 1. Kling支持动作控制,motion_control。
7841
+ # 2. Mingmou支持横转竖,land2port。
7842
+ # 3. Vidu支持特效模板,template_effect。
7843
+ # @type SceneType: String
7823
7844
  # @param Prompt: 生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。
7824
7845
  # @type Prompt: String
7825
7846
  # @param NegativePrompt: 用于描述您想要阻止模型生成的内容。
@@ -7876,11 +7897,12 @@ module TencentCloud
7876
7897
  # @param Operator: 接口操作者名称。
7877
7898
  # @type Operator: String
7878
7899
 
7879
- attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageUrl, :LastImageUrl, :ImageInfos, :Duration, :ExtraParameters, :StoreCosParam, :AdditionalParameters, :Operator
7900
+ attr_accessor :ModelName, :ModelVersion, :SceneType, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageUrl, :LastImageUrl, :ImageInfos, :Duration, :ExtraParameters, :StoreCosParam, :AdditionalParameters, :Operator
7880
7901
 
7881
- def initialize(modelname=nil, modelversion=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageurl=nil, lastimageurl=nil, imageinfos=nil, duration=nil, extraparameters=nil, storecosparam=nil, additionalparameters=nil, operator=nil)
7902
+ def initialize(modelname=nil, modelversion=nil, scenetype=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageurl=nil, lastimageurl=nil, imageinfos=nil, duration=nil, extraparameters=nil, storecosparam=nil, additionalparameters=nil, operator=nil)
7882
7903
  @ModelName = modelname
7883
7904
  @ModelVersion = modelversion
7905
+ @SceneType = scenetype
7884
7906
  @Prompt = prompt
7885
7907
  @NegativePrompt = negativeprompt
7886
7908
  @EnhancePrompt = enhanceprompt
@@ -7897,6 +7919,7 @@ module TencentCloud
7897
7919
  def deserialize(params)
7898
7920
  @ModelName = params['ModelName']
7899
7921
  @ModelVersion = params['ModelVersion']
7922
+ @SceneType = params['SceneType']
7900
7923
  @Prompt = params['Prompt']
7901
7924
  @NegativePrompt = params['NegativePrompt']
7902
7925
  @EnhancePrompt = params['EnhancePrompt']
@@ -17800,14 +17823,20 @@ module TencentCloud
17800
17823
  # @type ImageWidth: Integer
17801
17824
  # @param ImageSize: 图片输出分辨率,取值:1K/2K/4K。
17802
17825
  # @type ImageSize: String
17826
+ # @param Format: 图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。
17827
+ # @type Format: String
17828
+ # @param Quality: 图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。
17829
+ # @type Quality: Integer
17803
17830
 
17804
- attr_accessor :AspectRatio, :ImageHeight, :ImageWidth, :ImageSize
17831
+ attr_accessor :AspectRatio, :ImageHeight, :ImageWidth, :ImageSize, :Format, :Quality
17805
17832
 
17806
- def initialize(aspectratio=nil, imageheight=nil, imagewidth=nil, imagesize=nil)
17833
+ def initialize(aspectratio=nil, imageheight=nil, imagewidth=nil, imagesize=nil, format=nil, quality=nil)
17807
17834
  @AspectRatio = aspectratio
17808
17835
  @ImageHeight = imageheight
17809
17836
  @ImageWidth = imagewidth
17810
17837
  @ImageSize = imagesize
17838
+ @Format = format
17839
+ @Quality = quality
17811
17840
  end
17812
17841
 
17813
17842
  def deserialize(params)
@@ -17815,6 +17844,24 @@ module TencentCloud
17815
17844
  @ImageHeight = params['ImageHeight']
17816
17845
  @ImageWidth = params['ImageWidth']
17817
17846
  @ImageSize = params['ImageSize']
17847
+ @Format = params['Format']
17848
+ @Quality = params['Quality']
17849
+ end
17850
+ end
17851
+
17852
+ # 图片处理相关提示词。
17853
+ class ImageProcessPrompt < TencentCloud::Common::AbstractModel
17854
+ # @param Prompt: 图片处理相关的prompt。
17855
+ # @type Prompt: String
17856
+
17857
+ attr_accessor :Prompt
17858
+
17859
+ def initialize(prompt=nil)
17860
+ @Prompt = prompt
17861
+ end
17862
+
17863
+ def deserialize(params)
17864
+ @Prompt = params['Prompt']
17818
17865
  end
17819
17866
  end
17820
17867
 
@@ -26266,17 +26313,26 @@ module TencentCloud
26266
26313
  # @type Source: String
26267
26314
  # @param AudioFormat: 音频数据格式,默认为 pcm
26268
26315
 
26269
- # 支持的格式:pcm (16k 采样率的单声道 16 位采样 pcm 数据)
26316
+ # 支持的格式:
26317
+ # pcm (16000 采样率的单声道 16 位采样 pcm 数据)
26318
+ # ogg-opus (16000 / 24000 / 48000 采样率的单声道 opus 编码的 ogg 数据)
26270
26319
  # @type AudioFormat: String
26320
+ # @param SampleRate: 音频的采样率
26321
+
26322
+ # 支持的采样率:
26323
+ # pcm 16000
26324
+ # ogg-opus 16000 / 24000 / 48000
26325
+ # @type SampleRate: Integer
26271
26326
  # @param UserExtPara: 扩展参数,默认不填,特殊需求使用
26272
26327
  # @type UserExtPara: String
26273
26328
 
26274
- attr_accessor :AudioData, :Source, :AudioFormat, :UserExtPara
26329
+ attr_accessor :AudioData, :Source, :AudioFormat, :SampleRate, :UserExtPara
26275
26330
 
26276
- def initialize(audiodata=nil, source=nil, audioformat=nil, userextpara=nil)
26331
+ def initialize(audiodata=nil, source=nil, audioformat=nil, samplerate=nil, userextpara=nil)
26277
26332
  @AudioData = audiodata
26278
26333
  @Source = source
26279
26334
  @AudioFormat = audioformat
26335
+ @SampleRate = samplerate
26280
26336
  @UserExtPara = userextpara
26281
26337
  end
26282
26338
 
@@ -26284,6 +26340,7 @@ module TencentCloud
26284
26340
  @AudioData = params['AudioData']
26285
26341
  @Source = params['Source']
26286
26342
  @AudioFormat = params['AudioFormat']
26343
+ @SampleRate = params['SampleRate']
26287
26344
  @UserExtPara = params['UserExtPara']
26288
26345
  end
26289
26346
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1204
4
+ version: 3.0.1205
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-20 00:00:00.000000000 Z
11
+ date: 2026-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common