tencentcloud-sdk-mps 3.0.1210 → 3.0.1213
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/client.rb +24 -0
- data/lib/v20190612/models.rb +126 -14
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cca09db5103d21f5c8b50787afbb6eb5a257c05c
|
|
4
|
+
data.tar.gz: 4ca28b6e0207485ad6a620e059e8d02eb667f44f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7ba1c81d7f0355dd52053634546bf21ad0b40e26bcb3b22b3960d4dabc73bfd04f1f9daf45ec5bb3b22cf9345ffd1712d30ee83a39eeba0b12a7c0ff4f58fec
|
|
7
|
+
data.tar.gz: 4593c5daf43526b7d0fc0f4cd895da734e1f934572f6ac5afb1ef8d31287431d09718c43614c278726cdeb45ad4ad5063c5ad15e74872ac0e9c27fbd13408f3f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1213
|
data/lib/v20190612/client.rb
CHANGED
|
@@ -3704,6 +3704,30 @@ module TencentCloud
|
|
|
3704
3704
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3705
3705
|
end
|
|
3706
3706
|
|
|
3707
|
+
# 同步接口,返回克隆音色Id或合成音频结果
|
|
3708
|
+
|
|
3709
|
+
# @param request: Request instance for SyncDubbing.
|
|
3710
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::SyncDubbingRequest`
|
|
3711
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::SyncDubbingResponse`
|
|
3712
|
+
def SyncDubbing(request)
|
|
3713
|
+
body = send_request('SyncDubbing', request.serialize)
|
|
3714
|
+
response = JSON.parse(body)
|
|
3715
|
+
if response['Response'].key?('Error') == false
|
|
3716
|
+
model = SyncDubbingResponse.new
|
|
3717
|
+
model.deserialize(response['Response'])
|
|
3718
|
+
model
|
|
3719
|
+
else
|
|
3720
|
+
code = response['Response']['Error']['Code']
|
|
3721
|
+
message = response['Response']['Error']['Message']
|
|
3722
|
+
reqid = response['Response']['RequestId']
|
|
3723
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3724
|
+
end
|
|
3725
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3726
|
+
raise e
|
|
3727
|
+
rescue StandardError => e
|
|
3728
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3729
|
+
end
|
|
3730
|
+
|
|
3707
3731
|
# 文本翻译
|
|
3708
3732
|
|
|
3709
3733
|
# @param request: Request instance for TextTranslation.
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -2795,8 +2795,8 @@ module TencentCloud
|
|
|
2795
2795
|
|
|
2796
2796
|
attr_accessor :SegmentSet, :SubtitlePath, :OutputStorage
|
|
2797
2797
|
extend Gem::Deprecate
|
|
2798
|
-
deprecate :OutputStorage, :none, 2026,
|
|
2799
|
-
deprecate :OutputStorage=, :none, 2026,
|
|
2798
|
+
deprecate :OutputStorage, :none, 2026, 2
|
|
2799
|
+
deprecate :OutputStorage=, :none, 2026, 2
|
|
2800
2800
|
|
|
2801
2801
|
def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
|
|
2802
2802
|
@SegmentSet = segmentset
|
|
@@ -8767,8 +8767,8 @@ module TencentCloud
|
|
|
8767
8767
|
|
|
8768
8768
|
attr_accessor :OutputName, :Description, :Protocol, :OutputRegion, :OutputType, :OutputKind, :SRTSettings, :RTMPSettings, :RTPSettings, :AllowIpList, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :PidSelector, :StreamSelector
|
|
8769
8769
|
extend Gem::Deprecate
|
|
8770
|
-
deprecate :PidSelector, :none, 2026,
|
|
8771
|
-
deprecate :PidSelector=, :none, 2026,
|
|
8770
|
+
deprecate :PidSelector, :none, 2026, 2
|
|
8771
|
+
deprecate :PidSelector=, :none, 2026, 2
|
|
8772
8772
|
|
|
8773
8773
|
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)
|
|
8774
8774
|
@OutputName = outputname
|
|
@@ -13102,8 +13102,8 @@ module TencentCloud
|
|
|
13102
13102
|
|
|
13103
13103
|
attr_accessor :OutputId, :OutputName, :OutputType, :OutputKind, :Description, :Protocol, :OutputAddressList, :OutputRegion, :SRTSettings, :RTPSettings, :RTMPSettings, :RTMPPullSettings, :AllowIpList, :RTSPPullSettings, :HLSPullSettings, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :PidSelector, :StreamUrls, :StreamSelector
|
|
13104
13104
|
extend Gem::Deprecate
|
|
13105
|
-
deprecate :PidSelector, :none, 2026,
|
|
13106
|
-
deprecate :PidSelector=, :none, 2026,
|
|
13105
|
+
deprecate :PidSelector, :none, 2026, 2
|
|
13106
|
+
deprecate :PidSelector=, :none, 2026, 2
|
|
13107
13107
|
|
|
13108
13108
|
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)
|
|
13109
13109
|
@OutputId = outputid
|
|
@@ -16329,8 +16329,8 @@ module TencentCloud
|
|
|
16329
16329
|
|
|
16330
16330
|
attr_accessor :TaskType, :EvaluationTypeSet, :EvaluationRangeType, :ContrastInfoSet, :ContrastMediaSet, :ContrastTemplateSet, :StartTime, :EndTime, :StartFrameIndex, :EndFrameIndex, :ResolutionAlignmentMode, :BitrateSet, :VCRFSet
|
|
16331
16331
|
extend Gem::Deprecate
|
|
16332
|
-
deprecate :ContrastInfoSet, :none, 2026,
|
|
16333
|
-
deprecate :ContrastInfoSet=, :none, 2026,
|
|
16332
|
+
deprecate :ContrastInfoSet, :none, 2026, 2
|
|
16333
|
+
deprecate :ContrastInfoSet=, :none, 2026, 2
|
|
16334
16334
|
|
|
16335
16335
|
def initialize(tasktype=nil, evaluationtypeset=nil, evaluationrangetype=nil, contrastinfoset=nil, contrastmediaset=nil, contrasttemplateset=nil, starttime=nil, endtime=nil, startframeindex=nil, endframeindex=nil, resolutionalignmentmode=nil, bitrateset=nil, vcrfset=nil)
|
|
16336
16336
|
@TaskType = tasktype
|
|
@@ -18853,10 +18853,10 @@ module TencentCloud
|
|
|
18853
18853
|
|
|
18854
18854
|
attr_accessor :QualityControlResults, :DiagnoseResults, :QualityControlResultSet, :DiagnoseResultSet
|
|
18855
18855
|
extend Gem::Deprecate
|
|
18856
|
-
deprecate :QualityControlResults, :none, 2026,
|
|
18857
|
-
deprecate :QualityControlResults=, :none, 2026,
|
|
18858
|
-
deprecate :DiagnoseResults, :none, 2026,
|
|
18859
|
-
deprecate :DiagnoseResults=, :none, 2026,
|
|
18856
|
+
deprecate :QualityControlResults, :none, 2026, 2
|
|
18857
|
+
deprecate :QualityControlResults=, :none, 2026, 2
|
|
18858
|
+
deprecate :DiagnoseResults, :none, 2026, 2
|
|
18859
|
+
deprecate :DiagnoseResults=, :none, 2026, 2
|
|
18860
18860
|
|
|
18861
18861
|
def initialize(qualitycontrolresults=nil, diagnoseresults=nil, qualitycontrolresultset=nil, diagnoseresultset=nil)
|
|
18862
18862
|
@QualityControlResults = qualitycontrolresults
|
|
@@ -22027,8 +22027,8 @@ module TencentCloud
|
|
|
22027
22027
|
|
|
22028
22028
|
attr_accessor :OutputId, :OutputName, :Description, :Protocol, :OutputKind, :SRTSettings, :RTPSettings, :RTMPSettings, :AllowIpList, :MaxConcurrent, :SecurityGroupIds, :Zones, :RISTSettings, :OutputType, :PidSelector, :StreamSelector
|
|
22029
22029
|
extend Gem::Deprecate
|
|
22030
|
-
deprecate :PidSelector, :none, 2026,
|
|
22031
|
-
deprecate :PidSelector=, :none, 2026,
|
|
22030
|
+
deprecate :PidSelector, :none, 2026, 2
|
|
22031
|
+
deprecate :PidSelector=, :none, 2026, 2
|
|
22032
22032
|
|
|
22033
22033
|
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)
|
|
22034
22034
|
@OutputId = outputid
|
|
@@ -29564,6 +29564,118 @@ module TencentCloud
|
|
|
29564
29564
|
end
|
|
29565
29565
|
end
|
|
29566
29566
|
|
|
29567
|
+
# SyncDubbing请求参数结构体
|
|
29568
|
+
class SyncDubbingRequest < TencentCloud::Common::AbstractModel
|
|
29569
|
+
# @param Text: 合成文本,语音合成时必填,文本长度不超过2000字符
|
|
29570
|
+
# @type Text: String
|
|
29571
|
+
# @param TextLang: 文本语言,不填默认中文。
|
|
29572
|
+
# 当前支持语言:
|
|
29573
|
+
# zh 中文 (Chinese)
|
|
29574
|
+
# en 英语 (English)
|
|
29575
|
+
# ja 日语 (Japanese)
|
|
29576
|
+
# de 德语 (German)
|
|
29577
|
+
# fr 法语 (French)
|
|
29578
|
+
# ko 韩语 (Korean)
|
|
29579
|
+
# ru 俄语 (Russian)
|
|
29580
|
+
# uk 乌克兰语 (Ukrainian)
|
|
29581
|
+
# pt 葡萄牙语 (Portuguese)
|
|
29582
|
+
# it 意大利语 (Italian)
|
|
29583
|
+
# es 西班牙语 (Spanish)
|
|
29584
|
+
# id 印度尼西亚语 (Indonesian)
|
|
29585
|
+
# nl 荷兰语 (Dutch)
|
|
29586
|
+
# tr 土耳其语 (Turkish)
|
|
29587
|
+
# fil 菲律宾语 (Filipino)
|
|
29588
|
+
# ms 马来语 (Malay)
|
|
29589
|
+
# el 希腊语 (Greek)
|
|
29590
|
+
# fi 芬兰语 (Finnish)
|
|
29591
|
+
# hr 克罗地亚语 (Croatian)
|
|
29592
|
+
# sk 斯洛伐克语 (Slovak)
|
|
29593
|
+
# pl 波兰语 (Polish)
|
|
29594
|
+
# sv 瑞典语 (Swedish)
|
|
29595
|
+
# hi 印地语 (Hindi)
|
|
29596
|
+
# bg 保加利亚语 (Bulgarian)
|
|
29597
|
+
# ro 罗马尼亚语 (Romanian)
|
|
29598
|
+
# ar 阿拉伯语 (Arabic)
|
|
29599
|
+
# cs 捷克语 (Czech)
|
|
29600
|
+
# da 丹麦语 (Danish)
|
|
29601
|
+
# ta 泰米尔语 (Tamil)
|
|
29602
|
+
# hun 匈牙利语(Hungarian)
|
|
29603
|
+
# vi 越南语(Vietnamese)
|
|
29604
|
+
# no 挪威语(Norwegian)
|
|
29605
|
+
# yue 粤语(Cantonese)
|
|
29606
|
+
# th 泰语(Thai)
|
|
29607
|
+
# he 希伯来语(Hebrew)
|
|
29608
|
+
# ca 加泰罗尼亚语(Catalan)
|
|
29609
|
+
# nn 尼诺斯克语(Nynorsk)
|
|
29610
|
+
# af 阿非利卡语(Afrikaans)
|
|
29611
|
+
# fa 波斯语(Persian)
|
|
29612
|
+
# sl 斯洛文尼亚语(Slovenian)
|
|
29613
|
+
# @type TextLang: String
|
|
29614
|
+
# @param VoiceId: 音色Id,指定音色合成时填写,支持系统音色和克隆音色。
|
|
29615
|
+
# @type VoiceId: String
|
|
29616
|
+
# @param AudioData: 克隆音频base64编码。
|
|
29617
|
+
# @type AudioData: String
|
|
29618
|
+
# @param AudioLang: 克隆音频语言,默认中文。
|
|
29619
|
+
# 当前支持语言同TextLang
|
|
29620
|
+
# @type AudioLang: String
|
|
29621
|
+
# @param ExtParam: 扩展参数,json字符串
|
|
29622
|
+
# @type ExtParam: String
|
|
29623
|
+
|
|
29624
|
+
attr_accessor :Text, :TextLang, :VoiceId, :AudioData, :AudioLang, :ExtParam
|
|
29625
|
+
|
|
29626
|
+
def initialize(text=nil, textlang=nil, voiceid=nil, audiodata=nil, audiolang=nil, extparam=nil)
|
|
29627
|
+
@Text = text
|
|
29628
|
+
@TextLang = textlang
|
|
29629
|
+
@VoiceId = voiceid
|
|
29630
|
+
@AudioData = audiodata
|
|
29631
|
+
@AudioLang = audiolang
|
|
29632
|
+
@ExtParam = extparam
|
|
29633
|
+
end
|
|
29634
|
+
|
|
29635
|
+
def deserialize(params)
|
|
29636
|
+
@Text = params['Text']
|
|
29637
|
+
@TextLang = params['TextLang']
|
|
29638
|
+
@VoiceId = params['VoiceId']
|
|
29639
|
+
@AudioData = params['AudioData']
|
|
29640
|
+
@AudioLang = params['AudioLang']
|
|
29641
|
+
@ExtParam = params['ExtParam']
|
|
29642
|
+
end
|
|
29643
|
+
end
|
|
29644
|
+
|
|
29645
|
+
# SyncDubbing返回参数结构体
|
|
29646
|
+
class SyncDubbingResponse < TencentCloud::Common::AbstractModel
|
|
29647
|
+
# @param ErrorCode: 错误码,成功时返回0
|
|
29648
|
+
# @type ErrorCode: Integer
|
|
29649
|
+
# @param Msg: 错误信息,成功时返回success
|
|
29650
|
+
# @type Msg: String
|
|
29651
|
+
# @param AudioData: 合成音频的base64编码,wav格式。
|
|
29652
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
29653
|
+
# @type AudioData: String
|
|
29654
|
+
# @param VoiceId: 克隆的音色Id。
|
|
29655
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
29656
|
+
# @type VoiceId: String
|
|
29657
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
29658
|
+
# @type RequestId: String
|
|
29659
|
+
|
|
29660
|
+
attr_accessor :ErrorCode, :Msg, :AudioData, :VoiceId, :RequestId
|
|
29661
|
+
|
|
29662
|
+
def initialize(errorcode=nil, msg=nil, audiodata=nil, voiceid=nil, requestid=nil)
|
|
29663
|
+
@ErrorCode = errorcode
|
|
29664
|
+
@Msg = msg
|
|
29665
|
+
@AudioData = audiodata
|
|
29666
|
+
@VoiceId = voiceid
|
|
29667
|
+
@RequestId = requestid
|
|
29668
|
+
end
|
|
29669
|
+
|
|
29670
|
+
def deserialize(params)
|
|
29671
|
+
@ErrorCode = params['ErrorCode']
|
|
29672
|
+
@Msg = params['Msg']
|
|
29673
|
+
@AudioData = params['AudioData']
|
|
29674
|
+
@VoiceId = params['VoiceId']
|
|
29675
|
+
@RequestId = params['RequestId']
|
|
29676
|
+
end
|
|
29677
|
+
end
|
|
29678
|
+
|
|
29567
29679
|
# 极速高清参数配置。
|
|
29568
29680
|
class TEHDConfig < TencentCloud::Common::AbstractModel
|
|
29569
29681
|
# @param Type: 极速高清类型,可选值:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-mps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1213
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|