tencentcloud-sdk-mps 3.0.1157 → 3.0.1161

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 +775 -244
  4. metadata +3 -3
@@ -832,6 +832,56 @@ module TencentCloud
832
832
  end
833
833
  end
834
834
 
835
+ # 超分配置
836
+ class AdvancedSuperResolutionConfig < TencentCloud::Common::AbstractModel
837
+ # @param Switch: 能力配置开关,可选值:
838
+ # <li>ON:开启;</li>
839
+ # <li>OFF:关闭。</li>
840
+ # 默认值:ON。
841
+ # @type Switch: String
842
+ # @param Type: 类型,可选值:
843
+ # <li>standard:通用超分</li>
844
+ # <li>super:高级超分。</li>
845
+ # 默认值:standard。
846
+ # 注意:此字段可能返回 null,表示取不到有效值。
847
+ # @type Type: String
848
+ # @param Mode: 输出图片模式,默认percent。
849
+ # <li> aspect: 超分至指定宽高的较大矩形。</li>
850
+ # <li> fixed: 超分至固定宽高,强制缩放。</li>
851
+ # <li> percent: 超分倍率,可以为小数。</li>
852
+ # 注意:此字段可能返回 null,表示取不到有效值。
853
+ # @type Mode: String
854
+ # @param Percent: 超分倍率,可以为小数。
855
+ # 注意:此字段可能返回 null,表示取不到有效值。
856
+ # @type Percent: Float
857
+ # @param Width: 目标图片宽度,不能超过4096。
858
+ # 注意:此字段可能返回 null,表示取不到有效值。
859
+ # @type Width: Integer
860
+ # @param Height: 目标图片高度,不能超过4096。
861
+ # 注意:此字段可能返回 null,表示取不到有效值。
862
+ # @type Height: Integer
863
+
864
+ attr_accessor :Switch, :Type, :Mode, :Percent, :Width, :Height
865
+
866
+ def initialize(switch=nil, type=nil, mode=nil, percent=nil, width=nil, height=nil)
867
+ @Switch = switch
868
+ @Type = type
869
+ @Mode = mode
870
+ @Percent = percent
871
+ @Width = width
872
+ @Height = height
873
+ end
874
+
875
+ def deserialize(params)
876
+ @Switch = params['Switch']
877
+ @Type = params['Type']
878
+ @Mode = params['Mode']
879
+ @Percent = params['Percent']
880
+ @Width = params['Width']
881
+ @Height = params['Height']
882
+ end
883
+ end
884
+
835
885
  # 智能分析结果
836
886
  class AiAnalysisResult < TencentCloud::Common::AbstractModel
837
887
  # @param Type: 任务的类型,可以取的值有:
@@ -6800,7 +6850,25 @@ module TencentCloud
6800
6850
  # @type Region: String
6801
6851
  # @param Dir: 工作流绑定的输入路径目录,必须为绝对路径,即以 `/` 开头和结尾。如`/movie/201907/`,不填代表根目录`/`。
6802
6852
  # @type Dir: String
6803
- # @param Formats: 工作流允许触发的文件格式列表,如 ["mp4", "flv", "mov"]。不填代表所有格式的文件都可以触发工作流。
6853
+ # @param Formats: 支持的所有格式如下:
6854
+
6855
+ # - 视频文件扩展名,支持以下选择,共15种:
6856
+ # `.mp4`、`.avi`、`.mov`、`.wmv`、`.flv`、`.mkv`、`.mpg`、`.mpeg`、`.rm`、`.rmvb`、`.asf`、`.3gp`、`.webm`、`.ts`、`.m4v`
6857
+
6858
+ # - 音频文件扩展名,支持以下选择,共7种:
6859
+ # `.mp3`、`.wav`、`.aac`、`.flac`、`.ogg`、`.m4a`、`.amr`
6860
+
6861
+ # - 字幕文件扩展名,支持以下选择,共2种:
6862
+ # `.vtt`、`.srt`
6863
+
6864
+ # - `*`:支持任意文件格式
6865
+
6866
+ # - 不传或者传空列表:支持系统预设文件格式(视频:`.mp4`、`.ts`、`.flv`、`.wmv`、`.asf`、`.rm`、`.rmvb`、`.mpg`、`.mpeg`、`.3gp`、`.mov`、`.webm`、`.mkv`、`.avi`、`.m4v`,音频:`.mp3`、`.m4a`、`.flac`、`.ogg`、`.wav`、`.amr`、`.aac`,字幕:`.vtt`、`.srt`)
6867
+
6868
+ # **注意**:
6869
+ # 1. 如果传入的格式列表中有`*`则表示为支持任意文件格式。
6870
+ # 2. 扩展名传入时带不带`.`都可以,比如 `.mp4` 或 `mp4` 均支持。
6871
+ # 3. 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。
6804
6872
  # @type Formats: Array
6805
6873
 
6806
6874
  attr_accessor :Bucket, :Region, :Dir, :Formats
@@ -7884,12 +7952,17 @@ module TencentCloud
7884
7952
  # @type Zones: Array
7885
7953
  # @param RISTSettings: 输出的RIST的配置。
7886
7954
  # @type RISTSettings: :class:`Tencentcloud::Mps.v20190612.models.CreateOutputRistSettings`
7887
- # @param PidSelector: 对于含有多个音/视频轨的流,可以指定需要使用的轨道
7955
+ # @param PidSelector: 对于含有多个音/视频轨的流,可以指定需要使用的轨道。PidSelector 与 TrackSelector 只能存在一个
7888
7956
  # @type PidSelector: :class:`Tencentcloud::Mps.v20190612.models.PidSelector`
7957
+ # @param StreamSelector: 对于含有多个音/视频轨的流,可以指定需要使用的轨道。PidSelector 与 TrackSelector 只能存在一个
7958
+ # @type StreamSelector: :class:`Tencentcloud::Mps.v20190612.models.StreamSelector`
7889
7959
 
7890
- attr_accessor :OutputName, :Description, :Protocol, :OutputRegion, :OutputType, :OutputKind, :SRTSettings, :RTMPSettings, :RTPSettings, :AllowIpList, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :PidSelector
7960
+ attr_accessor :OutputName, :Description, :Protocol, :OutputRegion, :OutputType, :OutputKind, :SRTSettings, :RTMPSettings, :RTPSettings, :AllowIpList, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :PidSelector, :StreamSelector
7961
+ extend Gem::Deprecate
7962
+ deprecate :PidSelector, :none, 2025, 10
7963
+ deprecate :PidSelector=, :none, 2025, 10
7891
7964
 
7892
- def initialize(outputname=nil, description=nil, protocol=nil, outputregion=nil, outputtype=nil, outputkind=nil, srtsettings=nil, rtmpsettings=nil, rtpsettings=nil, allowiplist=nil, maxconcurrent=nil, securitygroupids=nil, zones=nil, ristsettings=nil, pidselector=nil)
7965
+ def initialize(outputname=nil, description=nil, protocol=nil, outputregion=nil, outputtype=nil, outputkind=nil, srtsettings=nil, rtmpsettings=nil, rtpsettings=nil, allowiplist=nil, maxconcurrent=nil, securitygroupids=nil, zones=nil, ristsettings=nil, pidselector=nil, streamselector=nil)
7893
7966
  @OutputName = outputname
7894
7967
  @Description = description
7895
7968
  @Protocol = protocol
@@ -7905,6 +7978,7 @@ module TencentCloud
7905
7978
  @Zones = zones
7906
7979
  @RISTSettings = ristsettings
7907
7980
  @PidSelector = pidselector
7981
+ @StreamSelector = streamselector
7908
7982
  end
7909
7983
 
7910
7984
  def deserialize(params)
@@ -7938,6 +8012,10 @@ module TencentCloud
7938
8012
  @PidSelector = PidSelector.new
7939
8013
  @PidSelector.deserialize(params['PidSelector'])
7940
8014
  end
8015
+ unless params['StreamSelector'].nil?
8016
+ @StreamSelector = StreamSelector.new
8017
+ @StreamSelector.deserialize(params['StreamSelector'])
8018
+ end
7941
8019
  end
7942
8020
  end
7943
8021
 
@@ -8522,28 +8600,32 @@ module TencentCloud
8522
8600
  # @type Name: String
8523
8601
  # @param VideoSrcLanguage: 智能字幕视频源语言
8524
8602
  # 当前支持以下语言:
8525
- # zh:简体中文
8526
- # en:英语
8527
- # ja:日语
8528
- # ko:韩语
8529
- # zh-PY:中英粤
8530
- # zh-medical:中文医疗
8531
- # yue:中文粤语
8532
- # vi:越南语
8533
- # ms:马来语
8534
- # id:印度尼西亚语
8535
- # fil:菲律宾语
8536
- # th:泰语
8537
- # pt:葡萄牙语
8538
- # tr:土耳其语
8539
- # ar:阿拉伯语
8540
- # es:西班牙语
8541
- # hi:印地语
8542
- # fr:法语
8543
- # de:德语
8544
- # zh_dialect:中文方言
8545
- # zh_en: 中英
8546
- # prime_zh: 中英方言
8603
+ # `zh`:简体中文
8604
+ # `yue`:中文粵语
8605
+ # `zh-PY`:中英粤
8606
+ # `zh_medical`:中文医疗
8607
+ # `zh_dialect`:中文方言
8608
+ # `prime_zh`:中英方言
8609
+ # `zh_en`:中英
8610
+ # `en`:英语
8611
+ # `ja`:日语
8612
+ # `ko`:韩语
8613
+ # `fr`:法语
8614
+ # `es`:西班牙语
8615
+ # `it`:意大利语
8616
+ # `de`:德语
8617
+ # `tr`:土耳其语
8618
+ # `ru`:俄语
8619
+ # `pt`:葡萄牙语(巴西)
8620
+ # `pt-PT`:葡萄牙语(葡萄牙)
8621
+ # `vi`:越南语
8622
+ # `id`:印度尼西亚语
8623
+ # `ms`:马来语
8624
+ # `th`:泰语
8625
+ # `ar`:阿拉伯语
8626
+ # `hi`:印地语
8627
+ # `fil`:菲律宾语
8628
+ # `auto`:自动识别(仅在纯字幕翻译中支持)
8547
8629
  # @type VideoSrcLanguage: String
8548
8630
  # @param SubtitleType: 智能字幕字幕语言类型
8549
8631
  # 0: 源语言
@@ -8555,42 +8637,64 @@ module TencentCloud
8555
8637
  # @param Comment: 智能字幕模板描述信息
8556
8638
  # 长度限制:256 个字符。
8557
8639
  # @type Comment: String
