tencentcloud-sdk-vrs 3.0.879 → 3.0.880
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 +1 -0
- data/lib/v20200824/models.rb +75 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae97368b4161bbd0d7d2a4e79d47dd0bc67f1c65
|
4
|
+
data.tar.gz: 3db97b1f3e894f2750b2df6ca1378574acaa4077
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6655ad6e7bd4282198093967263395bbe78067441a9f1ecd6ca7ef80d5df4e06c8d532c1f0d8c4f97cb482b51f0b4173d6977d7dc49c7ad6ef4b8707fb907a95
|
7
|
+
data.tar.gz: 108746db5a285e21d6a703dcc8219aaaffda3463e6de85cff1cfcf80d3822b06df775c46ba389344814af13c1ce7d0d1b6b61db7ccb088e91663ec6a34987fd9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.880
|
data/lib/v20200824/client.rb
CHANGED
data/lib/v20200824/models.rb
CHANGED
@@ -83,7 +83,7 @@ module TencentCloud
|
|
83
83
|
|
84
84
|
# 1-中文
|
85
85
|
# @type VoiceLanguage: Integer
|
86
|
-
# @param AudioIdList: 音频ID
|
86
|
+
# @param AudioIdList: 音频ID集合。(一句话声音复刻仅需填写一个音质检测接口返回的AudioId)
|
87
87
|
# @type AudioIdList: Array
|
88
88
|
# @param SampleRate: 音频采样率:
|
89
89
|
|
@@ -96,9 +96,11 @@ module TencentCloud
|
|
96
96
|
# @type CallbackUrl: String
|
97
97
|
# @param ModelType: 模型类型 1:在线 2:离线 默认为1
|
98
98
|
# @type ModelType: Integer
|
99
|
-
# @param TaskType: 复刻类型。
|
99
|
+
# @param TaskType: 复刻类型。
|
100
|
+
# 0 - 轻量版声音复刻(默认);
|
101
|
+
# 5 - 一句话声音复刻。
|
100
102
|
# @type TaskType: Integer
|
101
|
-
# @param VPRAudioId: 校验音频ID
|
103
|
+
# @param VPRAudioId: 校验音频ID。(仅基础版声音复刻使用)
|
102
104
|
# @type VPRAudioId: String
|
103
105
|
|
104
106
|
attr_accessor :SessionId, :VoiceName, :VoiceGender, :VoiceLanguage, :AudioIdList, :SampleRate, :Codec, :CallbackUrl, :ModelType, :TaskType, :VPRAudioId
|
@@ -199,21 +201,29 @@ module TencentCloud
|
|
199
201
|
# @param StatusStr: 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
|
200
202
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
201
203
|
# @type StatusStr: String
|
202
|
-
# @param VoiceType: 音色id
|
204
|
+
# @param VoiceType: 音色id。(若为一句话复刻时,该值为固定值“200000000”)
|
203
205
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
204
206
|
# @type VoiceType: Integer
|
205
207
|
# @param ErrorMsg: 失败原因说明。
|
206
208
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
207
209
|
# @type ErrorMsg: String
|
210
|
+
# @param ExpireTime: 任务过期时间。(当复刻类型为一句话复刻时展示)
|
211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
212
|
+
# @type ExpireTime: String
|
213
|
+
# @param FastVoiceType: 快速复刻音色ID。(当复刻类型为一句话复刻时展示)
|
214
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
215
|
+
# @type FastVoiceType: String
|
208
216
|
|
209
|
-
attr_accessor :TaskId, :Status, :StatusStr, :VoiceType, :ErrorMsg
|
217
|
+
attr_accessor :TaskId, :Status, :StatusStr, :VoiceType, :ErrorMsg, :ExpireTime, :FastVoiceType
|
210
218
|
|
211
|
-
def initialize(taskid=nil, status=nil, statusstr=nil, voicetype=nil, errormsg=nil)
|
219
|
+
def initialize(taskid=nil, status=nil, statusstr=nil, voicetype=nil, errormsg=nil, expiretime=nil, fastvoicetype=nil)
|
212
220
|
@TaskId = taskid
|
213
221
|
@Status = status
|
214
222
|
@StatusStr = statusstr
|
215
223
|
@VoiceType = voicetype
|
216
224
|
@ErrorMsg = errormsg
|
225
|
+
@ExpireTime = expiretime
|
226
|
+
@FastVoiceType = fastvoicetype
|
217
227
|
end
|
218
228
|
|
219
229
|
def deserialize(params)
|
@@ -222,6 +232,8 @@ module TencentCloud
|
|
222
232
|
@StatusStr = params['StatusStr']
|
223
233
|
@VoiceType = params['VoiceType']
|
224
234
|
@ErrorMsg = params['ErrorMsg']
|
235
|
+
@ExpireTime = params['ExpireTime']
|
236
|
+
@FastVoiceType = params['FastVoiceType']
|
225
237
|
end
|
226
238
|
end
|
227
239
|
|
@@ -258,19 +270,25 @@ module TencentCloud
|
|
258
270
|
# @type TypeId: Integer
|
259
271
|
# @param Codec: 音频格式,音频类型(wav,mp3,aac,m4a)
|
260
272
|
# @type Codec: String
|
261
|
-
# @param SampleRate:
|
262
|
-
|
263
|
-
#
|
273
|
+
# @param SampleRate: 音频采样率。
|
274
|
+
# 16000:16k(默认);
|
275
|
+
# 24000:24k(仅一句话声音复刻支持);
|
276
|
+
# 48000:48k(仅一句话声音复刻支持)。
|
264
277
|
# @type SampleRate: Integer
|
278
|
+
# @param TaskType: 复刻类型。
|
279
|
+
# 0 - 轻量版声音复刻(默认);
|
280
|
+
# 5 - 一句话声音复刻。
|
281
|
+
# @type TaskType: Integer
|
265
282
|
|
266
|
-
attr_accessor :TextId, :AudioData, :TypeId, :Codec, :SampleRate
|
283
|
+
attr_accessor :TextId, :AudioData, :TypeId, :Codec, :SampleRate, :TaskType
|
267
284
|
|
268
|
-
def initialize(textid=nil, audiodata=nil, typeid=nil, codec=nil, samplerate=nil)
|
285
|
+
def initialize(textid=nil, audiodata=nil, typeid=nil, codec=nil, samplerate=nil, tasktype=nil)
|
269
286
|
@TextId = textid
|
270
287
|
@AudioData = audiodata
|
271
288
|
@TypeId = typeid
|
272
289
|
@Codec = codec
|
273
290
|
@SampleRate = samplerate
|
291
|
+
@TaskType = tasktype
|
274
292
|
end
|
275
293
|
|
276
294
|
def deserialize(params)
|
@@ -279,6 +297,7 @@ module TencentCloud
|
|
279
297
|
@TypeId = params['TypeId']
|
280
298
|
@Codec = params['Codec']
|
281
299
|
@SampleRate = params['SampleRate']
|
300
|
+
@TaskType = params['TaskType']
|
282
301
|
end
|
283
302
|
end
|
284
303
|
|
@@ -429,12 +448,32 @@ module TencentCloud
|
|
429
448
|
|
430
449
|
# GetTrainingText请求参数结构体
|
431
450
|
class GetTrainingTextRequest < TencentCloud::Common::AbstractModel
|
432
|
-
|
433
|
-
|
434
|
-
|
451
|
+
# @param TaskType: 复刻类型。
|
452
|
+
# 0 - 轻量版声音复刻(默认);
|
453
|
+
# 5 - 一句话声音复刻。
|
454
|
+
# @type TaskType: Integer
|
455
|
+
# @param Domain: 音色场景。(仅支持一句话声音复刻,其余复刻类型不生效)
|
456
|
+
# 0 - 通用场景(默认);
|
457
|
+
# 1 - 聊天场景;
|
458
|
+
# 2 - 阅读场景;
|
459
|
+
# 3 - 资讯播报场景。
|
460
|
+
# @type Domain: Integer
|
461
|
+
# @param TextLanguage: 文本语种。(仅支持一句话声音复刻,其余复刻类型不生效)
|
462
|
+
# 1 - 中文(默认)。
|
463
|
+
# @type TextLanguage: Integer
|
464
|
+
|
465
|
+
attr_accessor :TaskType, :Domain, :TextLanguage
|
466
|
+
|
467
|
+
def initialize(tasktype=nil, domain=nil, textlanguage=nil)
|
468
|
+
@TaskType = tasktype
|
469
|
+
@Domain = domain
|
470
|
+
@TextLanguage = textlanguage
|
435
471
|
end
|
436
472
|
|
437
473
|
def deserialize(params)
|
474
|
+
@TaskType = params['TaskType']
|
475
|
+
@Domain = params['Domain']
|
476
|
+
@TextLanguage = params['TextLanguage']
|
438
477
|
end
|
439
478
|
end
|
440
479
|
|
@@ -463,12 +502,19 @@ module TencentCloud
|
|
463
502
|
|
464
503
|
# GetVRSVoiceTypes请求参数结构体
|
465
504
|
class GetVRSVoiceTypesRequest < TencentCloud::Common::AbstractModel
|
505
|
+
# @param TaskType: 复刻类型。
|
506
|
+
# 0 - 除快速声音复刻外其他复刻类型(默认);
|
507
|
+
# 5 - 一句话声音复刻。
|
508
|
+
# @type TaskType: Integer
|
466
509
|
|
510
|
+
attr_accessor :TaskType
|
467
511
|
|
468
|
-
def initialize()
|
512
|
+
def initialize(tasktype=nil)
|
513
|
+
@TaskType = tasktype
|
469
514
|
end
|
470
515
|
|
471
516
|
def deserialize(params)
|
517
|
+
@TaskType = params['TaskType']
|
472
518
|
end
|
473
519
|
end
|
474
520
|
|
@@ -543,7 +589,7 @@ module TencentCloud
|
|
543
589
|
|
544
590
|
# 复刻音色详情
|
545
591
|
class VoiceTypeInfo < TencentCloud::Common::AbstractModel
|
546
|
-
# @param VoiceType: 音色id
|
592
|
+
# @param VoiceType: 音色id。(若为一句话复刻时,该值为固定值“200000000”)
|
547
593
|
# @type VoiceType: Integer
|
548
594
|
# @param VoiceName: 音色名称
|
549
595
|
# @type VoiceName: String
|
@@ -557,10 +603,17 @@ module TencentCloud
|
|
557
603
|
# @type DateCreated: String
|
558
604
|
# @param IsDeployed: 部署状态。若已部署,则可通过语音合成接口调用该音色
|
559
605
|
# @type IsDeployed: Boolean
|
606
|
+
# @param ExpireTime: 任务过期时间。(当复刻类型为一句话复刻时展示)
|
607
|
+
|
608
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
609
|
+
# @type ExpireTime: String
|
610
|
+
# @param FastVoiceType: 快速复刻音色ID。(当复刻类型为一句话复刻时展示)
|
611
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
612
|
+
# @type FastVoiceType: String
|
560
613
|
|
561
|
-
attr_accessor :VoiceType, :VoiceName, :VoiceGender, :TaskType, :TaskID, :DateCreated, :IsDeployed
|
614
|
+
attr_accessor :VoiceType, :VoiceName, :VoiceGender, :TaskType, :TaskID, :DateCreated, :IsDeployed, :ExpireTime, :FastVoiceType
|
562
615
|
|
563
|
-
def initialize(voicetype=nil, voicename=nil, voicegender=nil, tasktype=nil, taskid=nil, datecreated=nil, isdeployed=nil)
|
616
|
+
def initialize(voicetype=nil, voicename=nil, voicegender=nil, tasktype=nil, taskid=nil, datecreated=nil, isdeployed=nil, expiretime=nil, fastvoicetype=nil)
|
564
617
|
@VoiceType = voicetype
|
565
618
|
@VoiceName = voicename
|
566
619
|
@VoiceGender = voicegender
|
@@ -568,6 +621,8 @@ module TencentCloud
|
|
568
621
|
@TaskID = taskid
|
569
622
|
@DateCreated = datecreated
|
570
623
|
@IsDeployed = isdeployed
|
624
|
+
@ExpireTime = expiretime
|
625
|
+
@FastVoiceType = fastvoicetype
|
571
626
|
end
|
572
627
|
|
573
628
|
def deserialize(params)
|
@@ -578,6 +633,8 @@ module TencentCloud
|
|
578
633
|
@TaskID = params['TaskID']
|
579
634
|
@DateCreated = params['DateCreated']
|
580
635
|
@IsDeployed = params['IsDeployed']
|
636
|
+
@ExpireTime = params['ExpireTime']
|
637
|
+
@FastVoiceType = params['FastVoiceType']
|
581
638
|
end
|
582
639
|
end
|
583
640
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vrs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.880
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|