tencentcloud-sdk-mps 3.0.1160 → 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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190612/models.rb +674 -234
- metadata +3 -3
data/lib/v20190612/models.rb
CHANGED
|
@@ -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:
|
|
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
|
|
@@ -8532,28 +8600,32 @@ module TencentCloud
|
|
|
8532
8600
|
# @type Name: String
|
|
8533
8601
|
# @param VideoSrcLanguage: 智能字幕视频源语言
|
|
8534
8602
|
# 当前支持以下语言:
|
|
8535
|
-
# zh
|
|
8536
|
-
#
|
|
8537
|
-
#
|
|
8538
|
-
#
|
|
8539
|
-
#
|
|
8540
|
-
#
|
|
8541
|
-
#
|
|
8542
|
-
#
|
|
8543
|
-
#
|
|
8544
|
-
#
|
|
8545
|
-
#
|
|
8546
|
-
#
|
|
8547
|
-
#
|
|
8548
|
-
#
|
|
8549
|
-
#
|
|
8550
|
-
#
|
|
8551
|
-
#
|
|
8552
|
-
#
|
|
8553
|
-
#
|
|
8554
|
-
#
|
|
8555
|
-
#
|
|
8556
|
-
#
|
|
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`:自动识别(仅在纯字幕翻译中支持)
|
|
8557
8629
|
# @type VideoSrcLanguage: String
|
|
8558
8630
|
# @param SubtitleType: 智能字幕字幕语言类型
|
|
8559
8631
|
# 0: 源语言
|
|
@@ -8565,42 +8637,64 @@ module TencentCloud
|
|
|
8565
8637
|
# @param Comment: 智能字幕模板描述信息
|
|
8566
8638
|
# 长度限制:256 个字符。
|
|
8567
8639
|
# @type Comment: String
|
|
8568
|
-
# @param SubtitleFormat:
|
|
8569
|
-
#
|
|
8570
|
-
#
|
|
8571
|
-
#
|
|
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
|
+
# - 纯字幕翻译方式下,不允许传空或不传
|
|
8572
8653
|
# @type SubtitleFormat: String
|
|
8573
8654
|
# @param AsrHotWordsConfigure: ASR热词库参数
|
|
8574
8655
|
# @type AsrHotWordsConfigure: :class:`Tencentcloud::Mps.v20190612.models.AsrHotWordsConfigure`
|
|
8575
8656
|
# @param TranslateSwitch: 字幕翻译开关
|
|
8576
|
-
# ON
|
|
8577
|
-
# OFF
|
|
8657
|
+
# `ON`: 开启翻译
|
|
8658
|
+
# `OFF`: 关闭翻译
|
|
8659
|
+
|
|
8660
|
+
# **注意**:纯字幕翻译方式下,不传默认是打开的,不允许传空或`OFF`;
|
|
8578
8661
|
# @type TranslateSwitch: String
|
|
8579
|
-
# @param TranslateDstLanguage:
|
|
8580
|
-
# 当TranslateSwitch为ON的时候生效
|
|
8662
|
+
# @param TranslateDstLanguage: 字幕翻译目标语言,当TranslateSwitch为`ON`的时候生效
|
|
8581
8663
|
# 当前支持以下语言:
|
|
8582
|
-
|
|
8583
|
-
#
|
|
8584
|
-
#
|
|
8585
|
-
#
|
|
8586
|
-
#
|
|
8587
|
-
#
|
|
8588
|
-
#
|
|
8589
|
-
#
|
|
8590
|
-
#
|
|
8591
|
-
#
|
|
8592
|
-
#
|
|
8593
|
-
#
|
|
8594
|
-
#
|
|
8595
|
-
#
|
|
8596
|
-
#
|
|
8597
|
-
#
|
|
8598
|
-
#
|
|
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`,表示英语和日语。
|
|
8599
8687
|
# @type TranslateDstLanguage: String
|
|
8688
|
+
# @param ProcessType: 字幕处理类型:
|
|
8689
|
+
# - 0:ASR识别字幕
|
|
8690
|
+
# - 1:纯字幕翻译
|
|
8600
8691
|
|
|
8601
|
-
|
|
8692
|
+
# **注意**:不传的情况下默认类型为 ASR识别字幕
|
|
8693
|
+
# @type ProcessType: Integer
|
|
8602
8694
|
|
|
8603
|
-
|
|
8695
|
+
attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType
|
|
8696
|
+
|
|
8697
|
+
def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil)
|
|
8604
8698
|
@Name = name
|
|
8605
8699
|
@VideoSrcLanguage = videosrclanguage
|
|
8606
8700
|
@SubtitleType = subtitletype
|
|
@@ -8609,6 +8703,7 @@ module TencentCloud
|
|
|
8609
8703
|
@AsrHotWordsConfigure = asrhotwordsconfigure
|
|
8610
8704
|
@TranslateSwitch = translateswitch
|
|
8611
8705
|
@TranslateDstLanguage = translatedstlanguage
|
|
8706
|
+
@ProcessType = processtype
|
|
8612
8707
|
end
|
|
8613
8708
|
|
|
8614
8709
|
def deserialize(params)
|
|
@@ -8623,6 +8718,7 @@ module TencentCloud
|
|
|
8623
8718
|
end
|
|
8624
8719
|
@TranslateSwitch = params['TranslateSwitch']
|
|
8625
8720
|
@TranslateDstLanguage = params['TranslateDstLanguage']
|
|
8721
|
+
@ProcessType = params['ProcessType']
|
|
8626
8722
|
end
|
|
8627
8723
|
end
|
|
8628
8724
|
|
|
@@ -12391,15 +12487,20 @@ module TencentCloud
|
|
|
12391
12487
|
# @type Type: String
|
|
12392
12488
|
# @param Name: 智能字幕模板标识过滤条件,长度限制:64 个字符。
|
|
12393
12489
|
# @type Name: String
|
|
12490
|
+
# @param ProcessType: 字幕处理类型:
|
|
12491
|
+
# - 0:ASR识别字幕
|
|
12492
|
+
# - 1:纯字幕翻译
|
|
12493
|
+
# @type ProcessType: Integer
|
|
12394
12494
|
|
|
12395
|
-
attr_accessor :Definitions, :Offset, :Limit, :Type, :Name
|
|
12495
|
+
attr_accessor :Definitions, :Offset, :Limit, :Type, :Name, :ProcessType
|
|
12396
12496
|
|
|
12397
|
-
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)
|
|
12398
12498
|
@Definitions = definitions
|
|
12399
12499
|
@Offset = offset
|
|
12400
12500
|
@Limit = limit
|
|
12401
12501
|
@Type = type
|
|
12402
12502
|
@Name = name
|
|
12503
|
+
@ProcessType = processtype
|
|
12403
12504
|
end
|
|
12404
12505
|
|
|
12405
12506
|
def deserialize(params)
|
|
@@ -12408,6 +12509,7 @@ module TencentCloud
|
|
|
12408
12509
|
@Limit = params['Limit']
|
|
12409
12510
|
@Type = params['Type']
|
|
12410
12511
|
@Name = params['Name']
|
|
12512
|
+
@ProcessType = params['ProcessType']
|
|
12411
12513
|
end
|
|
12412
12514
|
end
|
|
12413
12515
|
|
|
@@ -13480,10 +13582,30 @@ module TencentCloud
|
|
|
13480
13582
|
# low_compress:画质优先:优先保证画质,压缩出来的文件体积可能相对较大。该策略仅收取音视频极速高清转码费用。
|
|
13481
13583
|
# no_config:未配置。
|
|
13482
13584
|
# @type CompressType: String
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
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)
|
|
13487
13609
|
@Definitions = definitions
|
|
13488
13610
|
@Type = type
|
|
13489
13611
|
@ContainerType = containertype
|
|
@@ -13494,6 +13616,9 @@ module TencentCloud
|
|
|
13494
13616
|
@Name = name
|
|
13495
13617
|
@SceneType = scenetype
|
|
13496
13618
|
@CompressType = compresstype
|
|
13619
|
+
@EnhanceSceneType = enhancescenetype
|
|
13620
|
+
@EnhanceTranscodeType = enhancetranscodetype
|
|
13621
|
+
@EnhanceType = enhancetype
|
|
13497
13622
|
end
|
|
13498
13623
|
|
|
13499
13624
|
def deserialize(params)
|
|
@@ -13507,6 +13632,9 @@ module TencentCloud
|
|
|
13507
13632
|
@Name = params['Name']
|
|
13508
13633
|
@SceneType = params['SceneType']
|
|
13509
13634
|
@CompressType = params['CompressType']
|
|
13635
|
+
@EnhanceSceneType = params['EnhanceSceneType']
|
|
13636
|
+
@EnhanceTranscodeType = params['EnhanceTranscodeType']
|
|
13637
|
+
@EnhanceType = params['EnhanceType']
|
|
13510
13638
|
end
|
|
13511
13639
|
end
|
|
13512
13640
|
|
|
@@ -13952,6 +14080,36 @@ module TencentCloud
|
|
|
13952
14080
|
end
|
|
13953
14081
|
end
|
|
13954
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
|
+
|
|
13955
14113
|
# DisableSchedule请求参数结构体
|
|
13956
14114
|
class DisableScheduleRequest < TencentCloud::Common::AbstractModel
|
|
13957
14115
|
# @param ScheduleId: 编排唯一表示。
|
|
@@ -14080,6 +14238,10 @@ module TencentCloud
|
|
|
14080
14238
|
# 可以用于HLS和DASH,切片格式只能是mp4
|
|
14081
14239
|
# 输出HLS:可以使用切片模式或singlefile模式
|
|
14082
14240
|
# 输出DASH:只能singlefile模式
|
|
14241
|
+
|
|
14242
|
+
# - widevine+fairplay:
|
|
14243
|
+
# 只能用于HLS,切片格式只能是mp4
|
|
14244
|
+
# 可以使用切片模式或singfile模式
|
|
14083
14245
|
# @type Type: String
|
|
14084
14246
|
# @param SimpleAesDrm: SimpleAes 加密信息。
|
|
14085
14247
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -15561,6 +15723,35 @@ module TencentCloud
|
|
|
15561
15723
|
end
|
|
15562
15724
|
end
|
|
15563
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
|
+
|
|
15564
15755
|
# 智能按帧标签任务控制参数
|
|
15565
15756
|
class FrameTagConfigureInfo < TencentCloud::Common::AbstractModel
|
|
15566
15757
|
# @param Switch: 智能按帧标签任务开关,可选值:
|
|
@@ -15656,7 +15847,7 @@ module TencentCloud
|
|
|
15656
15847
|
# <li>HDR10</li>
|
|
15657
15848
|
# <li>HLG</li>
|
|
15658
15849
|
# 默认值:HDR10。
|
|
15659
|
-
# 注意:video的编码方式需要为h265;
|
|
15850
|
+
# 注意:video的编码方式需要为h264或h265;
|
|
15660
15851
|
# 注意:视频编码位深为10。
|
|
15661
15852
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
15662
15853
|
# @type Type: String
|
|
@@ -15842,6 +16033,8 @@ module TencentCloud
|
|
|
15842
16033
|
# @param SuperResolution: 超分配置。
|
|
15843
16034
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
15844
16035
|
# @type SuperResolution: :class:`Tencentcloud::Mps.v20190612.models.SuperResolutionConfig`
|
|
16036
|
+
# @param AdvancedSuperResolutionConfig: 高级超分配置。
|
|
16037
|
+
# @type AdvancedSuperResolutionConfig: :class:`Tencentcloud::Mps.v20190612.models.AdvancedSuperResolutionConfig`
|
|
15845
16038
|
# @param Denoise: 降噪配置。
|
|
15846
16039
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
15847
16040
|
# @type Denoise: :class:`Tencentcloud::Mps.v20190612.models.ImageDenoiseConfig`
|
|
@@ -15861,10 +16054,11 @@ module TencentCloud
|
|
|
15861
16054
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
15862
16055
|
# @type LowLightEnhance: :class:`Tencentcloud::Mps.v20190612.models.LowLightEnhanceConfig`
|
|
15863
16056
|
|
|
15864
|
-
attr_accessor :SuperResolution, :Denoise, :ImageQualityEnhance, :ColorEnhance, :SharpEnhance, :FaceEnhance, :LowLightEnhance
|
|
16057
|
+
attr_accessor :SuperResolution, :AdvancedSuperResolutionConfig, :Denoise, :ImageQualityEnhance, :ColorEnhance, :SharpEnhance, :FaceEnhance, :LowLightEnhance
|
|
15865
16058
|
|
|
15866
|
-
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)
|
|
15867
16060
|
@SuperResolution = superresolution
|
|
16061
|
+
@AdvancedSuperResolutionConfig = advancedsuperresolutionconfig
|
|
15868
16062
|
@Denoise = denoise
|
|
15869
16063
|
@ImageQualityEnhance = imagequalityenhance
|
|
15870
16064
|
@ColorEnhance = colorenhance
|
|
@@ -15878,6 +16072,10 @@ module TencentCloud
|
|
|
15878
16072
|
@SuperResolution = SuperResolutionConfig.new
|
|
15879
16073
|
@SuperResolution.deserialize(params['SuperResolution'])
|
|
15880
16074
|
end
|
|
16075
|
+
unless params['AdvancedSuperResolutionConfig'].nil?
|
|
16076
|
+
@AdvancedSuperResolutionConfig = AdvancedSuperResolutionConfig.new
|
|
16077
|
+
@AdvancedSuperResolutionConfig.deserialize(params['AdvancedSuperResolutionConfig'])
|
|
16078
|
+
end
|
|
15881
16079
|
unless params['Denoise'].nil?
|
|
15882
16080
|
@Denoise = ImageDenoiseConfig.new
|
|
15883
16081
|
@Denoise.deserialize(params['Denoise'])
|
|
@@ -15999,6 +16197,8 @@ module TencentCloud
|
|
|
15999
16197
|
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
|
16000
16198
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
16001
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
|
|
16002
16202
|
# @param Message: 错误信息。
|
|
16003
16203
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
16004
16204
|
# @type Message: String
|
|
@@ -16009,10 +16209,11 @@ module TencentCloud
|
|
|
16009
16209
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
16010
16210
|
# @type Progress: Integer
|
|
16011
16211
|
|
|
16012
|
-
attr_accessor :Status, :Message, :Output, :Progress
|
|
16212
|
+
attr_accessor :Status, :ErrMsg, :Message, :Output, :Progress
|
|
16013
16213
|
|
|
16014
|
-
def initialize(status=nil, message=nil, output=nil, progress=nil)
|
|
16214
|
+
def initialize(status=nil, errmsg=nil, message=nil, output=nil, progress=nil)
|
|
16015
16215
|
@Status = status
|
|
16216
|
+
@ErrMsg = errmsg
|
|
16016
16217
|
@Message = message
|
|
16017
16218
|
@Output = output
|
|
16018
16219
|
@Progress = progress
|
|
@@ -16020,6 +16221,7 @@ module TencentCloud
|
|
|
16020
16221
|
|
|
16021
16222
|
def deserialize(params)
|
|
16022
16223
|
@Status = params['Status']
|
|
16224
|
+
@ErrMsg = params['ErrMsg']
|
|
16023
16225
|
@Message = params['Message']
|
|
16024
16226
|
unless params['Output'].nil?
|
|
16025
16227
|
@Output = ImageProcessTaskOutput.new
|
|
@@ -20327,8 +20529,10 @@ module TencentCloud
|
|
|
20327
20529
|
# @param Definition: 智能字幕模板唯一标识
|
|
20328
20530
|
# @type Definition: Integer
|
|
20329
20531
|
# @param TranslateSwitch: 字幕翻译开关
|
|
20330
|
-
# ON
|
|
20331
|
-
# OFF
|
|
20532
|
+
# `ON`: 开启翻译
|
|
20533
|
+
# `OFF`: 关闭翻译
|
|
20534
|
+
|
|
20535
|
+
# **注意**:纯字幕翻译方式下,不传默认是打开的,不允许传空或`OFF`;
|
|
20332
20536
|
# @type TranslateSwitch: String
|
|
20333
20537
|
# @param Name: 智能字幕模板名称
|
|
20334
20538
|
# 长度限制:64 个字符。
|
|
@@ -20338,33 +20542,47 @@ module TencentCloud
|
|
|
20338
20542
|
# @type Comment: String
|
|
20339
20543
|
# @param VideoSrcLanguage: 智能字幕视频源语言
|
|
20340
20544
|
# 当前支持以下语言:
|
|
20341
|
-
|
|
20342
|
-
#
|
|
20343
|
-
#
|
|
20344
|
-
#
|
|
20345
|
-
#
|
|
20346
|
-
#
|
|
20347
|
-
#
|
|
20348
|
-
#
|
|
20349
|
-
#
|
|
20350
|
-
#
|
|
20351
|
-
#
|
|
20352
|
-
#
|
|
20353
|
-
#
|
|
20354
|
-
#
|
|
20355
|
-
#
|
|
20356
|
-
#
|
|
20357
|
-
#
|
|
20358
|
-
#
|
|
20359
|
-
#
|
|
20360
|
-
#
|
|
20361
|
-
#
|
|
20362
|
-
#
|
|
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`:自动识别(仅在纯字幕翻译中支持)
|
|
20363
20572
|
# @type VideoSrcLanguage: String
|
|
20364
|
-
# @param SubtitleFormat:
|
|
20365
|
-
#
|
|
20366
|
-
#
|
|
20367
|
-
#
|
|
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
|
+
# - 纯字幕翻译方式下,不允许传空或不传
|
|
20368
20586
|
# @type SubtitleFormat: String
|
|
20369
20587
|
# @param SubtitleType: 智能字幕字幕语言类型
|
|
20370
20588
|
# 0: 源语言
|
|
@@ -20378,28 +20596,40 @@ module TencentCloud
|
|
|
20378
20596
|
# @param TranslateDstLanguage: 字幕翻译目标语言
|
|
20379
20597
|
# 当TranslateSwitch为ON的时候生效
|
|
20380
20598
|
# 当前支持以下语言:
|
|
20381
|
-
|
|
20382
|
-
#
|
|
20383
|
-
#
|
|
20384
|
-
#
|
|
20385
|
-
#
|
|
20386
|
-
#
|
|
20387
|
-
#
|
|
20388
|
-
#
|
|
20389
|
-
#
|
|
20390
|
-
#
|
|
20391
|
-
#
|
|
20392
|
-
#
|
|
20393
|
-
#
|
|
20394
|
-
#
|
|
20395
|
-
#
|
|
20396
|
-
#
|
|
20397
|
-
#
|
|
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`,表示英语和日语。
|
|
20398
20622
|
# @type TranslateDstLanguage: String
|
|
20623
|
+
# @param ProcessType: 字幕处理类型:
|
|
20624
|
+
# - 0:ASR识别字幕
|
|
20625
|
+
# - 1:纯字幕翻译
|
|
20399
20626
|
|
|
20400
|
-
|
|
20627
|
+
# **注意**:不传的情况下,默认是ASR方式
|
|
20628
|
+
# @type ProcessType: Integer
|
|
20401
20629
|
|
|
20402
|
-
|
|
20630
|
+
attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType
|
|
20631
|
+
|
|
20632
|
+
def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil)
|
|
20403
20633
|
@Definition = definition
|
|
20404
20634
|
@TranslateSwitch = translateswitch
|
|
20405
20635
|
@Name = name
|
|
@@ -20409,6 +20639,7 @@ module TencentCloud
|
|
|
20409
20639
|
@SubtitleType = subtitletype
|
|
20410
20640
|
@AsrHotWordsConfigure = asrhotwordsconfigure
|
|
20411
20641
|
@TranslateDstLanguage = translatedstlanguage
|
|
20642
|
+
@ProcessType = processtype
|
|
20412
20643
|
end
|
|
20413
20644
|
|
|
20414
20645
|
def deserialize(params)
|
|
@@ -20424,6 +20655,7 @@ module TencentCloud
|
|
|
20424
20655
|
@AsrHotWordsConfigure.deserialize(params['AsrHotWordsConfigure'])
|
|
20425
20656
|
end
|
|
20426
20657
|
@TranslateDstLanguage = params['TranslateDstLanguage']
|
|
20658
|
+
@ProcessType = params['ProcessType']
|
|
20427
20659
|
end
|
|
20428
20660
|
end
|
|
20429
20661
|
|
|
@@ -22487,6 +22719,87 @@ module TencentCloud
|
|
|
22487
22719
|
end
|
|
22488
22720
|
end
|
|
22489
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
|
+
|
|
22490
22803
|
# 媒体质检结果输出。
|
|
22491
22804
|
class QualityControlData < TencentCloud::Common::AbstractModel
|
|
22492
22805
|
# @param NoAudio: 为true时表示视频无音频轨。
|
|
@@ -22980,60 +23293,79 @@ module TencentCloud
|
|
|
22980
23293
|
# @type SubtitleType: Integer
|
|
22981
23294
|
# @param VideoSrcLanguage: 智能字幕视频源语言
|
|
22982
23295
|
# 当前支持以下语言:
|
|
22983
|
-
# zh
|
|
22984
|
-
#
|
|
22985
|
-
#
|
|
22986
|
-
#
|
|
22987
|
-
#
|
|
22988
|
-
#
|
|
22989
|
-
#
|
|
22990
|
-
#
|
|
22991
|
-
#
|
|
22992
|
-
#
|
|
22993
|
-
#
|
|
22994
|
-
#
|
|
22995
|
-
#
|
|
22996
|
-
#
|
|
22997
|
-
#
|
|
22998
|
-
#
|
|
22999
|
-
#
|
|
23000
|
-
#
|
|
23001
|
-
#
|
|
23002
|
-
#
|
|
23003
|
-
#
|
|
23004
|
-
#
|
|
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`:自动识别(仅在纯字幕翻译中支持)
|
|
23005
23322
|
# @type VideoSrcLanguage: String
|
|
23006
|
-
# @param SubtitleFormat:
|
|
23007
|
-
#
|
|
23008
|
-
#
|
|
23009
|
-
#
|
|
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
|
+
# - 纯字幕翻译方式下,不允许传空或不传
|
|
23010
23336
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
23011
23337
|
# @type SubtitleFormat: String
|
|
23012
23338
|
# @param TranslateSwitch: 字幕翻译开关
|
|
23013
|
-
# ON
|
|
23014
|
-
# OFF
|
|
23339
|
+
# `ON`: 开启翻译
|
|
23340
|
+
# `OFF`: 关闭翻译
|
|
23341
|
+
|
|
23342
|
+
# **注意**:纯字幕翻译方式下,不传默认是打开的,不允许传空或`OFF`;
|
|
23015
23343
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
23016
23344
|
# @type TranslateSwitch: String
|
|
23017
23345
|
# @param TranslateDstLanguage: 字幕翻译目标语言
|
|
23018
|
-
# 当TranslateSwitch为ON
|
|
23019
|
-
#
|
|
23020
|
-
# zh
|
|
23021
|
-
# en
|
|
23022
|
-
# ja
|
|
23023
|
-
# ko
|
|
23024
|
-
# fr
|
|
23025
|
-
# es
|
|
23026
|
-
# it
|
|
23027
|
-
# de
|
|
23028
|
-
# tr
|
|
23029
|
-
# ru
|
|
23030
|
-
# pt
|
|
23031
|
-
#
|
|
23032
|
-
#
|
|
23033
|
-
#
|
|
23034
|
-
#
|
|
23035
|
-
#
|
|
23036
|
-
#
|
|
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`,表示英语和日语。
|
|
23037
23369
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
23038
23370
|
# @type TranslateDstLanguage: String
|
|
23039
23371
|
# @param AsrHotWordsConfigure: ASR热词库参数
|
|
@@ -23041,10 +23373,16 @@ module TencentCloud
|
|
|
23041
23373
|
# @type AsrHotWordsConfigure: :class:`Tencentcloud::Mps.v20190612.models.AsrHotWordsConfigure`
|
|
23042
23374
|
# @param ExtInfo: 自定义参数
|
|
23043
23375
|
# @type ExtInfo: String
|
|
23376
|
+
# @param ProcessType: 字幕处理类型:
|
|
23377
|
+
# - 0:ASR识别字幕
|
|
23378
|
+
# - 1:纯字幕翻译
|
|
23379
|
+
|
|
23380
|
+
# **注意**:不传的情况下默认类型为 ASR识别字幕
|
|
23381
|
+
# @type ProcessType: Integer
|
|
23044
23382
|
|
|
23045
|
-
attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo
|
|
23383
|
+
attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType
|
|
23046
23384
|
|
|
23047
|
-
def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil)
|
|
23385
|
+
def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil)
|
|
23048
23386
|
@SubtitleType = subtitletype
|
|
23049
23387
|
@VideoSrcLanguage = videosrclanguage
|
|
23050
23388
|
@SubtitleFormat = subtitleformat
|
|
@@ -23052,6 +23390,7 @@ module TencentCloud
|
|
|
23052
23390
|
@TranslateDstLanguage = translatedstlanguage
|
|
23053
23391
|
@AsrHotWordsConfigure = asrhotwordsconfigure
|
|
23054
23392
|
@ExtInfo = extinfo
|
|
23393
|
+
@ProcessType = processtype
|
|
23055
23394
|
end
|
|
23056
23395
|
|
|
23057
23396
|
def deserialize(params)
|
|
@@ -23065,6 +23404,7 @@ module TencentCloud
|
|
|
23065
23404
|
@AsrHotWordsConfigure.deserialize(params['AsrHotWordsConfigure'])
|
|
23066
23405
|
end
|
|
23067
23406
|
@ExtInfo = params['ExtInfo']
|
|
23407
|
+
@ProcessType = params['ProcessType']
|
|
23068
23408
|
end
|
|
23069
23409
|
end
|
|
23070
23410
|
|
|
@@ -24900,15 +25240,18 @@ module TencentCloud
|
|
|
24900
25240
|
# @param SegmentSet: 语音全文识别片段列表。
|
|
24901
25241
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
24902
25242
|
# @type SegmentSet: Array
|
|
25243
|
+
# @param Path: 字幕文件路径
|
|
25244
|
+
# @type Path: String
|
|
24903
25245
|
# @param SubtitlePath: 字幕文件地址。
|
|
24904
25246
|
# @type SubtitlePath: String
|
|
24905
25247
|
# @param OutputStorage: 字幕文件存储位置。
|
|
24906
25248
|
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
24907
25249
|
|
|
24908
|
-
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
|
25250
|
+
attr_accessor :SegmentSet, :Path, :SubtitlePath, :OutputStorage
|
|
24909
25251
|
|
|
24910
|
-
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
|
25252
|
+
def initialize(segmentset=nil, path=nil, subtitlepath=nil, outputstorage=nil)
|
|
24911
25253
|
@SegmentSet = segmentset
|
|
25254
|
+
@Path = path
|
|
24912
25255
|
@SubtitlePath = subtitlepath
|
|
24913
25256
|
@OutputStorage = outputstorage
|
|
24914
25257
|
end
|
|
@@ -24922,6 +25265,7 @@ module TencentCloud
|
|
|
24922
25265
|
@SegmentSet << smartsubtitletaskasrfulltextsegmentitem_tmp
|
|
24923
25266
|
end
|
|
24924
25267
|
end
|
|
25268
|
+
@Path = params['Path']
|
|
24925
25269
|
@SubtitlePath = params['SubtitlePath']
|
|
24926
25270
|
unless params['OutputStorage'].nil?
|
|
24927
25271
|
@OutputStorage = TaskOutputStorage.new
|
|
@@ -25097,13 +25441,19 @@ module TencentCloud
|
|
|
25097
25441
|
# @type SubtitlePath: String
|
|
25098
25442
|
# @param OutputStorage: 字幕文件存储位置。
|
|
25099
25443
|
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
25444
|
+
# @param Path: 字幕文件地址
|
|
25445
|
+
# @type Path: String
|
|
25446
|
+
# @param SubtitleResults: 多语言翻译时返回翻译结果。
|
|
25447
|
+
# @type SubtitleResults: Array
|
|
25100
25448
|
|
|
25101
|
-
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
|
25449
|
+
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage, :Path, :SubtitleResults
|
|
25102
25450
|
|
|
25103
|
-
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
|
25451
|
+
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil, path=nil, subtitleresults=nil)
|
|
25104
25452
|
@SegmentSet = segmentset
|
|
25105
25453
|
@SubtitlePath = subtitlepath
|
|
25106
25454
|
@OutputStorage = outputstorage
|
|
25455
|
+
@Path = path
|
|
25456
|
+
@SubtitleResults = subtitleresults
|
|
25107
25457
|
end
|
|
25108
25458
|
|
|
25109
25459
|
def deserialize(params)
|
|
@@ -25120,6 +25470,15 @@ module TencentCloud
|
|
|
25120
25470
|
@OutputStorage = TaskOutputStorage.new
|
|
25121
25471
|
@OutputStorage.deserialize(params['OutputStorage'])
|
|
25122
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
|
|
25123
25482
|
end
|
|
25124
25483
|
end
|
|
25125
25484
|
|
|
@@ -25188,32 +25547,40 @@ module TencentCloud
|
|
|
25188
25547
|
# @param AsrHotWordsLibraryName: 模板关联热词库名称
|
|
25189
25548
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25190
25549
|
# @type AsrHotWordsLibraryName: String
|
|
25191
|
-
# @param VideoSrcLanguage:
|
|
25192
|
-
|
|
25193
|
-
# zh
|
|
25194
|
-
#
|
|
25195
|
-
#
|
|
25196
|
-
#
|
|
25197
|
-
#
|
|
25198
|
-
#
|
|
25199
|
-
#
|
|
25200
|
-
#
|
|
25201
|
-
#
|
|
25202
|
-
#
|
|
25203
|
-
#
|
|
25204
|
-
#
|
|
25205
|
-
#
|
|
25206
|
-
#
|
|
25207
|
-
#
|
|
25208
|
-
#
|
|
25209
|
-
#
|
|
25210
|
-
#
|
|
25211
|
-
#
|
|
25212
|
-
#
|
|
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`:自动识别(仅在纯字幕翻译中支持)
|
|
25213
25578
|
# @type VideoSrcLanguage: String
|
|
25214
25579
|
# @param SubtitleFormat: 智能字幕文件格式
|
|
25215
|
-
#
|
|
25216
|
-
#
|
|
25580
|
+
# - vtt: WebVTT 格式
|
|
25581
|
+
# - srt: SRT格式
|
|
25582
|
+
# - original:与源字幕文件一致(用于纯字幕翻译模版)
|
|
25583
|
+
# - 不填或填空:不生成字幕文件
|
|
25217
25584
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25218
25585
|
# @type SubtitleFormat: String
|
|
25219
25586
|
# @param SubtitleType: 智能字幕字幕语言类型
|
|
@@ -25230,24 +25597,30 @@ module TencentCloud
|
|
|
25230
25597
|
# @type TranslateSwitch: String
|
|
25231
25598
|
# @param TranslateDstLanguage: 字幕翻译目标语言
|
|
25232
25599
|
# 当TranslateSwitch为ON的时候生效
|
|
25233
|
-
#
|
|
25234
|
-
# zh
|
|
25235
|
-
# en
|
|
25236
|
-
# ja
|
|
25237
|
-
# ko
|
|
25238
|
-
# fr
|
|
25239
|
-
# es
|
|
25240
|
-
# it
|
|
25241
|
-
# de
|
|
25242
|
-
# tr
|
|
25243
|
-
# ru
|
|
25244
|
-
# pt
|
|
25245
|
-
#
|
|
25246
|
-
#
|
|
25247
|
-
#
|
|
25248
|
-
#
|
|
25249
|
-
#
|
|
25250
|
-
#
|
|
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
|
+
|
|
25251
25624
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25252
25625
|
# @type TranslateDstLanguage: String
|
|
25253
25626
|
# @param CreateTime: 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
|
@@ -25257,10 +25630,14 @@ module TencentCloud
|
|
|
25257
25630
|
# @param AliasName: 智能字幕预设模板别名
|
|
25258
25631
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25259
25632
|
# @type AliasName: String
|
|
25633
|
+
# @param ProcessType: 字幕处理类型:
|
|
25634
|
+
# - 0:ASR识别字幕
|
|
25635
|
+
# - 1:纯字幕翻译
|
|
25636
|
+
# @type ProcessType: Integer
|
|
25260
25637
|
|
|
25261
|
-
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
|
|
25262
25639
|
|
|
25263
|
-
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)
|
|
25264
25641
|
@Definition = definition
|
|
25265
25642
|
@Name = name
|
|
25266
25643
|
@Comment = comment
|
|
@@ -25275,6 +25652,7 @@ module TencentCloud
|
|
|
25275
25652
|
@CreateTime = createtime
|
|
25276
25653
|
@UpdateTime = updatetime
|
|
25277
25654
|
@AliasName = aliasname
|
|
25655
|
+
@ProcessType = processtype
|
|
25278
25656
|
end
|
|
25279
25657
|
|
|
25280
25658
|
def deserialize(params)
|
|
@@ -25295,14 +25673,16 @@ module TencentCloud
|
|
|
25295
25673
|
@CreateTime = params['CreateTime']
|
|
25296
25674
|
@UpdateTime = params['UpdateTime']
|
|
25297
25675
|
@AliasName = params['AliasName']
|
|
25676
|
+
@ProcessType = params['ProcessType']
|
|
25298
25677
|
end
|
|
25299
25678
|
end
|
|
25300
25679
|
|
|
25301
25680
|
# 智能字幕结果。
|
|
25302
25681
|
class SmartSubtitlesResult < TencentCloud::Common::AbstractModel
|
|
25303
25682
|
# @param Type: 任务的类型,取值范围:
|
|
25304
|
-
#
|
|
25305
|
-
#
|
|
25683
|
+
# - AsrFullTextRecognition:语音全文识别
|
|
25684
|
+
# - TransTextRecognition:语音翻译
|
|
25685
|
+
# - PureSubtitleTrans: 纯字幕翻译
|
|
25306
25686
|
# @type Type: String
|
|
25307
25687
|
# @param AsrFullTextTask: 语音全文识别结果,当 Type 为
|
|
25308
25688
|
# AsrFullTextRecognition 时有效。
|
|
@@ -25313,13 +25693,17 @@ module TencentCloud
|
|
|
25313
25693
|
# TransTextRecognition 时有效。
|
|
25314
25694
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25315
25695
|
# @type TransTextTask: :class:`Tencentcloud::Mps.v20190612.models.SmartSubtitleTaskTransTextResult`
|
|
25696
|
+
# @param PureSubtitleTransTask: 当翻译类型为:PureSubtitleTrans 是返回纯字幕文件翻译结果。
|
|
25697
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25698
|
+
# @type PureSubtitleTransTask: :class:`Tencentcloud::Mps.v20190612.models.PureSubtitleTransResult`
|
|
25316
25699
|
|
|
25317
|
-
attr_accessor :Type, :AsrFullTextTask, :TransTextTask
|
|
25700
|
+
attr_accessor :Type, :AsrFullTextTask, :TransTextTask, :PureSubtitleTransTask
|
|
25318
25701
|
|
|
25319
|
-
def initialize(type=nil, asrfulltexttask=nil, transtexttask=nil)
|
|
25702
|
+
def initialize(type=nil, asrfulltexttask=nil, transtexttask=nil, puresubtitletranstask=nil)
|
|
25320
25703
|
@Type = type
|
|
25321
25704
|
@AsrFullTextTask = asrfulltexttask
|
|
25322
25705
|
@TransTextTask = transtexttask
|
|
25706
|
+
@PureSubtitleTransTask = puresubtitletranstask
|
|
25323
25707
|
end
|
|
25324
25708
|
|
|
25325
25709
|
def deserialize(params)
|
|
@@ -25332,6 +25716,10 @@ module TencentCloud
|
|
|
25332
25716
|
@TransTextTask = SmartSubtitleTaskTransTextResult.new
|
|
25333
25717
|
@TransTextTask.deserialize(params['TransTextTask'])
|
|
25334
25718
|
end
|
|
25719
|
+
unless params['PureSubtitleTransTask'].nil?
|
|
25720
|
+
@PureSubtitleTransTask = PureSubtitleTransResult.new
|
|
25721
|
+
@PureSubtitleTransTask.deserialize(params['PureSubtitleTransTask'])
|
|
25722
|
+
end
|
|
25335
25723
|
end
|
|
25336
25724
|
end
|
|
25337
25725
|
|
|
@@ -25529,7 +25917,9 @@ module TencentCloud
|
|
|
25529
25917
|
# FairPlay,WideVine,PlayReady 等Drm加密方式。
|
|
25530
25918
|
class SpekeDrm < TencentCloud::Common::AbstractModel
|
|
25531
25919
|
# @param ResourceId: 资源标记,该字段内容为用户自定义;
|
|
25532
|
-
# 支持1-128个字符的数字、字母、下划线(_)、中划线(-)。
|
|
25920
|
+
# 支持1-128个字符的数字、字母、下划线(`_`)、中划线(-)。
|
|
25921
|
+
# 该字段对应Speke请求中的cid字段。
|
|
25922
|
+
# 注:不同DRM厂商对该字段的限制有所区别(如:华曦达不支持该字段带`_`),具体规则请与DRM厂商进行确认。
|
|
25533
25923
|
# @type ResourceId: String
|
|
25534
25924
|
# @param KeyServerUrl: DRM厂商访问地址,该字段内容从DRM厂商获取。
|
|
25535
25925
|
|
|
@@ -25538,8 +25928,9 @@ module TencentCloud
|
|
|
25538
25928
|
# @param Vector: 加密初始化向量(十六进制32字节字符串),该字段内容为用户自定义。
|
|
25539
25929
|
# @type Vector: String
|
|
25540
25930
|
# @param EncryptionMethod: 加密方式,FairPlay 默认cbcs,PlayReady,Widevine 默认cenc
|
|
25931
|
+
# 加密方式选择WideVine+FairPlay时,仅支持cbcs
|
|
25541
25932
|
|
|
25542
|
-
# cbcs:PlayReady,Widevine,FairPlay 支持;
|
|
25933
|
+
# cbcs:PlayReady,Widevine,FairPlay,WideVine+FairPlay 支持;
|
|
25543
25934
|
# cenc:PlayReady,Widevine支持;
|
|
25544
25935
|
# @type EncryptionMethod: String
|
|
25545
25936
|
# @param EncryptionPreset: 子流加密规则,默认 preset0
|
|
@@ -25892,6 +26283,36 @@ module TencentCloud
|
|
|
25892
26283
|
end
|
|
25893
26284
|
end
|
|
25894
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
|
+
|
|
25895
26316
|
# 超分配置
|
|
25896
26317
|
class SuperResolutionConfig < TencentCloud::Common::AbstractModel
|
|
25897
26318
|
# @param Switch: 能力配置开关,可选值:
|
|
@@ -27419,54 +27840,72 @@ module TencentCloud
|
|
|
27419
27840
|
|
|
27420
27841
|
# 视频增强配置
|
|
27421
27842
|
class VideoEnhanceConfig < TencentCloud::Common::AbstractModel
|
|
27422
|
-
# @param FrameRate:
|
|
27843
|
+
# @param FrameRate: 插帧帧率配置(旧)。新用户建议使用FrameRateWithDen配置插帧帧率,支持分数,且效果更好。注意,FrameRate 与FrameRateWithDen 只能二选一,同时配置可能导致任务失败。源帧率大于等于目标帧率时能力不会生效。
|
|
27844
|
+
|
|
27423
27845
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27424
27846
|
# @type FrameRate: :class:`Tencentcloud::Mps.v20190612.models.FrameRateConfig`
|
|
27425
|
-
# @param SuperResolution:
|
|
27847
|
+
# @param SuperResolution: 超分配置。源分辨率高于目标分辨率时不对视频做处理。注意与大模型增强不可同时开启。
|
|
27848
|
+
|
|
27426
27849
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27427
27850
|
# @type SuperResolution: :class:`Tencentcloud::Mps.v20190612.models.SuperResolutionConfig`
|
|
27428
27851
|
# @param Hdr: HDR配置。
|
|
27429
27852
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27430
27853
|
# @type Hdr: :class:`Tencentcloud::Mps.v20190612.models.HdrConfig`
|
|
27431
|
-
# @param Denoise:
|
|
27854
|
+
# @param Denoise: 视频降噪配置。注意与大模型增强不可同时开启。
|
|
27855
|
+
|
|
27432
27856
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27433
27857
|
# @type Denoise: :class:`Tencentcloud::Mps.v20190612.models.VideoDenoiseConfig`
|
|
27434
|
-
# @param ImageQualityEnhance:
|
|
27858
|
+
# @param ImageQualityEnhance: 综合增强配置。注意大模型、综合增强、去毛刺三项里最多配置一项
|
|
27435
27859
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27436
27860
|
# @type ImageQualityEnhance: :class:`Tencentcloud::Mps.v20190612.models.ImageQualityEnhanceConfig`
|
|
27437
27861
|
# @param ColorEnhance: 色彩增强配置。
|
|
27438
27862
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27439
27863
|
# @type ColorEnhance: :class:`Tencentcloud::Mps.v20190612.models.ColorEnhanceConfig`
|
|
27440
|
-
# @param SharpEnhance: 细节增强配置。
|
|
27441
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27442
|
-
# @type SharpEnhance: :class:`Tencentcloud::Mps.v20190612.models.SharpEnhanceConfig`
|
|
27443
|
-
# @param FaceEnhance: 人脸增强配置。
|
|
27444
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27445
|
-
# @type FaceEnhance: :class:`Tencentcloud::Mps.v20190612.models.FaceEnhanceConfig`
|
|
27446
27864
|
# @param LowLightEnhance: 低光照增强配置。
|
|
27447
27865
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27448
27866
|
# @type LowLightEnhance: :class:`Tencentcloud::Mps.v20190612.models.LowLightEnhanceConfig`
|
|
27449
27867
|
# @param ScratchRepair: 去划痕配置。
|
|
27450
27868
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27451
27869
|
# @type ScratchRepair: :class:`Tencentcloud::Mps.v20190612.models.ScratchRepairConfig`
|
|
27452
|
-
# @param ArtifactRepair:
|
|
27870
|
+
# @param ArtifactRepair: 去伪影(毛刺)配置。注意大模型、综合增强、去毛刺三项里最多配置一项
|
|
27453
27871
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27454
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: 大模型增强配置。注意大模型、综合增强、去毛刺三项里最多配置一项。且不可与超分、降噪同时开启。
|
|
27455
27886
|
|
|
27456
|
-
|
|
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`
|
|
27457
27893
|
|
|
27458
|
-
|
|
27894
|
+
attr_accessor :FrameRate, :SuperResolution, :Hdr, :Denoise, :ImageQualityEnhance, :ColorEnhance, :LowLightEnhance, :ScratchRepair, :ArtifactRepair, :EnhanceSceneType, :DiffusionEnhance, :FrameRateWithDen
|
|
27895
|
+
|
|
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)
|
|
27459
27897
|
@FrameRate = framerate
|
|
27460
27898
|
@SuperResolution = superresolution
|
|
27461
27899
|
@Hdr = hdr
|
|
27462
27900
|
@Denoise = denoise
|
|
27463
27901
|
@ImageQualityEnhance = imagequalityenhance
|
|
27464
27902
|
@ColorEnhance = colorenhance
|
|
27465
|
-
@SharpEnhance = sharpenhance
|
|
27466
|
-
@FaceEnhance = faceenhance
|
|
27467
27903
|
@LowLightEnhance = lowlightenhance
|
|
27468
27904
|
@ScratchRepair = scratchrepair
|
|
27469
27905
|
@ArtifactRepair = artifactrepair
|
|
27906
|
+
@EnhanceSceneType = enhancescenetype
|
|
27907
|
+
@DiffusionEnhance = diffusionenhance
|
|
27908
|
+
@FrameRateWithDen = frameratewithden
|
|
27470
27909
|
end
|
|
27471
27910
|
|
|
27472
27911
|
def deserialize(params)
|
|
@@ -27494,14 +27933,6 @@ module TencentCloud
|
|
|
27494
27933
|
@ColorEnhance = ColorEnhanceConfig.new
|
|
27495
27934
|
@ColorEnhance.deserialize(params['ColorEnhance'])
|
|
27496
27935
|
end
|
|
27497
|
-
unless params['SharpEnhance'].nil?
|
|
27498
|
-
@SharpEnhance = SharpEnhanceConfig.new
|
|
27499
|
-
@SharpEnhance.deserialize(params['SharpEnhance'])
|
|
27500
|
-
end
|
|
27501
|
-
unless params['FaceEnhance'].nil?
|
|
27502
|
-
@FaceEnhance = FaceEnhanceConfig.new
|
|
27503
|
-
@FaceEnhance.deserialize(params['FaceEnhance'])
|
|
27504
|
-
end
|
|
27505
27936
|
unless params['LowLightEnhance'].nil?
|
|
27506
27937
|
@LowLightEnhance = LowLightEnhanceConfig.new
|
|
27507
27938
|
@LowLightEnhance.deserialize(params['LowLightEnhance'])
|
|
@@ -27514,6 +27945,15 @@ module TencentCloud
|
|
|
27514
27945
|
@ArtifactRepair = ArtifactRepairConfig.new
|
|
27515
27946
|
@ArtifactRepair.deserialize(params['ArtifactRepair'])
|
|
27516
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
|
|
27517
27957
|
end
|
|
27518
27958
|
end
|
|
27519
27959
|
|