8558
- # @param SubtitleFormat: 智能字幕文件格式
8559
- # vtt: WebVTT 格式
8560
- # srt: SRT 格式
8561
- # 不填或填空:不生成字幕文件
8640
+ # @param SubtitleFormat: 智能字幕文件格式:
8641
+ # - ASR识别翻译处理类型下:
8642
+ # - vtt: WebVTT 格式字幕
8643
+ # - srt: SRT 格式字幕
8644
+ # - 不填或填空:不生成字幕文件
8645
+ # - 纯字幕翻译处理类型下:
8646
+ # - original:与源文件一致
8647
+ # - vtt: WebVTT 格式字幕
8648
+ # - srt: SRT 格式字幕
8649
+
8650
+ # **注意**:
8651
+ # - ASR识别方式下,翻译大于等于2种语言时不允许传空或不传;
8652
+ # - 纯字幕翻译方式下,不允许传空或不传
8562
8653
  # @type SubtitleFormat: String
8563
8654
  # @param AsrHotWordsConfigure: ASR热词库参数
8564
8655
  # @type AsrHotWordsConfigure: :class:`Tencentcloud::Mps.v20190612.models.AsrHotWordsConfigure`
8565
8656
  # @param TranslateSwitch: 字幕翻译开关
8566
- # ON: 开启翻译
8567
- # OFF: 关闭翻译
8657
+ # `ON`: 开启翻译
8658
+ # `OFF`: 关闭翻译
8659
+
8660
+ # **注意**:纯字幕翻译方式下,不传默认是打开的,不允许传空或`OFF`;
8568
8661
  # @type TranslateSwitch: String
8569
- # @param TranslateDstLanguage: 字幕翻译目标语言
8570
- # 当TranslateSwitch为ON的时候生效
8662
+ # @param TranslateDstLanguage: 字幕翻译目标语言,当TranslateSwitch为`ON`的时候生效
8571
8663
  # 当前支持以下语言:
8572
- # zh:简体中文
8573
- # en:英语
8574
- # ja:日语
8575
- # ko:韩语
8576
- # fr:法语
8577
- # es:西班牙语
8578
- # it:意大利语
8579
- # de:德语
8580
- # tr:土耳其语
8581
- # ru:俄语
8582
- # pt:葡萄牙语
8583
- # vi:越南语
8584
- # id:印度尼西亚语
8585
- # ms:马来语
8586
- # th:泰语
8587
- # ar:阿拉伯语
8588
- # hi:印地语
8664
+
8665
+ # `zh`:简体中文
8666
+ # `zh-TW`:繁体中文
8667
+ # `en`:英语
8668
+ # `ja`:日语
8669
+ # `ko`:韩语
8670
+ # `fr`:法语
8671
+ # `es`:西班牙语
8672
+ # `it`:意大利语
8673
+ # `de`:德语
8674
+ # `tr`:土耳其语
8675
+ # `ru`:俄语
8676
+ # `pt`:葡萄牙语(巴西)
8677
+ # `pt-PT`:葡萄牙语(葡萄牙)
8678
+ # `vi`:越南语
8679
+ # `id`:印度尼西亚语
8680
+ # `ms`:马来语
8681
+ # `th`:泰语
8682
+ # `ar`:阿拉伯语
8683
+ # `hi`:印地语
8684
+ # `fil`:菲律宾语
8685
+
8686
+ # **注意**:多语言方式,则使用 `/` 分割,如:`en/ja`,表示英语和日语。
8589
8687
  # @type TranslateDstLanguage: String
8688
+ # @param ProcessType: 字幕处理类型:
8689
+ # - 0:ASR识别字幕
8690
+ # - 1:纯字幕翻译
8691
+
8692
+ # **注意**:不传的情况下默认类型为 ASR识别字幕
8693
+ # @type ProcessType: Integer
8590
8694
 
8591
- attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage
8695
+ attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType
8592
8696
 
8593
- def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil)
8697
+ def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil)
8594
8698
  @Name = name
8595
8699
  @VideoSrcLanguage = videosrclanguage
8596
8700
  @SubtitleType = subtitletype
@@ -8599,6 +8703,7 @@ module TencentCloud
8599
8703
  @AsrHotWordsConfigure = asrhotwordsconfigure
8600
8704
  @TranslateSwitch = translateswitch
8601
8705
  @TranslateDstLanguage = translatedstlanguage
8706
+ @ProcessType = processtype
8602
8707
  end
8603
8708
 
8604
8709
  def deserialize(params)
@@ -8613,6 +8718,7 @@ module TencentCloud
8613
8718
  end
8614
8719
  @TranslateSwitch = params['TranslateSwitch']
8615
8720
  @TranslateDstLanguage = params['TranslateDstLanguage']
8721
+ @ProcessType = params['ProcessType']
8616
8722
  end
8617
8723
  end
8618
8724
 
@@ -11023,7 +11129,6 @@ module TencentCloud
11023
11129
  class DescribeImageTaskDetailResponse < TencentCloud::Common::AbstractModel
11024
11130
  # @param TaskType: 任务类型,目前取值有:
11025
11131
  # <li>WorkflowTask:工作流处理任务。</li>
11026
-
11027
11132
  # 注意:此字段可能返回 null,表示取不到有效值。
11028
11133
  # @type TaskType: String
11029
11134
  # @param Status: 任务状态,取值:
@@ -11032,6 +11137,12 @@ module TencentCloud
11032
11137
  # <li>FINISH:已完成。</li>
11033
11138
  # 注意:此字段可能返回 null,表示取不到有效值。
11034
11139
  # @type Status: String
11140
+ # @param ErrCode: 任务失败时的错误码。
11141
+ # @type ErrCode: Integer
11142
+ # @param ErrMsg: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [媒体处理类错误码](https://cloud.tencent.com/document/product/862/50369#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
11143
+ # @type ErrMsg: String
11144
+ # @param Message: 任务异常Message。
11145
+ # @type Message: String
11035
11146
  # @param ImageProcessTaskResultSet: 图片处理任务的执行状态与结果。
11036
11147
  # 注意:此字段可能返回 null,表示取不到有效值。
11037
11148
  # @type ImageProcessTaskResultSet: Array
@@ -11044,11 +11155,14 @@ module TencentCloud
11044
11155
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11045
11156
  # @type RequestId: String
11046
11157
 
11047
- attr_accessor :TaskType, :Status, :ImageProcessTaskResultSet, :CreateTime, :FinishTime, :RequestId
11158
+ attr_accessor :TaskType, :Status, :ErrCode, :ErrMsg, :Message, :ImageProcessTaskResultSet, :CreateTime, :FinishTime, :RequestId
11048
11159
 
11049
- def initialize(tasktype=nil, status=nil, imageprocesstaskresultset=nil, createtime=nil, finishtime=nil, requestid=nil)
11160
+ def initialize(tasktype=nil, status=nil, errcode=nil, errmsg=nil, message=nil, imageprocesstaskresultset=nil, createtime=nil, finishtime=nil, requestid=nil)
11050
11161
  @TaskType = tasktype
11051
11162
  @Status = status
11163
+ @ErrCode = errcode
11164
+ @ErrMsg = errmsg
11165
+ @Message = message
11052
11166
  @ImageProcessTaskResultSet = imageprocesstaskresultset
11053
11167
  @CreateTime = createtime
11054
11168
  @FinishTime = finishtime
@@ -11058,6 +11172,9 @@ module TencentCloud
11058
11172
  def deserialize(params)
11059
11173
  @TaskType = params['TaskType']
11060
11174
  @Status = params['Status']
11175
+ @ErrCode = params['ErrCode']
11176
+ @ErrMsg = params['ErrMsg']
11177
+ @Message = params['Message']
11061
11178
  unless params['ImageProcessTaskResultSet'].nil?
11062
11179
  @ImageProcessTaskResultSet = []
11063
11180
  params['ImageProcessTaskResultSet'].each do |i|
@@ -11570,10 +11687,15 @@ module TencentCloud
11570
11687
  # @type PidSelector: :class:`Tencentcloud::Mps.v20190612.models.PidSelector`
11571
11688
  # @param StreamUrls: 输出模块配置,相关的URL,包括提供的拉流地址,或者配置的输出到第三方的转推地址
11572
11689
  # @type StreamUrls: Array
11690
+ # @param StreamSelector: 对于含有多个音/视频轨的流,可以指定需要使用的轨道
11691
+ # @type StreamSelector: :class:`Tencentcloud::Mps.v20190612.models.StreamSelector`
11573
11692
 
11574
- attr_accessor :OutputId, :OutputName, :OutputType, :OutputKind, :Description, :Protocol, :OutputAddressList, :OutputRegion, :SRTSettings, :RTPSettings, :RTMPSettings, :RTMPPullSettings, :AllowIpList, :RTSPPullSettings, :HLSPullSettings, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :PidSelector, :StreamUrls
11693
+ attr_accessor :OutputId, :OutputName, :OutputType, :OutputKind, :Description, :Protocol, :OutputAddressList, :OutputRegion, :SRTSettings, :RTPSettings, :RTMPSettings, :RTMPPullSettings, :AllowIpList, :RTSPPullSettings, :HLSPullSettings, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :PidSelector, :StreamUrls, :StreamSelector
11694
+ extend Gem::Deprecate
11695
+ deprecate :PidSelector, :none, 2025, 10
11696
+ deprecate :PidSelector=, :none, 2025, 10
11575
11697
 
11576
- def initialize(outputid=nil, outputname=nil, outputtype=nil, outputkind=nil, description=nil, protocol=nil, outputaddresslist=nil, outputregion=nil, srtsettings=nil, rtpsettings=nil, rtmpsettings=nil, rtmppullsettings=nil, allowiplist=nil, rtsppullsettings=nil, hlspullsettings=nil, maxconcurrent=nil, securitygroupids=nil, zones=nil, ristsettings=nil, pidselector=nil, streamurls=nil)
11698
+ def initialize(outputid=nil, outputname=nil, outputtype=nil, outputkind=nil, description=nil, protocol=nil, outputaddresslist=nil, outputregion=nil, srtsettings=nil, rtpsettings=nil, rtmpsettings=nil, rtmppullsettings=nil, allowiplist=nil, rtsppullsettings=nil, hlspullsettings=nil, maxconcurrent=nil, securitygroupids=nil, zones=nil, ristsettings=nil, pidselector=nil, streamurls=nil, streamselector=nil)
11577
11699
  @OutputId = outputid
11578
11700
  @OutputName = outputname
11579
11701
  @OutputType = outputtype
@@ -11595,6 +11717,7 @@ module TencentCloud
11595
11717
  @RISTSettings = ristsettings
11596
11718
  @PidSelector = pidselector
11597
11719
  @StreamUrls = streamurls
11720
+ @StreamSelector = streamselector
11598
11721
  end
11599
11722
 
11600
11723
  def deserialize(params)
@@ -11657,6 +11780,10 @@ module TencentCloud
11657
11780
  @StreamUrls << streamurldetail_tmp
11658
11781
  end
11659
11782
  end
11783
+ unless params['StreamSelector'].nil?
11784
+ @StreamSelector = StreamSelector.new
11785
+ @StreamSelector.deserialize(params['StreamSelector'])
11786
+ end
11660
11787
  end
