tencentcloud-sdk-vrs 3.0.703 → 3.0.704
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/v20200824/client.rb +24 -0
- data/lib/v20200824/models.rb +100 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f65cc2ba5f2d55358cebe2b76411cc5794dc29fe
|
4
|
+
data.tar.gz: c0cd0fc6c0f7981de5829d40afb0ead5a7e5acd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041ad09847767ce0b617353109da1172823f1abe4749ce8d0341d4f97025f848dd9f955db02c5d83099d3d832d42b1fedd597e779d169ff4c4a757a07dc79f37
|
7
|
+
data.tar.gz: b997bee68d56f8186e926ee5aaef13c8e6ca9f4ab9be931587f0434619f52ddb23a2e776bff372d13e6b2c057201d67b7d07ccdb2aaa45da09b06813189bc211
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.704
|
data/lib/v20200824/client.rb
CHANGED
@@ -183,6 +183,30 @@ module TencentCloud
|
|
183
183
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
184
184
|
end
|
185
185
|
|
186
|
+
# 查询复刻音色
|
187
|
+
|
188
|
+
# @param request: Request instance for GetVRSVoiceTypes.
|
189
|
+
# @type request: :class:`Tencentcloud::vrs::V20200824::GetVRSVoiceTypesRequest`
|
190
|
+
# @rtype: :class:`Tencentcloud::vrs::V20200824::GetVRSVoiceTypesResponse`
|
191
|
+
def GetVRSVoiceTypes(request)
|
192
|
+
body = send_request('GetVRSVoiceTypes', request.serialize)
|
193
|
+
response = JSON.parse(body)
|
194
|
+
if response['Response'].key?('Error') == false
|
195
|
+
model = GetVRSVoiceTypesResponse.new
|
196
|
+
model.deserialize(response['Response'])
|
197
|
+
model
|
198
|
+
else
|
199
|
+
code = response['Response']['Error']['Code']
|
200
|
+
message = response['Response']['Error']['Message']
|
201
|
+
reqid = response['Response']['RequestId']
|
202
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
203
|
+
end
|
204
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
205
|
+
raise e
|
206
|
+
rescue StandardError => e
|
207
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
208
|
+
end
|
209
|
+
|
186
210
|
|
187
211
|
end
|
188
212
|
end
|
data/lib/v20200824/models.rb
CHANGED
@@ -462,6 +462,40 @@ module TencentCloud
|
|
462
462
|
end
|
463
463
|
end
|
464
464
|
|
465
|
+
# GetVRSVoiceTypes请求参数结构体
|
466
|
+
class GetVRSVoiceTypesRequest < TencentCloud::Common::AbstractModel
|
467
|
+
|
468
|
+
|
469
|
+
def initialize()
|
470
|
+
end
|
471
|
+
|
472
|
+
def deserialize(params)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
# GetVRSVoiceTypes返回参数结构体
|
477
|
+
class GetVRSVoiceTypesResponse < TencentCloud::Common::AbstractModel
|
478
|
+
# @param Data: 数据
|
479
|
+
# @type Data: :class:`Tencentcloud::Vrs.v20200824.models.VoiceTypeListData`
|
480
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
481
|
+
# @type RequestId: String
|
482
|
+
|
483
|
+
attr_accessor :Data, :RequestId
|
484
|
+
|
485
|
+
def initialize(data=nil, requestid=nil)
|
486
|
+
@Data = data
|
487
|
+
@RequestId = requestid
|
488
|
+
end
|
489
|
+
|
490
|
+
def deserialize(params)
|
491
|
+
unless params['Data'].nil?
|
492
|
+
@Data = VoiceTypeListData.new
|
493
|
+
@Data.deserialize(params['Data'])
|
494
|
+
end
|
495
|
+
@RequestId = params['RequestId']
|
496
|
+
end
|
497
|
+
end
|
498
|
+
|
465
499
|
# 训练文本
|
466
500
|
class TrainingText < TencentCloud::Common::AbstractModel
|
467
501
|
# @param TextId: 文本ID
|
@@ -508,6 +542,72 @@ module TencentCloud
|
|
508
542
|
end
|
509
543
|
end
|
510
544
|
|
545
|
+
# 复刻音色详情
|
546
|
+
class VoiceTypeInfo < TencentCloud::Common::AbstractModel
|
547
|
+
# @param VoiceType: 音色id
|
548
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
549
|
+
# @type VoiceType: Integer
|
550
|
+
# @param VoiceName: 音色名称
|
551
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
552
|
+
# @type VoiceName: String
|
553
|
+
# @param VoiceGender: 音色性别: 1-male 2-female
|
554
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
555
|
+
# @type VoiceGender: Integer
|
556
|
+
# @param TaskType: 复刻类型: 0-轻量版复刻 1-基础版复刻
|
557
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
558
|
+
# @type TaskType: Integer
|
559
|
+
# @param TaskID: 复刻任务 ID
|
560
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
561
|
+
# @type TaskID: String
|
562
|
+
# @param DateCreated: 创建时间
|
563
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
564
|
+
# @type DateCreated: String
|
565
|
+
|
566
|
+
attr_accessor :VoiceType, :VoiceName, :VoiceGender, :TaskType, :TaskID, :DateCreated
|
567
|
+
|
568
|
+
def initialize(voicetype=nil, voicename=nil, voicegender=nil, tasktype=nil, taskid=nil, datecreated=nil)
|
569
|
+
@VoiceType = voicetype
|
570
|
+
@VoiceName = voicename
|
571
|
+
@VoiceGender = voicegender
|
572
|
+
@TaskType = tasktype
|
573
|
+
@TaskID = taskid
|
574
|
+
@DateCreated = datecreated
|
575
|
+
end
|
576
|
+
|
577
|
+
def deserialize(params)
|
578
|
+
@VoiceType = params['VoiceType']
|
579
|
+
@VoiceName = params['VoiceName']
|
580
|
+
@VoiceGender = params['VoiceGender']
|
581
|
+
@TaskType = params['TaskType']
|
582
|
+
@TaskID = params['TaskID']
|
583
|
+
@DateCreated = params['DateCreated']
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
587
|
+
# 音色信息列表
|
588
|
+
class VoiceTypeListData < TencentCloud::Common::AbstractModel
|
589
|
+
# @param VoiceTypeList: 音色信息列表
|
590
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
591
|
+
# @type VoiceTypeList: Array
|
592
|
+
|
593
|
+
attr_accessor :VoiceTypeList
|
594
|
+
|
595
|
+
def initialize(voicetypelist=nil)
|
596
|
+
@VoiceTypeList = voicetypelist
|
597
|
+
end
|
598
|
+
|
599
|
+
def deserialize(params)
|
600
|
+
unless params['VoiceTypeList'].nil?
|
601
|
+
@VoiceTypeList = []
|
602
|
+
params['VoiceTypeList'].each do |i|
|
603
|
+
voicetypeinfo_tmp = VoiceTypeInfo.new
|
604
|
+
voicetypeinfo_tmp.deserialize(i)
|
605
|
+
@VoiceTypeList << voicetypeinfo_tmp
|
606
|
+
end
|
607
|
+
end
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
511
611
|
# 音频检测提示信息:
|
512
612
|
# 1.检测字是否存在多读、 少读、 错读等
|
513
613
|
# 2.检测准确度和流畅度
|