tencentcloud-sdk-mps 3.0.1203 → 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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190612/models.rb +77 -18
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be8d905a7a2990ecd40348448aaaebf477c38c4d
|
|
4
|
+
data.tar.gz: 5ea60050766bb9781a193324adeab14ca01fd905
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de8ad90042c016c00043afc3d0ce93fb9d015280aaf5cf21db12474c6f568ae5890bdbb0ae2fdb91f220c7d663f2369af186741a7c0e2275bc76362a3d935d17
|
|
7
|
+
data.tar.gz: 0cc6727300a3a206685008182963e40cd9f3120999e7586063e38880e02286b2e8cc7e74a91cdb40b86f747bae3bfd391b40923f0df2410b6af2597dd048ccac
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1205
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -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'])
|
|
@@ -7653,9 +7668,7 @@ module TencentCloud
|
|
|
7653
7668
|
# 注意:
|
|
7654
7669
|
# 此值只是区分模板类型,任务使用RemoveAudio和RemoveVideo的值
|
|
7655
7670
|
# @type PureAudio: Integer
|
|
7656
|
-
# @param SegmentType: 分片类型,可选值: <li>ts-segment:HLS+TS 切片</li> <li>ts-byterange:HLS+TS byte range</li> <li>mp4-segment:HLS+MP4 切片</li> <li>mp4-byterange:HLS/DASH+MP4 byte range</li> <li>ts-packed-audio:TS+Packed Audio</li> <li>mp4-packed-audio:MP4+Packed Audio</li> 默认值:ts-segment
|
|
7657
|
-
|
|
7658
|
-
# 注:自适应码流的分片格式以此字段为准。DASH格式下SegmentType只能为mp4-byterange。
|
|
7671
|
+
# @param SegmentType: 分片类型,可选值: <li>ts-segment:HLS+TS 切片</li> <li>ts-byterange:HLS+TS byte range</li> <li>mp4-segment:HLS+MP4 切片</li> <li>mp4-byterange:HLS/DASH+MP4 byte range</li> <li>ts-packed-audio:HLS+TS+Packed Audio 切片</li> <li>mp4-packed-audio:HLS+MP4+Packed Audio 切片</li> <li>ts-ts-segment:HLS+TS+TS 切片</li> <li>ts-ts-byterange:HLS+TS+TS byte range</li> <li>mp4-mp4-segment:HLS+MP4+MP4 切片</li> <li>mp4-mp4-byterange:HLS/DASH+MP4+MP4 byte range</li> <li>ts-packed-audio-byterange:HLS+TS+Packed Audio byte range</li> <li>mp4-packed-audio-byterange:HLS+MP4+Packed Audio byte range</li> 默认值:ts-segment 注:自适应码流的分片格式以此字段为准。DASH格式下SegmentType只能为mp4-byterange或mp4-mp4-byterange。
|
|
7659
7672
|
# @type SegmentType: String
|
|
7660
7673
|
|
|
7661
7674
|
attr_accessor :Format, :StreamInfos, :Name, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :Comment, :PureAudio, :SegmentType
|
|
@@ -7822,6 +7835,12 @@ module TencentCloud
|
|
|
7822
7835
|
# 4. GV, 可选[3.1]。
|
|
7823
7836
|
# 5. OS,可选[2.0]。
|
|
7824
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
|
|
7825
7844
|
# @param Prompt: 生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。
|
|
7826
7845
|
# @type Prompt: String
|
|
7827
7846
|
# @param NegativePrompt: 用于描述您想要阻止模型生成的内容。
|
|
@@ -7878,11 +7897,12 @@ module TencentCloud
|
|
|
7878
7897
|
# @param Operator: 接口操作者名称。
|
|
7879
7898
|
# @type Operator: String
|
|
7880
7899
|
|
|
7881
|
-
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
|
|
7882
7901
|
|
|
7883
|
-
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)
|
|
7884
7903
|
@ModelName = modelname
|
|
7885
7904
|
@ModelVersion = modelversion
|
|
7905
|
+
@SceneType = scenetype
|
|
7886
7906
|
@Prompt = prompt
|
|
7887
7907
|
@NegativePrompt = negativeprompt
|
|
7888
7908
|
@EnhancePrompt = enhanceprompt
|
|
@@ -7899,6 +7919,7 @@ module TencentCloud
|
|
|
7899
7919
|
def deserialize(params)
|
|
7900
7920
|
@ModelName = params['ModelName']
|
|
7901
7921
|
@ModelVersion = params['ModelVersion']
|
|
7922
|
+
@SceneType = params['SceneType']
|
|
7902
7923
|
@Prompt = params['Prompt']
|
|
7903
7924
|
@NegativePrompt = params['NegativePrompt']
|
|
7904
7925
|
@EnhancePrompt = params['EnhancePrompt']
|
|
@@ -15154,6 +15175,7 @@ module TencentCloud
|
|
|
15154
15175
|
# <li>AddBlindWatermark: 添加基础版权数字水印</li>
|
|
15155
15176
|
# <li>AddNagraWatermark: 添加NAGRA数字水印</li>
|
|
15156
15177
|
# <li>ExtractBlindWatermark: 提取基础版权数字水印</li>
|
|
15178
|
+
# <li>AIGC: AIGC</li>
|
|
15157
15179
|
# @type Types: Array
|
|
15158
15180
|
# @param ProcessRegions: 媒体处理园区,默认返回 ap-guangzhou 园区。
|
|
15159
15181
|
# <li>ap-guangzhou:广州</li>
|
|
@@ -17801,14 +17823,20 @@ module TencentCloud
|
|
|
17801
17823
|
# @type ImageWidth: Integer
|
|
17802
17824
|
# @param ImageSize: 图片输出分辨率,取值:1K/2K/4K。
|
|
17803
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
|
|
17804
17830
|
|
|
17805
|
-
attr_accessor :AspectRatio, :ImageHeight, :ImageWidth, :ImageSize
|
|
17831
|
+
attr_accessor :AspectRatio, :ImageHeight, :ImageWidth, :ImageSize, :Format, :Quality
|
|
17806
17832
|
|
|
17807
|
-
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)
|
|
17808
17834
|
@AspectRatio = aspectratio
|
|
17809
17835
|
@ImageHeight = imageheight
|
|
17810
17836
|
@ImageWidth = imagewidth
|
|
17811
17837
|
@ImageSize = imagesize
|
|
17838
|
+
@Format = format
|
|
17839
|
+
@Quality = quality
|
|
17812
17840
|
end
|
|
17813
17841
|
|
|
17814
17842
|
def deserialize(params)
|
|
@@ -17816,6 +17844,24 @@ module TencentCloud
|
|
|
17816
17844
|
@ImageHeight = params['ImageHeight']
|
|
17817
17845
|
@ImageWidth = params['ImageWidth']
|
|
17818
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']
|
|
17819
17865
|
end
|
|
17820
17866
|
end
|
|
17821
17867
|
|
|
@@ -21377,8 +21423,7 @@ module TencentCloud
|
|
|
21377
21423
|
# 注意:
|
|
21378
21424
|
# 此值只是区分模板类型,任务使用RemoveAudio和RemoveVideo的值
|
|
21379
21425
|
# @type PureAudio: Integer
|
|
21380
|
-
# @param SegmentType: 分片类型,可选值: <li>ts-segment:HLS+TS 切片</li> <li>ts-byterange:HLS+TS byte range</li> <li>mp4-segment:HLS+MP4 切片</li> <li>mp4-byterange:HLS/DASH+MP4 byte range</li> <li>ts-packed-audio:TS+Packed Audio</li> <li>mp4-packed-audio:MP4+Packed Audio</li> 默认值:ts-segment
|
|
21381
|
-
# 注:自适应码流的hls分片格式已此字段为准。DASH格式下SegmentType只能为mp4-byterange。
|
|
21426
|
+
# @param SegmentType: 分片类型,可选值: <li>ts-segment:HLS+TS 切片</li> <li>ts-byterange:HLS+TS byte range</li> <li>mp4-segment:HLS+MP4 切片</li> <li>mp4-byterange:HLS/DASH+MP4 byte range</li> <li>ts-packed-audio:HLS+TS+Packed Audio 切片</li> <li>mp4-packed-audio:HLS+MP4+Packed Audio 切片</li> <li>ts-ts-segment:HLS+TS+TS 切片</li> <li>ts-ts-byterange:HLS+TS+TS byte range</li> <li>mp4-mp4-segment:HLS+MP4+MP4 切片</li> <li>mp4-mp4-byterange:HLS/DASH+MP4+MP4 byte range</li> <li>ts-packed-audio-byterange:HLS+TS+Packed Audio byte range</li> <li>mp4-packed-audio-byterange:HLS+MP4+Packed Audio byte range</li> 默认值:ts-segment 注:自适应码流的分片格式以此字段为准。DASH格式下SegmentType只能为mp4-byterange或mp4-mp4-byterange。
|
|
21382
21427
|
# @type SegmentType: String
|
|
21383
21428
|
|
|
21384
21429
|
attr_accessor :Definition, :Name, :Format, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :StreamInfos, :Comment, :PureAudio, :SegmentType
|
|
@@ -26268,17 +26313,26 @@ module TencentCloud
|
|
|
26268
26313
|
# @type Source: String
|
|
26269
26314
|
# @param AudioFormat: 音频数据格式,默认为 pcm
|
|
26270
26315
|
|
|
26271
|
-
# 支持的格式:
|
|
26316
|
+
# 支持的格式:
|
|
26317
|
+
# pcm (16000 采样率的单声道 16 位采样 pcm 数据)
|
|
26318
|
+
# ogg-opus (16000 / 24000 / 48000 采样率的单声道 opus 编码的 ogg 数据)
|
|
26272
26319
|
# @type AudioFormat: String
|
|
26320
|
+
# @param SampleRate: 音频的采样率
|
|
26321
|
+
|
|
26322
|
+
# 支持的采样率:
|
|
26323
|
+
# pcm 16000
|
|
26324
|
+
# ogg-opus 16000 / 24000 / 48000
|
|
26325
|
+
# @type SampleRate: Integer
|
|
26273
26326
|
# @param UserExtPara: 扩展参数,默认不填,特殊需求使用
|
|
26274
26327
|
# @type UserExtPara: String
|
|
26275
26328
|
|
|
26276
|
-
attr_accessor :AudioData, :Source, :AudioFormat, :UserExtPara
|
|
26329
|
+
attr_accessor :AudioData, :Source, :AudioFormat, :SampleRate, :UserExtPara
|
|
26277
26330
|
|
|
26278
|
-
def initialize(audiodata=nil, source=nil, audioformat=nil, userextpara=nil)
|
|
26331
|
+
def initialize(audiodata=nil, source=nil, audioformat=nil, samplerate=nil, userextpara=nil)
|
|
26279
26332
|
@AudioData = audiodata
|
|
26280
26333
|
@Source = source
|
|
26281
26334
|
@AudioFormat = audioformat
|
|
26335
|
+
@SampleRate = samplerate
|
|
26282
26336
|
@UserExtPara = userextpara
|
|
26283
26337
|
end
|
|
26284
26338
|
|
|
@@ -26286,6 +26340,7 @@ module TencentCloud
|
|
|
26286
26340
|
@AudioData = params['AudioData']
|
|
26287
26341
|
@Source = params['Source']
|
|
26288
26342
|
@AudioFormat = params['AudioFormat']
|
|
26343
|
+
@SampleRate = params['SampleRate']
|
|
26289
26344
|
@UserExtPara = params['UserExtPara']
|
|
26290
26345
|
end
|
|
26291
26346
|
end
|
|
@@ -28153,15 +28208,18 @@ module TencentCloud
|
|
|
28153
28208
|
# @param Wordlist: 字词时间戳信息。
|
|
28154
28209
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
28155
28210
|
# @type Wordlist: Array
|
|
28211
|
+
# @param SpeakerId: 说话人ID(如启用说话人识别)
|
|
28212
|
+
# @type SpeakerId: String
|
|
28156
28213
|
|
|
28157
|
-
attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :Text, :Wordlist
|
|
28214
|
+
attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :Text, :Wordlist, :SpeakerId
|
|
28158
28215
|
|
|
28159
|
-
def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, text=nil, wordlist=nil)
|
|
28216
|
+
def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, text=nil, wordlist=nil, speakerid=nil)
|
|
28160
28217
|
@Confidence = confidence
|
|
28161
28218
|
@StartTimeOffset = starttimeoffset
|
|
28162
28219
|
@EndTimeOffset = endtimeoffset
|
|
28163
28220
|
@Text = text
|
|
28164
28221
|
@Wordlist = wordlist
|
|
28222
|
+
@SpeakerId = speakerid
|
|
28165
28223
|
end
|
|
28166
28224
|
|
|
28167
28225
|
def deserialize(params)
|
|
@@ -28177,6 +28235,7 @@ module TencentCloud
|
|
|
28177
28235
|
@Wordlist << wordresult_tmp
|
|
28178
28236
|
end
|
|
28179
28237
|
end
|
|
28238
|
+
@SpeakerId = params['SpeakerId']
|
|
28180
28239
|
end
|
|
28181
28240
|
end
|
|
28182
28241
|
|
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.
|
|
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-
|
|
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
|