11661
11788
  end
11662
11789
 
@@ -12360,15 +12487,20 @@ module TencentCloud
12360
12487
  # @type Type: String
12361
12488
  # @param Name: 智能字幕模板标识过滤条件,长度限制:64 个字符。
12362
12489
  # @type Name: String
12490
+ # @param ProcessType: 字幕处理类型:
12491
+ # - 0:ASR识别字幕
12492
+ # - 1:纯字幕翻译
12493
+ # @type ProcessType: Integer
12363
12494
 
12364
- attr_accessor :Definitions, :Offset, :Limit, :Type, :Name
12495
+ attr_accessor :Definitions, :Offset, :Limit, :Type, :Name, :ProcessType
12365
12496
 
12366
- def initialize(definitions=nil, offset=nil, limit=nil, type=nil, name=nil)
12497
+ def initialize(definitions=nil, offset=nil, limit=nil, type=nil, name=nil, processtype=nil)
12367
12498
  @Definitions = definitions
12368
12499
  @Offset = offset
12369
12500
  @Limit = limit
12370
12501
  @Type = type
12371
12502
  @Name = name
12503
+ @ProcessType = processtype
12372
12504
  end
12373
12505
 
12374
12506
  def deserialize(params)
@@ -12377,6 +12509,7 @@ module TencentCloud
12377
12509
  @Limit = params['Limit']
12378
12510
  @Type = params['Type']
12379
12511
  @Name = params['Name']
12512
+ @ProcessType = params['ProcessType']
12380
12513
  end
12381
12514
  end
12382
12515
 
@@ -13449,10 +13582,30 @@ module TencentCloud
13449
13582
  # low_compress:画质优先:优先保证画质,压缩出来的文件体积可能相对较大。该策略仅收取音视频极速高清转码费用。
13450
13583
  # no_config:未配置。
13451
13584
  # @type CompressType: String
13452
-
13453
- attr_accessor :Definitions, :Type, :ContainerType, :TEHDType, :Offset, :Limit, :TranscodeType, :Name, :SceneType, :CompressType
13454
-
13455
- def initialize(definitions=nil, type=nil, containertype=nil, tehdtype=nil, offset=nil, limit=nil, transcodetype=nil, name=nil, scenetype=nil, compresstype=nil)
13585
+ # @param EnhanceSceneType: 增强场景配置,可选值:
13586
+ # <li>common(通用),通用增强参数,适用于各种视频类型的基础优化参数,提升整体画质。</li>
13587
+ # <li>AIGC,整体分辨率提升,利用AI技术提升视频整体分辨率,增强画面清晰度。</li>
13588
+ # <li>short_play(短剧),增强面部与字幕细节,突出人物面部表情细节和字幕清晰度,提升观剧体验。</li>
13589
+ # <li>short_video(短视频),优化复杂多样的画质问题,针对短视频的复杂场景,优化画质,解决多种视觉问题。</li>
13590
+ # <li>game(游戏视频),修复运动模糊,提升细节,重点提升游戏细节清晰度,恢复运动模糊区域,使游戏画面内容更清晰,更丰富。</li>
13591
+ # <li>HD_movie_series(超高清影视剧),获得超高清流畅效果,针对广电/OTT超高清视频的诉求,生成4K 60fps HDR的超高清标准视频。支持广电场景格式标准要求。</li>
13592
+ # <li>LQ_material(低清素材/老片修复),整体分辨率提升,针对老旧视频由于拍摄年代较久存在的分辨率不足、模糊失真、划痕损伤和色温等问题进行专门优化。</li>
13593
+ # <li>lecture(秀场/电商/大会/讲座),美化提升面部效果,针对秀场/电商/大会/讲座等存在人物进行讲解的场景,进行人脸区域、噪声消除、毛刺处理的专门优化。</li>
13594
+ # @type EnhanceSceneType: String
13595
+ # @param EnhanceTranscodeType: 增强转码类型,可选值:
13596
+ # <li>Common(普通转码)</li>
13597
+ # <li>TEHD-100(极速高清视频转码)</li>
13598
+ # <li>TEHD-200(极速高清音频转码)</li>
13599
+ # @type EnhanceTranscodeType: String
13600
+ # @param EnhanceType: 增强类型,可选值:
13601
+ # <li>VideoEnhance(仅视频增强)</li>
13602
+ # <li>AudioEnhance(仅音频增强)</li>
13603
+ # <li>VideoAudioEnhance(视频音频增强都含)</li>
13604
+ # @type EnhanceType: String
13605
+
13606
+ attr_accessor :Definitions, :Type, :ContainerType, :TEHDType, :Offset, :Limit, :TranscodeType, :Name, :SceneType, :CompressType, :EnhanceSceneType, :EnhanceTranscodeType, :EnhanceType
13607
+
13608
+ def initialize(definitions=nil, type=nil, containertype=nil, tehdtype=nil, offset=nil, limit=nil, transcodetype=nil, name=nil, scenetype=nil, compresstype=nil, enhancescenetype=nil, enhancetranscodetype=nil, enhancetype=nil)
13456
13609
  @Definitions = definitions
13457
13610
  @Type = type
13458
13611
  @ContainerType = containertype
@@ -13463,6 +13616,9 @@ module TencentCloud
13463
13616
  @Name = name
13464
13617
  @SceneType = scenetype
13465
13618
  @CompressType = compresstype
13619
+ @EnhanceSceneType = enhancescenetype
13620
+ @EnhanceTranscodeType = enhancetranscodetype
13621
+ @EnhanceType = enhancetype
13466
13622
  end
13467
13623
 
13468
13624
  def deserialize(params)
@@ -13476,6 +13632,9 @@ module TencentCloud
13476
13632
  @Name = params['Name']
13477
13633
  @SceneType = params['SceneType']
13478
13634
  @CompressType = params['CompressType']
13635
+ @EnhanceSceneType = params['EnhanceSceneType']
13636
+ @EnhanceTranscodeType = params['EnhanceTranscodeType']
13637
+ @EnhanceType = params['EnhanceType']
13479
13638
  end
13480
13639
  end
13481
13640
 
@@ -13921,6 +14080,36 @@ module TencentCloud
13921
14080
  end
13922
14081
  end
13923
14082
 
14083
+ # 大模型增强
14084
+ class DiffusionEnhanceConfig < TencentCloud::Common::AbstractModel
14085
+ # @param Switch: 能力配置开关,可选值:
14086
+
14087
+ # ON:开启;
14088
+ # OFF:关闭。
14089
+ # 默认,OFF。
14090
+ # @type Switch: String
14091
+ # @param Type: 强度类型,可选值:
14092
+
14093
+ # weak
14094
+ # normal
14095
+ # strong
14096
+ # 默认值:normal。
14097
+ # 注意:此字段可能返回 null,表示取不到有效值。
14098
+ # @type Type: String
14099
+
14100
+ attr_accessor :Switch, :Type
14101
+
14102
+ def initialize(switch=nil, type=nil)
14103
+ @Switch = switch
14104
+ @Type = type
14105
+ end
14106
+
14107
+ def deserialize(params)
14108
+ @Switch = params['Switch']
14109
+ @Type = params['Type']
14110
+ end
14111
+ end
14112
+
13924
14113
  # DisableSchedule请求参数结构体
13925
14114
  class DisableScheduleRequest < TencentCloud::Common::AbstractModel
13926
14115
  # @param ScheduleId: 编排唯一表示。
@@ -14049,6 +14238,10 @@ module TencentCloud
14049
14238
  # 可以用于HLS和DASH,切片格式只能是mp4
14050
14239
  # 输出HLS:可以使用切片模式或singlefile模式
14051
14240
  # 输出DASH:只能singlefile模式
14241
+
14242
+ # - widevine+fairplay:
14243
+ # 只能用于HLS,切片格式只能是mp4
14244
+ # 可以使用切片模式或singfile模式
14052
14245
  # @type Type: String
14053
14246
  # @param SimpleAesDrm: SimpleAes 加密信息。
14054
14247
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -15530,6 +15723,35 @@ module TencentCloud
15530
15723
  end
15531
15724
  end
15532
15725
 
15726
+ # 新插帧配置,支持分数帧率
15727
+ class FrameRateWithDenConfig < TencentCloud::Common::AbstractModel
15728
+ # @param Switch: 能力配置开关,可选值:
15729
+ # <li>ON:开启;</li>
15730
+ # <li>OFF:关闭。</li>
15731
+ # 默认值:ON。
15732
+ # @type Switch: String
15733
+ # @param FpsNum: 帧率分子,取值范围:非负数,除以分母后小于120,单位:Hz。 默认值 0。 注意:对于转码,该参数会覆盖 VideoTemplate 内部的 Fps。
15734
+ # 注意:此字段可能返回 null,表示取不到有效值。
15735
+ # @type FpsNum: Integer
15736
+ # @param FpsDen: 帧率分母,取值范围:大于等于1。 默认值 1。 注意:对于转码,该参数会覆盖 VideoTemplate 内部的 FpsDenominator。
15737
+ # 注意:此字段可能返回 null,表示取不到有效值。
15738
+ # @type FpsDen: Integer
15739
+
15740
+ attr_accessor :Switch, :FpsNum, :FpsDen
15741
+
15742
+ def initialize(switch=nil, fpsnum=nil, fpsden=nil)
15743
+ @Switch = switch
15744
+ @FpsNum = fpsnum
15745
+ @FpsDen = fpsden
15746
+ end
15747
+
15748
+ def deserialize(params)
15749
+ @Switch = params['Switch']
15750
+ @FpsNum = params['FpsNum']
15751
+ @FpsDen = params['FpsDen']
15752
+ end
15753
+ end
15754
+
15533
15755
  # 智能按帧标签任务控制参数
15534
15756
  class FrameTagConfigureInfo < TencentCloud::Common::AbstractModel
15535
15757
  # @param Switch: 智能按帧标签任务开关,可选值:
@@ -15625,7 +15847,7 @@ module TencentCloud
15625
15847
  # <li>HDR10</li>
15626
15848
  # <li>HLG</li>
15627
15849
  # 默认值:HDR10。
15628
- # 注意:video的编码方式需要为h265;
15850
+ # 注意:video的编码方式需要为h264或h265;
15629
15851
  # 注意:视频编码位深为10。
15630
15852
  # 注意:此字段可能返回 null,表示取不到有效值。
15631
15853
  # @type Type: String
@@ -15811,6 +16033,8 @@ module TencentCloud
15811
16033
  # @param SuperResolution: 超分配置。
15812
16034
  # 注意:此字段可能返回 null,表示取不到有效值。
15813
16035
  # @type SuperResolution: :class:`Tencentcloud::Mps.v20190612.models.SuperResolutionConfig`
16036
+ # @param AdvancedSuperResolutionConfig: 高级超分配置。
16037
+ # @type AdvancedSuperResolutionConfig: :class:`Tencentcloud::Mps.v20190612.models.AdvancedSuperResolutionConfig`
15814
16038
  # @param Denoise: 降噪配置。
15815
16039
  # 注意:此字段可能返回 null,表示取不到有效值。
15816
16040
  # @type Denoise: :class:`Tencentcloud::Mps.v20190612.models.ImageDenoiseConfig`
@@ -15830,10 +16054,11 @@ module TencentCloud
15830
16054
  # 注意:此字段可能返回 null,表示取不到有效值。
15831
16055
  # @type LowLightEnhance: :class:`Tencentcloud::Mps.v20190612.models.LowLightEnhanceConfig`
15832
16056
 
15833
- attr_accessor :SuperResolution, :Denoise, :ImageQualityEnhance, :ColorEnhance, :SharpEnhance, :FaceEnhance, :LowLightEnhance
16057
+ attr_accessor :SuperResolution, :AdvancedSuperResolutionConfig, :Denoise, :ImageQualityEnhance, :ColorEnhance, :SharpEnhance, :FaceEnhance, :LowLightEnhance
15834
16058
 
15835
- def initialize(superresolution=nil, denoise=nil, imagequalityenhance=nil, colorenhance=nil, sharpenhance=nil, faceenhance=nil, lowlightenhance=nil)
16059
+ def initialize(superresolution=nil, advancedsuperresolutionconfig=nil, denoise=nil, imagequalityenhance=nil, colorenhance=nil, sharpenhance=nil, faceenhance=nil, lowlightenhance=nil)
15836
16060
  @SuperResolution = superresolution
16061
+ @AdvancedSuperResolutionConfig = advancedsuperresolutionconfig
15837
16062
  @Denoise = denoise
15838
16063
  @ImageQualityEnhance = imagequalityenhance
15839
16064
  @ColorEnhance = colorenhance
@@ -15847,6 +16072,10 @@ module TencentCloud
15847
16072
  @SuperResolution = SuperResolutionConfig.new
15848
16073
  @SuperResolution.deserialize(params['SuperResolution'])
15849
16074
  end
16075
+ unless params['AdvancedSuperResolutionConfig'].nil?
16076
+ @AdvancedSuperResolutionConfig = AdvancedSuperResolutionConfig.new
16077
+ @AdvancedSuperResolutionConfig.deserialize(params['AdvancedSuperResolutionConfig'])
16078
+ end
15850
16079
  unless params['Denoise'].nil?
15851
16080
  @Denoise = ImageDenoiseConfig.new
15852
16081
  @Denoise.deserialize(params['Denoise'])
@@ -15968,6 +16197,8 @@ module TencentCloud
15968
16197
  # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
15969
16198
  # 注意:此字段可能返回 null,表示取不到有效值。
15970
16199
  # @type Status: String
16200
+ # @param ErrMsg: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [媒体处理类错误码](https://cloud.tencent.com/document/product/862/50369#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
16201
+ # @type ErrMsg: String
15971
16202
  # @param Message: 错误信息。
15972
16203
  # 注意:此字段可能返回 null,表示取不到有效值。
15973
16204
  # @type Message: String
@@ -15978,10 +16209,11 @@ module TencentCloud
15978
16209
  # 注意:此字段可能返回 null,表示取不到有效值。
15979
16210
  # @type Progress: Integer
15980
16211
 
15981
- attr_accessor :Status, :Message, :Output, :Progress
16212
+ attr_accessor :Status, :ErrMsg, :Message, :Output, :Progress
15982
16213
 
15983
- def initialize(status=nil, message=nil, output=nil, progress=nil)
16214
+ def initialize(status=nil, errmsg=nil, message=nil, output=nil, progress=nil)
15984
16215
  @Status = status
16216
+ @ErrMsg = errmsg
15985
16217
  @Message = message
15986
16218
  @Output = output
15987
16219
  @Progress = progress
@@ -15989,6 +16221,7 @@ module TencentCloud
15989
16221
 
15990
16222
  def deserialize(params)
15991
16223
  @Status = params['Status']
16224
+ @ErrMsg = params['ErrMsg']
15992
16225
  @Message = params['Message']
15993
16226
  unless params['Output'].nil?
15994
16227
  @Output = ImageProcessTaskOutput.new
@@ -19848,10 +20081,15 @@ module TencentCloud
19848
20081
  # @type OutputType: String
19849
20082
  # @param PidSelector: 对于含有多个音/视频轨的流,可以指定需要使用的轨道
19850
20083
  # @type PidSelector: :class:`Tencentcloud::Mps.v20190612.models.PidSelector`
20084
+ # @param StreamSelector: 对于含有多个音/视频轨的流,可以指定需要使用的轨道
20085
+ # @type StreamSelector: :class:`Tencentcloud::Mps.v20190612.models.StreamSelector`
19851
20086
 
19852
- attr_accessor :OutputId, :OutputName, :Description, :Protocol, :OutputKind, :SRTSettings, :RTPSettings, :RTMPSettings, :AllowIpList, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :OutputType, :PidSelector
20087
+ attr_accessor :OutputId, :OutputName, :Description, :Protocol, :OutputKind, :SRTSettings, :RTPSettings, :RTMPSettings, :AllowIpList, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :OutputType, :PidSelector, :StreamSelector
20088
+ extend Gem::Deprecate
20089
+ deprecate :PidSelector, :none, 2025, 10
20090
+ deprecate :PidSelector=, :none, 2025, 10
19853
20091
 
19854
- def initialize(outputid=nil, outputname=nil, description=nil, protocol=nil, outputkind=nil, srtsettings=nil, rtpsettings=nil, rtmpsettings=nil, allowiplist=nil, maxconcurrent=nil, securitygroupids=nil, zones=nil, ristsettings=nil, outputtype=nil, pidselector=nil)
20092
+ def initialize(outputid=nil, outputname=nil, description=nil, protocol=nil, outputkind=nil, srtsettings=nil, rtpsettings=nil, rtmpsettings=nil, allowiplist=nil, maxconcurrent=nil, securitygroupids=nil, zones=nil, ristsettings=nil, outputtype=nil, pidselector=nil, streamselector=nil)
19855
20093
  @OutputId = outputid
19856
20094
  @OutputName = outputname
19857
20095
  @Description = description
@@ -19867,6 +20105,7 @@ module TencentCloud
19867
20105
  @RISTSettings = ristsettings
19868
20106
  @OutputType = outputtype
19869
20107
  @PidSelector = pidselector
20108
+ @StreamSelector = streamselector
19870
20109
  end
19871
20110
 
19872
20111
  def deserialize(params)
@@ -19900,6 +20139,10 @@ module TencentCloud
19900
20139
  @PidSelector = PidSelector.new
19901
20140
  @PidSelector.deserialize(params['PidSelector'])
19902
20141
  end
20142
+ unless params['StreamSelector'].nil?
20143
+ @StreamSelector = StreamSelector.new
20144
+ @StreamSelector.deserialize(params['StreamSelector'])
20145
+ end
19903
20146
  end
19904
20147
  end
19905
20148
 
@@ -20286,8 +20529,10 @@ module TencentCloud
20286
20529
  # @param Definition: 智能字幕模板唯一标识
20287
20530
  # @type Definition: Integer
20288
20531
  # @param TranslateSwitch: 字幕翻译开关
20289
- # ON: 开启翻译
20290
- # OFF: 关闭翻译
20532
+ # `ON`: 开启翻译
20533
+ # `OFF`: 关闭翻译
20534
+
20535
+ # **注意**:纯字幕翻译方式下,不传默认是打开的,不允许传空或`OFF`;
20291
20536
  # @type TranslateSwitch: String
20292
20537
  # @param Name: 智能字幕模板名称
20293
20538
  # 长度限制:64 个字符。
@@ -20297,33 +20542,47 @@ module TencentCloud
20297
20542
  # @type Comment: String
20298
20543
  # @param VideoSrcLanguage: 智能字幕视频源语言
20299
20544
  # 当前支持以下语言:
20300
- # zh:简体中文
20301
- # en:英语
20302
- # ja:日语
20303
- # ko:韩语
20304
- # zh-PY:中英粤
20305
- # zh-medical:中文医疗
20306
- # yue:中文粤语
20307
- # vi:越南语
20308
- # ms:马来语
20309
- # id:印度尼西亚语
20310
- # fil:菲律宾语
20311
- # th:泰语
20312
- # pt:葡萄牙语
20313
- # tr:土耳其语
20314
- # ar:阿拉伯语
20315
- # es:西班牙语
20316
- # hi:印地语
20317
- # fr:法语
20318
- # de:德语
20319
- # zh_dialect:中文方言
20320
- # zh_en: 中英
20321
- # prime_zh: 中英方言
20545
+
20546
+ # `zh`:简体中文
20547
+ # `yue`:中文粵语
20548
+ # `zh-PY`:中英粤
20549
+ # `zh_medical`:中文医疗
20550
+ # `zh_dialect`:中文方言
20551
+ # `prime_zh`:中英方言
20552
+ # `zh_en`:中英
20553
+ # `en`:英语
20554
+ # `ja`:日语
20555
+ # `ko`:韩语
20556
+ # `fr`:法语
20557
+ # `es`:西班牙语
20558
+ # `it`:意大利语
20559
+ # `de`:德语
20560
+ # `tr`:土耳其语
20561
+ # `ru`:俄语
20562
+ # `pt`:葡萄牙语(巴西)
20563
+ # `pt-PT`:葡萄牙语(葡萄牙)
20564
+ # `vi`:越南语
20565
+ # `id`:印度尼西亚语
20566
+ # `ms`:马来语
20567
+ # `th`:泰语
20568
+ # `ar`:阿拉伯语
20569
+ # `hi`:印地语
20570
+ # `fil`:菲律宾语
20571
+ # `auto`:自动识别(仅在纯字幕翻译中支持)
20322
20572
  # @type VideoSrcLanguage: String
20323
- # @param SubtitleFormat: 智能字幕文件格式
20324
- # vtt: WebVTT 格式
20325
- # srt: SRT格式
20326
- # 不填或填空:不生成字幕文件
20573
+ # @param SubtitleFormat: 智能字幕文件格式:
20574
+ # - ASR识别翻译处理类型下:
20575
+ # - vtt: WebVTT 格式字幕
20576
+ # - srt: SRT 格式字幕
20577
+ # - 不填或填空:不生成字幕文件
20578
+ # - 纯字幕翻译处理类型下:
20579
+ # - original:与源文件一致
20580
+ # - vtt: WebVTT 格式字幕
20581
+ # - srt: SRT 格式字幕
20582
+
20583
+ # **注意**:
20584
+ # - ASR识别方式下,翻译大于等于2种语言时不允许传空或不传;
20585
+ # - 纯字幕翻译方式下,不允许传空或不传
20327
20586
  # @type SubtitleFormat: String
20328
20587
  # @param SubtitleType: 智能字幕字幕语言类型
20329
20588
  # 0: 源语言
@@ -20337,28 +20596,40 @@ module TencentCloud
20337
20596
  # @param TranslateDstLanguage: 字幕翻译目标语言
20338
20597
  # 当TranslateSwitch为ON的时候生效
20339
20598
  # 当前支持以下语言:
20340
- # zh:简体中文
20341
- # en:英语
20342
- # ja:日语
20343
- # ko:韩语
20344
- # fr:法语
20345
- # es:西班牙语
20346
- # it:意大利语
20347
- # de:德语
20348
- # tr:土耳其语
20349
- # ru:俄语
20350
- # pt:葡萄牙语
20351
- # vi:越南语
20352
- # id:印度尼西亚语
20353
- # ms:马来语
20354
- # th:泰语
20355
- # ar:阿拉伯语
20356
- # hi:印地语
20599
+
20600
+ # `zh`:简体中文
20601
+ # `zh-TW`:繁体中文
20602
+ # `en`:英语
20603
+ # `ja`:日语
20604
+ # `ko`:韩语
20605
+ # `fr`:法语
20606
+ # `es`:西班牙语
20607
+ # `it`:意大利语
20608
+ # `de`:德语
20609
+ # `tr`:土耳其语
20610
+ # `ru`:俄语
20611
+ # `pt`:葡萄牙语(巴西)
20612
+ # `pt-PT`:葡萄牙语(葡萄牙)
20613
+ # `vi`:越南语
20614
+ # `id`:印度尼西亚语
20615
+ # `ms`:马来语
20616
+ # `th`:泰语
20617
+ # `ar`:阿拉伯语
20618
+ # `hi`:印地语
20619
+ # `fil`:菲律宾语
20620
+
20621
+ # **注意**:多语言方式,则使用 `/` 分割,如:`en/ja`,表示英语和日语。
20357
20622
  # @type TranslateDstLanguage: String
20623
+ # @param ProcessType: 字幕处理类型:
20624
+ # - 0:ASR识别字幕
20625
+ # - 1:纯字幕翻译
20626
+
20627
+ # **注意**:不传的情况下,默认是ASR方式
20628
+ # @type ProcessType: Integer
20358
20629
 
20359
- attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage
20630
+ attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType
20360
20631
 
20361
- def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil)
20632
+ def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil)
20362
20633
  @Definition = definition
20363
20634
  @TranslateSwitch = translateswitch
20364
20635
  @Name = name
@@ -20368,6 +20639,7 @@ module TencentCloud
20368
20639
  @SubtitleType = subtitletype
20369
20640
  @AsrHotWordsConfigure = asrhotwordsconfigure
20370
20641
  @TranslateDstLanguage = translatedstlanguage
20642
+ @ProcessType = processtype
20371
20643
  end
20372
20644
 
20373
20645
  def deserialize(params)
@@ -20383,6 +20655,7 @@ module TencentCloud
20383
20655
  @AsrHotWordsConfigure.deserialize(params['AsrHotWordsConfigure'])
20384
20656
  end
20385
20657
  @TranslateDstLanguage = params['TranslateDstLanguage']
20658
+ @ProcessType = params['ProcessType']
20386
20659
  end
20387
20660
  end
20388
20661
 
@@ -22446,6 +22719,87 @@ module TencentCloud
22446
22719
  end
22447
22720
  end
22448
22721
 
22722
+ # 纯字幕翻译结果
22723
+ class PureSubtitleTransResult < TencentCloud::Common::AbstractModel
22724
+ # @param Status: 任务状态(有以下三种):
22725
+ # - PROCESSING
22726
+ # - SUCCESS
22727
+ # - FAIL
22728
+ # @type Status: String
22729
+ # @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。
22730
+ # @type ErrCodeExt: String
22731
+ # @param ErrCode: 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。
22732
+ # @type ErrCode: Integer
22733
+ # @param Message: 错误信息
22734
+ # @type Message: String
22735
+ # @param Input: 翻译任务输入信息。
22736
+ # @type Input: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitleTaskResultInput`
22737
+ # @param Output: 纯字幕翻译输出结果
22738
+ # 注意:此字段可能返回 null,表示取不到有效值。
22739
+ # @type Output: :class:`Tencentcloud::Mps.v20190612.models.PureSubtitleTransResultOutput`
22740
+ # @param Progress: 任务进度。
22741
+ # @type Progress: Integer
22742
+
22743
+ attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :Progress
22744
+
22745
+ def initialize(status=nil, errcodeext=nil, errcode=nil, message=nil, input=nil, output=nil, progress=nil)
22746
+ @Status = status
22747
+ @ErrCodeExt = errcodeext
22748
+ @ErrCode = errcode
22749
+ @Message = message
22750
+ @Input = input
22751
+ @Output = output
22752
+ @Progress = progress
22753
+ end
22754
+
22755
+ def deserialize(params)
22756
+ @Status = params['Status']
22757
+ @ErrCodeExt = params['ErrCodeExt']
22758
+ @ErrCode = params['ErrCode']
22759
+ @Message = params['Message']
22760
+ unless params['Input'].nil?
22761
+ @Input = SmartSubtitleTaskResultInput.new
22762
+ @Input.deserialize(params['Input'])
22763
+ end
22764
+ unless params['Output'].nil?
22765
+ @Output = PureSubtitleTransResultOutput.new
22766
+ @Output.deserialize(params['Output'])
22767
+ end
22768
+ @Progress = params['Progress']
22769
+ end
22770
+ end
22771
+
22772
+ # 翻译详细输出结果
22773
+ class PureSubtitleTransResultOutput < TencentCloud::Common::AbstractModel
22774
+ # @param OutputStorage: 字幕文件存储位置。
22775
+ # 注意:此字段可能返回 null,表示取不到有效值。
22776
+ # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
22777
+ # @param SubtitleResults: 多语言翻译的结果集合
22778
+ # @type SubtitleResults: Array
22779
+
22780
+ attr_accessor :OutputStorage, :SubtitleResults
22781
+
22782
+ def initialize(outputstorage=nil, subtitleresults=nil)
22783
+ @OutputStorage = outputstorage
22784
+ @SubtitleResults = subtitleresults
22785
+ end
22786
+
22787
+ def deserialize(params)
22788
+ unless params['OutputStorage'].nil?
22789
+ @OutputStorage = TaskOutputStorage.new
22790
+ @OutputStorage.deserialize(params['OutputStorage'])
22791
+ end
22792
+ unless params['SubtitleResults'].nil?
22793
+ @SubtitleResults = []
22794
+ params['SubtitleResults'].each do |i|
22795
+ subtitletransresultitem_tmp = SubtitleTransResultItem.new
22796
+ subtitletransresultitem_tmp.deserialize(i)
22797
+ @SubtitleResults << subtitletransresultitem_tmp
22798
+ end
22799
+ end
22800
+ end
22801
+ end
22802
+
22449
22803
  # 媒体质检结果输出。
22450
22804
  class QualityControlData < TencentCloud::Common::AbstractModel
22451
22805
  # @param NoAudio: 为true时表示视频无音频轨。
@@ -22939,60 +23293,79 @@ module TencentCloud
22939
23293
  # @type SubtitleType: Integer
22940
23294
  # @param VideoSrcLanguage: 智能字幕视频源语言
22941
23295
  # 当前支持以下语言:
22942
- # zh:简体中文
22943
- # en:英语
22944
- # ja:日语
22945
- # ko:韩语
22946
- # zh-PY:中英粤
22947
- # zh-medical:中文医疗
22948
- # yue:中文粤语
22949
- # vi:越南语
22950
- # ms:马来语
22951
- # id:印度尼西亚语
22952
- # fil:菲律宾语
22953
- # th:泰语
22954
- # pt:葡萄牙语
22955
- # tr:土耳其语
22956
- # ar:阿拉伯语
22957
- # es:西班牙语
22958
- # hi:印地语
22959
- # fr:法语
22960
- # de:德语
22961
- # zh_dialect:中文方言
22962
- # zh_en: 中英
22963
- # prime_zh: 中英方言
23296
+ # `zh`:简体中文
23297
+ # `yue`:中文粵语
23298
+ # `zh-PY`:中英粤
23299
+ # `zh_medical`:中文医疗
23300
+ # `zh_dialect`:中文方言
23301
+ # `prime_zh`:中英方言
23302
+ # `zh_en`:中英
23303
+ # `en`:英语
23304
+ # `ja`:日语
23305
+ # `ko`:韩语
23306
+ # `fr`:法语
23307
+ # `es`:西班牙语
23308
+ # `it`:意大利语
23309
+ # `de`:德语
23310
+ # `tr`:土耳其语
23311
+ # `ru`:俄语
23312
+ # `pt`:葡萄牙语(巴西)
23313
+ # `pt-PT`:葡萄牙语(葡萄牙)
23314
+ # `vi`:越南语
23315
+ # `id`:印度尼西亚语
23316
+ # `ms`:马来语
23317
+ # `th`:泰语
23318
+ # `ar`:阿拉伯语
23319
+ # `hi`:印地语
23320
+ # `fil`:菲律宾语
23321
+ # `auto`:自动识别(仅在纯字幕翻译中支持)
22964
23322
  # @type VideoSrcLanguage: String
22965
- # @param SubtitleFormat: 智能字幕文件格式
22966
- # vtt: WebVTT 格式
22967
- # srt: SRT格式
22968
- # 不填或填空:不生成字幕文件
23323
+ # @param SubtitleFormat: 智能字幕文件格式:
23324
+ # - ASR识别翻译处理类型下:
23325
+ # - vtt: WebVTT 格式字幕
23326
+ # - srt: SRT 格式字幕
23327
+ # - 不填或填空:不生成字幕文件
23328
+ # - 纯字幕翻译处理类型下:
23329
+ # - original:与源文件一致
23330
+ # - vtt: WebVTT 格式字幕
23331
+ # - srt: SRT 格式字幕
23332
+
23333
+ # **注意**:
23334
+ # - ASR识别方式下,翻译大于等于2种语言时不允许传空或不传;
23335
+ # - 纯字幕翻译方式下,不允许传空或不传
22969
23336
  # 注意:此字段可能返回 null,表示取不到有效值。
22970
23337
  # @type SubtitleFormat: String
22971
23338
  # @param TranslateSwitch: 字幕翻译开关
22972
- # ON: 开启翻译
22973
- # OFF: 关闭翻译
23339
+ # `ON`: 开启翻译
23340
+ # `OFF`: 关闭翻译
23341
+
23342
+ # **注意**:纯字幕翻译方式下,不传默认是打开的,不允许传空或`OFF`;
22974
23343
  # 注意:此字段可能返回 null,表示取不到有效值。
22975
23344
  # @type TranslateSwitch: String
22976
23345
  # @param TranslateDstLanguage: 字幕翻译目标语言
22977
- # 当TranslateSwitch为ON的时候生效
22978
- # 当前支持以下语言:
22979
- # zh:简体中文
22980
- # en:英语
22981
- # ja:日语
22982
- # ko:韩语
22983
- # fr:法语
22984
- # es:西班牙语
22985
- # it:意大利语
22986
- # de:德语
22987
- # tr:土耳其语
22988
- # ru:俄语
22989
- # pt:葡萄牙语
22990
- # vi:越南语
22991
- # id:印度尼西亚语
22992
- # ms:马来语
22993
- # th:泰语
22994
- # ar:阿拉伯语
22995
- # hi:印地语
23346
+ # 当TranslateSwitch为ON的时候生效,翻译语言列表:
23347
+ # `zh`:简体中文
23348
+ # `zh-TW`:繁体中文
23349
+ # `en`:英语
23350
+ # `ja`:日语
23351
+ # `ko`:韩语
23352
+ # `fr`:法语
23353
+ # `es`:西班牙语
23354
+ # `it`:意大利语
23355
+ # `de`:德语
23356
+ # `tr`:土耳其语
23357
+ # `ru`:俄语
23358
+ # `pt`:葡萄牙语(巴西)
23359
+ # `pt-PT`:葡萄牙语(葡萄牙)
23360
+ # `vi`:越南语
23361
+ # `id`:印度尼西亚语
23362
+ # `ms`:马来语
23363
+ # `th`:泰语
23364
+ # `ar`:阿拉伯语
23365
+ # `hi`:印地语
23366
+ # `fil`:菲律宾语
23367
+
23368
+ # **注意**:多语言方式,则使用 `/` 分割,如:`en/ja`,表示英语和日语。
22996
23369
  # 注意:此字段可能返回 null,表示取不到有效值。
22997
23370
  # @type TranslateDstLanguage: String
22998
23371
  # @param AsrHotWordsConfigure: ASR热词库参数
@@ -23000,10 +23373,16 @@ module TencentCloud
23000
23373
  # @type AsrHotWordsConfigure: :class:`Tencentcloud::Mps.v20190612.models.AsrHotWordsConfigure`
23001
23374
  # @param ExtInfo: 自定义参数
23002
23375
  # @type ExtInfo: String
23376
+ # @param ProcessType: 字幕处理类型:
23377
+ # - 0:ASR识别字幕
23378
+ # - 1:纯字幕翻译
23003
23379
 
23004
- attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo
23380
+ # **注意**:不传的情况下默认类型为 ASR识别字幕
23381
+ # @type ProcessType: Integer
23005
23382
 
23006
- def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil)
23383
+ attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType
23384
+
23385
+ def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil)
23007
23386
  @SubtitleType = subtitletype
23008
23387
  @VideoSrcLanguage = videosrclanguage
23009
23388
  @SubtitleFormat = subtitleformat
@@ -23011,6 +23390,7 @@ module TencentCloud
23011
23390
  @TranslateDstLanguage = translatedstlanguage
23012
23391
  @AsrHotWordsConfigure = asrhotwordsconfigure
23013
23392
  @ExtInfo = extinfo
23393
+ @ProcessType = processtype
23014
23394
  end
23015
23395
 
23016
23396
  def deserialize(params)
@@ -23024,6 +23404,7 @@ module TencentCloud
23024
23404
  @AsrHotWordsConfigure.deserialize(params['AsrHotWordsConfigure'])
23025
23405
  end
23026
23406
  @ExtInfo = params['ExtInfo']
23407
+ @ProcessType = params['ProcessType']
23027
23408
  end
23028
23409
  end
23029
23410
 
@@ -24859,15 +25240,18 @@ module TencentCloud
24859
25240
  # @param SegmentSet: 语音全文识别片段列表。
24860
25241
  # 注意:此字段可能返回 null,表示取不到有效值。
24861
25242
  # @type SegmentSet: Array
25243
+ # @param Path: 字幕文件路径
25244
+ # @type Path: String
24862
25245
  # @param SubtitlePath: 字幕文件地址。
24863
25246
  # @type SubtitlePath: String
24864
25247
  # @param OutputStorage: 字幕文件存储位置。
24865
25248
  # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
24866
25249
 
24867
- attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
25250
+ attr_accessor :SegmentSet, :Path, :SubtitlePath, :OutputStorage
24868
25251
 
24869
- def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
25252
+ def initialize(segmentset=nil, path=nil, subtitlepath=nil, outputstorage=nil)
24870
25253
  @SegmentSet = segmentset
25254
+ @Path = path
24871
25255
  @SubtitlePath = subtitlepath
24872
25256
  @OutputStorage = outputstorage
24873
25257
  end
@@ -24881,6 +25265,7 @@ module TencentCloud
24881
25265
  @SegmentSet << smartsubtitletaskasrfulltextsegmentitem_tmp
24882
25266
  end
24883
25267
  end
25268
+ @Path = params['Path']
24884
25269
  @SubtitlePath = params['SubtitlePath']
24885
25270
  unless params['OutputStorage'].nil?
24886
25271
  @OutputStorage = TaskOutputStorage.new
@@ -25056,13 +25441,19 @@ module TencentCloud
25056
25441
  # @type SubtitlePath: String
25057
25442
  # @param OutputStorage: 字幕文件存储位置。
25058
25443
  # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
25444
+ # @param Path: 字幕文件地址
25445
+ # @type Path: String
25446
+ # @param SubtitleResults: 多语言翻译时返回翻译结果。
25447
+ # @type SubtitleResults: Array
25059
25448
 
25060
- attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
25449
+ attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage, :Path, :SubtitleResults
25061
25450
 
25062
- def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
25451
+ def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil, path=nil, subtitleresults=nil)
25063
25452
  @SegmentSet = segmentset
25064
25453
  @SubtitlePath = subtitlepath
25065
25454
  @OutputStorage = outputstorage
25455
+ @Path = path
25456
+ @SubtitleResults = subtitleresults
25066
25457
  end
25067
25458
 
25068
25459
  def deserialize(params)
@@ -25079,6 +25470,15 @@ module TencentCloud
25079
25470
  @OutputStorage = TaskOutputStorage.new
25080
25471
  @OutputStorage.deserialize(params['OutputStorage'])
25081
25472
  end
25473
+ @Path = params['Path']
25474
+ unless params['SubtitleResults'].nil?
25475
+ @SubtitleResults = []
25476
+ params['SubtitleResults'].each do |i|
25477
+ subtitletransresultitem_tmp = SubtitleTransResultItem.new
25478
+ subtitletransresultitem_tmp.deserialize(i)
25479
+ @SubtitleResults << subtitletransresultitem_tmp
25480
+ end
25481
+ end
25082
25482
  end
25083
25483
  end
25084
25484
 
@@ -25147,32 +25547,40 @@ module TencentCloud
25147
25547
  # @param AsrHotWordsLibraryName: 模板关联热词库名称
25148
25548
  # 注意:此字段可能返回 null,表示取不到有效值。
25149
25549
  # @type AsrHotWordsLibraryName: String
25150
- # @param VideoSrcLanguage: 智能字幕视频源语言
25151
- # 当前支持以下语言:
25152
- # zh:简体中文
25153
- # en:英语
25154
- # ja:日语
25155
- # ko:韩语
25156
- # zh-PY:中英粤
25157
- # zh-medical:中文医疗
25158
- # yue:中文粤语
25159
- # vi:越南语
25160
- # ms:马来语
25161
- # id:印度尼西亚语
25162
- # fil:菲律宾语
25163
- # th:泰语
25164
- # pt:葡萄牙语
25165
- # tr:土耳其语
25166
- # ar:阿拉伯语
25167
- # es:西班牙语
25168
- # hi:印地语
25169
- # fr:法语
25170
- # de:德语
25171
- # zh_dialect:中文方言
25550
+ # @param VideoSrcLanguage: 智能字幕视频源语言列表:
25551
+
25552
+ # `zh`:简体中文
25553
+ # `yue`:中文粵语
25554
+ # `zh-PY`:中英粤
25555
+ # `zh_medical`:中文医疗
25556
+ # `zh_dialect`:中文方言
25557
+ # `prime_zh`:中英方言
25558
+ # `zh_en`:中英
25559
+ # `en`:英语
25560
+ # `ja`:日语
25561
+ # `ko`:韩语
25562
+ # `fr`:法语
25563
+ # `es`:西班牙语
25564
+ # `it`:意大利语
25565
+ # `de`:德语
25566
+ # `tr`:土耳其语
25567
+ # `ru`:俄语
25568
+ # `pt`:葡萄牙语(巴西)
25569
+ # `pt-PT`:葡萄牙语(葡萄牙)
25570
+ # `vi`:越南语
25571
+ # `id`:印度尼西亚语
25572
+ # `ms`:马来语
25573
+ # `th`:泰语
25574
+ # `ar`:阿拉伯语
25575
+ # `hi`:印地语
25576
+ # `fil`:菲律宾语
25577
+ # `auto`:自动识别(仅在纯字幕翻译中支持)
25172
25578
  # @type VideoSrcLanguage: String
25173
25579
  # @param SubtitleFormat: 智能字幕文件格式
25174
- # vtt: WebVTT 格式
25175
- # 不填或填空:不生成字幕文件
25580
+ # - vtt: WebVTT 格式
25581
+ # - srt: SRT格式
25582
+ # - original:与源字幕文件一致(用于纯字幕翻译模版)
25583
+ # - 不填或填空:不生成字幕文件
25176
25584
  # 注意:此字段可能返回 null,表示取不到有效值。
25177
25585
  # @type SubtitleFormat: String
25178
25586
  # @param SubtitleType: 智能字幕字幕语言类型
@@ -25189,24 +25597,30 @@ module TencentCloud
25189
25597
  # @type TranslateSwitch: String
25190
25598
  # @param TranslateDstLanguage: 字幕翻译目标语言
25191
25599
  # 当TranslateSwitch为ON的时候生效
25192
- # 当前支持以下语言:
25193
- # zh:简体中文
25194
- # en:英语
25195
- # ja:日语
25196
- # ko:韩语
25197
- # fr:法语
25198
- # es:西班牙语
25199
- # it:意大利语
25200
- # de:德语
25201
- # tr:土耳其语
25202
- # ru:俄语
25203
- # pt:葡萄牙语
25204
- # vi:越南语
25205
- # id:印度尼西亚语
25206
- # ms:马来语
25207
- # th:泰语
25208
- # ar:阿拉伯语
25209
- # hi:印地语
25600
+ # `zh`:简体中文
25601
+ # `zh-TW`:繁体中文
25602
+ # `en`:英语
25603
+ # `ja`:日语
25604
+ # `ko`:韩语
25605
+ # `fr`:法语
25606
+ # `es`:西班牙语
25607
+ # `it`:意大利语
25608
+ # `de`:德语
25609
+ # `tr`:土耳其语
25610
+ # `ru`:俄语
25611
+ # `pt`:葡萄牙语(巴西)
25612
+ # `pt-PT`:葡萄牙语(葡萄牙)
25613
+ # `vi`:越南语
25614
+ # `id`:印度尼西亚语
25615
+ # `ms`:马来语
25616
+ # `th`:泰语
25617
+ # `ar`:阿拉伯语
25618
+ # `hi`:印地语
25619
+ # `fil`:菲律宾语
25620
+
25621
+
25622
+ # **注意**:多语言方式,则使用 `/` 分割,如:`en/ja`,表示英语和日语。
25623
+
25210
25624
  # 注意:此字段可能返回 null,表示取不到有效值。
25211
25625
  # @type TranslateDstLanguage: String
25212
25626
  # @param CreateTime: 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
@@ -25216,10 +25630,14 @@ module TencentCloud
25216
25630
  # @param AliasName: 智能字幕预设模板别名
25217
25631
  # 注意:此字段可能返回 null,表示取不到有效值。
25218
25632
  # @type AliasName: String
25633
+ # @param ProcessType: 字幕处理类型:
25634
+ # - 0:ASR识别字幕
25635
+ # - 1:纯字幕翻译
25636
+ # @type ProcessType: Integer
25219
25637
 
25220
- attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName
25638
+ attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType
25221
25639
 
25222
- def initialize(definition=nil, name=nil, comment=nil, type=nil, asrhotwordsconfigure=nil, asrhotwordslibraryname=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, translateswitch=nil, translatedstlanguage=nil, createtime=nil, updatetime=nil, aliasname=nil)
25640
+ def initialize(definition=nil, name=nil, comment=nil, type=nil, asrhotwordsconfigure=nil, asrhotwordslibraryname=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, translateswitch=nil, translatedstlanguage=nil, createtime=nil, updatetime=nil, aliasname=nil, processtype=nil)
25223
25641
  @Definition = definition
25224
25642
  @Name = name
25225
25643
  @Comment = comment
@@ -25234,6 +25652,7 @@ module TencentCloud
25234
25652
  @CreateTime = createtime
25235
25653
  @UpdateTime = updatetime
25236
25654
  @AliasName = aliasname
25655
+ @ProcessType = processtype
25237
25656
  end
25238
25657
 
25239
25658
  def deserialize(params)
@@ -25254,14 +25673,16 @@ module TencentCloud
25254
25673
  @CreateTime = params['CreateTime']
25255
25674
  @UpdateTime = params['UpdateTime']
25256
25675
  @AliasName = params['AliasName']
25676
+ @ProcessType = params['ProcessType']
25257
25677
  end
25258
25678
  end
25259
25679
 
25260
25680
  # 智能字幕结果。
25261
25681
  class SmartSubtitlesResult < TencentCloud::Common::AbstractModel
25262
25682
  # @param Type: 任务的类型,取值范围:
25263
- # <li>AsrFullTextRecognition:语音全文识别,</li>
25264
- # <li>TransTextRecognition:语音翻译。</li>
25683
+ # - AsrFullTextRecognition:语音全文识别
25684
+ # - TransTextRecognition:语音翻译
25685
+ # - PureSubtitleTrans: 纯字幕翻译
25265
25686
  # @type Type: String
25266
25687
  # @param AsrFullTextTask: 语音全文识别结果,当 Type 为
25267
25688
  # AsrFullTextRecognition 时有效。
@@ -25272,13 +25693,17 @@ module TencentCloud
25272
25693
  # TransTextRecognition 时有效。
25273
25694
  # 注意:此字段可能返回 null,表示取不到有效值。
25274
25695
  # @type TransTextTask: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitleTaskTransTextResult`
25696
+ # @param PureSubtitleTransTask: 当翻译类型为:PureSubtitleTrans 是返回纯字幕文件翻译结果。
25697
+ # 注意:此字段可能返回 null,表示取不到有效值。
25698
+ # @type PureSubtitleTransTask: :class:`Tencentcloud::Mps.v20190612.models.PureSubtitleTransResult`
25275
25699
 
25276
- attr_accessor :Type, :AsrFullTextTask, :TransTextTask
25700
+ attr_accessor :Type, :AsrFullTextTask, :TransTextTask, :PureSubtitleTransTask
25277
25701
 
25278
- def initialize(type=nil, asrfulltexttask=nil, transtexttask=nil)
25702
+ def initialize(type=nil, asrfulltexttask=nil, transtexttask=nil, puresubtitletranstask=nil)
25279
25703
  @Type = type
25280
25704
  @AsrFullTextTask = asrfulltexttask
25281
25705
  @TransTextTask = transtexttask
25706
+ @PureSubtitleTransTask = puresubtitletranstask
25282
25707
  end
25283
25708
 
25284
25709
  def deserialize(params)
@@ -25291,6 +25716,10 @@ module TencentCloud
25291
25716
  @TransTextTask = SmartSubtitleTaskTransTextResult.new
25292
25717
  @TransTextTask.deserialize(params['TransTextTask'])
25293
25718
  end
25719
+ unless params['PureSubtitleTransTask'].nil?
25720
+ @PureSubtitleTransTask = PureSubtitleTransResult.new
25721
+ @PureSubtitleTransTask.deserialize(params['PureSubtitleTransTask'])
25722
+ end
25294
25723
  end
25295
25724
  end
25296
25725
 
@@ -25488,7 +25917,9 @@ module TencentCloud
25488
25917
  # FairPlay,WideVine,PlayReady 等Drm加密方式。
25489
25918
  class SpekeDrm < TencentCloud::Common::AbstractModel
25490
25919
  # @param ResourceId: 资源标记,该字段内容为用户自定义;
25491
- # 支持1-128个字符的数字、字母、下划线(_)、中划线(-)。
25920
+ # 支持1-128个字符的数字、字母、下划线(`_`)、中划线(-)。
25921
+ # 该字段对应Speke请求中的cid字段。
25922
+ # 注:不同DRM厂商对该字段的限制有所区别(如:华曦达不支持该字段带`_`),具体规则请与DRM厂商进行确认。
25492
25923
  # @type ResourceId: String
25493
25924
  # @param KeyServerUrl: DRM厂商访问地址,该字段内容从DRM厂商获取。
25494
25925
 
@@ -25497,8 +25928,9 @@ module TencentCloud
25497
25928
  # @param Vector: 加密初始化向量(十六进制32字节字符串),该字段内容为用户自定义。
25498
25929
  # @type Vector: String
25499
25930
  # @param EncryptionMethod: 加密方式,FairPlay 默认cbcs,PlayReady,Widevine 默认cenc
25931
+ # 加密方式选择WideVine+FairPlay时,仅支持cbcs
25500
25932
 
25501
- # cbcs:PlayReady,Widevine,FairPlay 支持;
25933
+ # cbcs:PlayReady,Widevine,FairPlay,WideVine+FairPlay 支持;
25502
25934
  # cenc:PlayReady,Widevine支持;
25503
25935
  # @type EncryptionMethod: String
25504
25936
  # @param EncryptionPreset: 子流加密规则,默认 preset0
@@ -25612,6 +26044,36 @@ module TencentCloud
25612
26044
  end
25613
26045
  end
25614
26046
 
26047
+ # 选择指定的音轨或者视频输出
26048
+ class StreamSelector < TencentCloud::Common::AbstractModel
26049
+ # @param SelectorType: 选择类型: PID | TRACK
26050
+ # @type SelectorType: String
26051
+ # @param PidSelector: 根据 PID 配置选择器
26052
+ # @type PidSelector: :class:`Tencentcloud::Mps.v20190612.models.PidSelector`
26053
+ # @param TrackSelector: 根据 Track 配置选择器
26054
+ # @type TrackSelector: :class:`Tencentcloud::Mps.v20190612.models.TrackSelector`
26055
+
26056
+ attr_accessor :SelectorType, :PidSelector, :TrackSelector
26057
+
26058
+ def initialize(selectortype=nil, pidselector=nil, trackselector=nil)
26059
+ @SelectorType = selectortype
26060
+ @PidSelector = pidselector
26061
+ @TrackSelector = trackselector
26062
+ end
26063
+
26064
+ def deserialize(params)
26065
+ @SelectorType = params['SelectorType']
26066
+ unless params['PidSelector'].nil?
26067
+ @PidSelector = PidSelector.new
26068
+ @PidSelector.deserialize(params['PidSelector'])
26069
+ end
26070
+ unless params['TrackSelector'].nil?
26071
+ @TrackSelector = TrackSelector.new
26072
+ @TrackSelector.deserialize(params['TrackSelector'])
26073
+ end
26074
+ end
26075
+ end
26076
+
25615
26077
  # 描述 URL 的完整信息
25616
26078
  class StreamUrlDetail < TencentCloud::Common::AbstractModel
25617
26079
  # @param Label: 会描述运营商信息等
@@ -25821,6 +26283,36 @@ module TencentCloud
25821
26283
  end
25822
26284
  end
25823
26285
 
26286
+ # 字幕翻译输出结果
26287
+ class SubtitleTransResultItem < TencentCloud::Common::AbstractModel
26288
+ # @param Status: 翻译标识:
26289
+ # - Success
26290
+ # - Error
26291
+ # @type Status: String
26292
+ # @param TransSrc: 源语言(如"en")
26293
+ # @type TransSrc: String
26294
+ # @param TransDst: 目标语言(如"zh")
26295
+ # @type TransDst: String
26296
+ # @param Path: 字幕文件地址
26297
+ # @type Path: String
26298
+
26299
+ attr_accessor :Status, :TransSrc, :TransDst, :Path
26300
+
26301
+ def initialize(status=nil, transsrc=nil, transdst=nil, path=nil)
26302
+ @Status = status
26303
+ @TransSrc = transsrc
26304
+ @TransDst = transdst
26305
+ @Path = path
26306
+ end
26307
+
26308
+ def deserialize(params)
26309
+ @Status = params['Status']
26310
+ @TransSrc = params['TransSrc']
26311
+ @TransDst = params['TransDst']
26312
+ @Path = params['Path']
26313
+ end
26314
+ end
26315
+
25824
26316
  # 超分配置
25825
26317
  class SuperResolutionConfig < TencentCloud::Common::AbstractModel
25826
26318
  # @param Switch: 能力配置开关,可选值:
@@ -26478,6 +26970,26 @@ module TencentCloud
26478
26970
  end
26479
26971
  end
26480
26972
 
26973
+ # 音视频轨道选择
26974
+ class TrackSelector < TencentCloud::Common::AbstractModel
26975
+ # @param VideoIndex: 视频轨道序号,从1开始.
26976
+ # @type VideoIndex: Array
26977
+ # @param AudioIndex: 音频轨道序号,从1开始.
26978
+ # @type AudioIndex: Array
26979
+
26980
+ attr_accessor :VideoIndex, :AudioIndex
26981
+
26982
+ def initialize(videoindex=nil, audioindex=nil)
26983
+ @VideoIndex = videoindex
26984
+ @AudioIndex = audioindex
26985
+ end
26986
+
26987
+ def deserialize(params)
26988
+ @VideoIndex = params['VideoIndex']
26989
+ @AudioIndex = params['AudioIndex']
26990
+ end
26991
+ end
26992
+
26481
26993
  # 转码任务输入参数类型
26482
26994
  class TranscodeTaskInput < TencentCloud::Common::AbstractModel
26483
26995
  # @param Definition: 视频转码模板 ID。
@@ -27328,54 +27840,72 @@ module TencentCloud
27328
27840
 
27329
27841
  # 视频增强配置
27330
27842
  class VideoEnhanceConfig < TencentCloud::Common::AbstractModel
27331
- # @param FrameRate: 插帧帧率配置。
27843
+ # @param FrameRate: 插帧帧率配置(旧)。新用户建议使用FrameRateWithDen配置插帧帧率,支持分数,且效果更好。注意,FrameRate 与FrameRateWithDen 只能二选一,同时配置可能导致任务失败。源帧率大于等于目标帧率时能力不会生效。
27844
+
27332
27845
  # 注意:此字段可能返回 null,表示取不到有效值。
27333
27846
  # @type FrameRate: :class:`Tencentcloud::Mps.v20190612.models.FrameRateConfig`
27334
- # @param SuperResolution: 超分配置。
27847
+ # @param SuperResolution: 超分配置。源分辨率高于目标分辨率时不对视频做处理。注意与大模型增强不可同时开启。
27848
+
27335
27849
  # 注意:此字段可能返回 null,表示取不到有效值。
27336
27850
  # @type SuperResolution: :class:`Tencentcloud::Mps.v20190612.models.SuperResolutionConfig`
27337
27851
  # @param Hdr: HDR配置。
27338
27852
  # 注意:此字段可能返回 null,表示取不到有效值。
27339
27853
  # @type Hdr: :class:`Tencentcloud::Mps.v20190612.models.HdrConfig`
27340
- # @param Denoise: 视频降噪配置。
27854
+ # @param Denoise: 视频降噪配置。注意与大模型增强不可同时开启。
27855
+
27341
27856
  # 注意:此字段可能返回 null,表示取不到有效值。
27342
27857
  # @type Denoise: :class:`Tencentcloud::Mps.v20190612.models.VideoDenoiseConfig`
27343
- # @param ImageQualityEnhance: 综合增强配置。
27858
+ # @param ImageQualityEnhance: 综合增强配置。注意大模型、综合增强、去毛刺三项里最多配置一项
27344
27859
  # 注意:此字段可能返回 null,表示取不到有效值。
27345
27860
  # @type ImageQualityEnhance: :class:`Tencentcloud::Mps.v20190612.models.ImageQualityEnhanceConfig`
27346
27861
  # @param ColorEnhance: 色彩增强配置。
27347
27862
  # 注意:此字段可能返回 null,表示取不到有效值。
27348
27863
  # @type ColorEnhance: :class:`Tencentcloud::Mps.v20190612.models.ColorEnhanceConfig`
27349
- # @param SharpEnhance: 细节增强配置。
27350
- # 注意:此字段可能返回 null,表示取不到有效值。
27351
- # @type SharpEnhance: :class:`Tencentcloud::Mps.v20190612.models.SharpEnhanceConfig`
27352
- # @param FaceEnhance: 人脸增强配置。
27353
- # 注意:此字段可能返回 null,表示取不到有效值。
27354
- # @type FaceEnhance: :class:`Tencentcloud::Mps.v20190612.models.FaceEnhanceConfig`
27355
27864
  # @param LowLightEnhance: 低光照增强配置。
27356
27865
  # 注意:此字段可能返回 null,表示取不到有效值。
27357
27866
  # @type LowLightEnhance: :class:`Tencentcloud::Mps.v20190612.models.LowLightEnhanceConfig`
27358
27867
  # @param ScratchRepair: 去划痕配置。
27359
27868
  # 注意:此字段可能返回 null,表示取不到有效值。
27360
27869
  # @type ScratchRepair: :class:`Tencentcloud::Mps.v20190612.models.ScratchRepairConfig`
27361
- # @param ArtifactRepair: 去伪影(毛刺)配置。
27870
+ # @param ArtifactRepair: 去伪影(毛刺)配置。注意大模型、综合增强、去毛刺三项里最多配置一项
27362
27871
  # 注意:此字段可能返回 null,表示取不到有效值。
27363
27872
  # @type ArtifactRepair: :class:`Tencentcloud::Mps.v20190612.models.ArtifactRepairConfig`
27873
+ # @param EnhanceSceneType: 增强场景配置,可选值:
27874
+ # <li>common(通用),通用增强参数,适用于各种视频类型的基础优化参数,提升整体画质。</li>
27875
+ # <li>AIGC,整体分辨率提升,利用AI技术提升视频整体分辨率,增强画面清晰度。</li>
27876
+ # <li>short_play(短剧),增强面部与字幕细节,突出人物面部表情细节和字幕清晰度,提升观剧体验。</li>
27877
+ # <li>short_video(短视频),优化复杂多样的画质问题,针对短视频的复杂场景,优化画质,解决多种视觉问题。</li>
27878
+ # <li>game(游戏视频),修复运动模糊,提升细节,重点提升游戏细节清晰度,恢复运动模糊区域,使游戏画面内容更清晰,更丰富。</li>
27879
+ # <li>HD_movie_series(超高清影视剧),获得超高清流畅效果,针对广电/OTT超高清视频的诉求,生成4K 60fps HDR的超高清标准视频。支持广电场景格式标准要求。</li>
27880
+ # <li>LQ_material(低清素材/老片修复),整体分辨率提升,针对老旧视频由于拍摄年代较久存在的分辨率不足、模糊失真、划痕损伤和色温等问题进行专门优化。</li>
27881
+ # <li>lecture(秀场/电商/大会/讲座),美化提升面部效果,针对秀场/电商/大会/讲座等存在人物进行讲解的场景,进行人脸区域、噪声消除、毛刺处理的专门优化。</li>
27882
+ # <li>填空字符串代表不使用增强场景</li>
27883
+ # 注意:此字段可能返回 null,表示取不到有效值。
27884
+ # @type EnhanceSceneType: String
27885
+ # @param DiffusionEnhance: 大模型增强配置。注意大模型、综合增强、去毛刺三项里最多配置一项。且不可与超分、降噪同时开启。
27886
+
27887
+ # 注意:此字段可能返回 null,表示取不到有效值。
27888
+ # @type DiffusionEnhance: :class:`Tencentcloud::Mps.v20190612.models.DiffusionEnhanceConfig`
27889
+ # @param FrameRateWithDen: 新插帧帧率配置,支持分数。注意与FrameRate二选一。源帧率大于等于目标帧率时能力不会生效。
27890
+
27891
+ # 注意:此字段可能返回 null,表示取不到有效值。
27892
+ # @type FrameRateWithDen: :class:`Tencentcloud::Mps.v20190612.models.FrameRateWithDenConfig`
27364
27893
 
27365
- attr_accessor :FrameRate, :SuperResolution, :Hdr, :Denoise, :ImageQualityEnhance, :ColorEnhance, :SharpEnhance, :FaceEnhance, :LowLightEnhance, :ScratchRepair, :ArtifactRepair
27894
+ attr_accessor :FrameRate, :SuperResolution, :Hdr, :Denoise, :ImageQualityEnhance, :ColorEnhance, :LowLightEnhance, :ScratchRepair, :ArtifactRepair, :EnhanceSceneType, :DiffusionEnhance, :FrameRateWithDen
27366
27895
 
27367
- def initialize(framerate=nil, superresolution=nil, hdr=nil, denoise=nil, imagequalityenhance=nil, colorenhance=nil, sharpenhance=nil, faceenhance=nil, lowlightenhance=nil, scratchrepair=nil, artifactrepair=nil)
27896
+ def initialize(framerate=nil, superresolution=nil, hdr=nil, denoise=nil, imagequalityenhance=nil, colorenhance=nil, lowlightenhance=nil, scratchrepair=nil, artifactrepair=nil, enhancescenetype=nil, diffusionenhance=nil, frameratewithden=nil)
27368
27897
  @FrameRate = framerate
27369
27898
  @SuperResolution = superresolution
27370
27899
  @Hdr = hdr
27371
27900
  @Denoise = denoise
27372
27901
  @ImageQualityEnhance = imagequalityenhance
27373
27902
  @ColorEnhance = colorenhance
27374
- @SharpEnhance = sharpenhance
27375
- @FaceEnhance = faceenhance
27376
27903
  @LowLightEnhance = lowlightenhance
27377
27904
  @ScratchRepair = scratchrepair
27378
27905
  @ArtifactRepair = artifactrepair
27906
+ @EnhanceSceneType = enhancescenetype
27907
+ @DiffusionEnhance = diffusionenhance
27908
+ @FrameRateWithDen = frameratewithden
27379
27909
  end
27380
27910
 
27381
27911
  def deserialize(params)
@@ -27403,14 +27933,6 @@ module TencentCloud
27403
27933
  @ColorEnhance = ColorEnhanceConfig.new
27404
27934
  @ColorEnhance.deserialize(params['ColorEnhance'])
27405
27935
  end
27406
- unless params['SharpEnhance'].nil?
27407
- @SharpEnhance = SharpEnhanceConfig.new
27408
- @SharpEnhance.deserialize(params['SharpEnhance'])
27409
- end
27410
- unless params['FaceEnhance'].nil?
27411
- @FaceEnhance = FaceEnhanceConfig.new
27412
- @FaceEnhance.deserialize(params['FaceEnhance'])
27413
- end
27414
27936
  unless params['LowLightEnhance'].nil?
27415
27937
  @LowLightEnhance = LowLightEnhanceConfig.new
27416
27938
  @LowLightEnhance.deserialize(params['LowLightEnhance'])
@@ -27423,6 +27945,15 @@ module TencentCloud
27423
27945
  @ArtifactRepair = ArtifactRepairConfig.new
27424
27946
  @ArtifactRepair.deserialize(params['ArtifactRepair'])
27425
27947
  end
27948
+ @EnhanceSceneType = params['EnhanceSceneType']
27949
+ unless params['DiffusionEnhance'].nil?
27950
+ @DiffusionEnhance = DiffusionEnhanceConfig.new
27951
+ @DiffusionEnhance.deserialize(params['DiffusionEnhance'])
27952
+ end
27953
+ unless params['FrameRateWithDen'].nil?
27954
+ @FrameRateWithDen = FrameRateWithDenConfig.new
27955
+ @FrameRateWithDen.deserialize(params['FrameRateWithDen'])
27956
+ end
27426
27957
  end
27427
27958
  end
27428
27959