tencentcloud-sdk-vrs 3.0.962 → 3.0.964
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200824/client.rb +26 -2
- data/lib/v20200824/models.rb +50 -3
- 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: 3a9a7f1403944c11b774f29d1db42fd6749101e0
|
4
|
+
data.tar.gz: 8a5b571657eb5d4903347c8ec546451584a77e34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beb4109dc19adbf10971acd9b8f4f0cab308701c2abdff7b4ea4f9f097579ec2a3e60ee1a2ad73276df5e9cfb3a3c235207a1c4248b9f6de4a92c6e08fe0a6f9
|
7
|
+
data.tar.gz: 647936b215111d8c00147bff985870a2b970897debcd57b83ba8a4cc35e833643809a8464d8140b81d6967404cdf17c52b5ea1ef5974328089f39ee2ae1c2a2a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.964
|
data/lib/v20200824/client.rb
CHANGED
@@ -79,8 +79,8 @@ module TencentCloud
|
|
79
79
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
80
80
|
end
|
81
81
|
|
82
|
-
#
|
83
|
-
# • 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见
|
82
|
+
# 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。(注意:回调方式目前仅支持轻量版声音复刻)
|
83
|
+
# • 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 [“声音复刻任务创建接口”](https://cloud.tencent.com/document/product/1283/90064) CallbackUrl参数说明 。
|
84
84
|
# • 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。
|
85
85
|
# • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
86
86
|
# • 签名方法参考 公共参数 中签名方法v3。
|
@@ -185,6 +185,30 @@ module TencentCloud
|
|
185
185
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
186
186
|
end
|
187
187
|
|
188
|
+
# 该接口用于查询复刻音色详细信息。
|
189
|
+
|
190
|
+
# @param request: Request instance for GetVRSVoiceTypeInfo.
|
191
|
+
# @type request: :class:`Tencentcloud::vrs::V20200824::GetVRSVoiceTypeInfoRequest`
|
192
|
+
# @rtype: :class:`Tencentcloud::vrs::V20200824::GetVRSVoiceTypeInfoResponse`
|
193
|
+
def GetVRSVoiceTypeInfo(request)
|
194
|
+
body = send_request('GetVRSVoiceTypeInfo', request.serialize)
|
195
|
+
response = JSON.parse(body)
|
196
|
+
if response['Response'].key?('Error') == false
|
197
|
+
model = GetVRSVoiceTypeInfoResponse.new
|
198
|
+
model.deserialize(response['Response'])
|
199
|
+
model
|
200
|
+
else
|
201
|
+
code = response['Response']['Error']['Code']
|
202
|
+
message = response['Response']['Error']['Message']
|
203
|
+
reqid = response['Response']['RequestId']
|
204
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
205
|
+
end
|
206
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
207
|
+
raise e
|
208
|
+
rescue StandardError => e
|
209
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
210
|
+
end
|
211
|
+
|
188
212
|
# 查询复刻音色
|
189
213
|
|
190
214
|
# @param request: Request instance for GetVRSVoiceTypes.
|
data/lib/v20200824/models.rb
CHANGED
@@ -91,7 +91,7 @@ module TencentCloud
|
|
91
91
|
# @type SampleRate: Integer
|
92
92
|
# @param Codec: 音频格式,音频类型(wav,mp3,aac,m4a)
|
93
93
|
# @type Codec: String
|
94
|
-
# @param CallbackUrl: 回调 URL,用户自行搭建的用于接收结果的服务URL
|
94
|
+
# @param CallbackUrl: 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。(注意:回调方式目前仅支持轻量版声音复刻)
|
95
95
|
# 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
|
96
96
|
# @type CallbackUrl: String
|
97
97
|
# @param ModelType: 模型类型 1:在线 2:离线 默认为1
|
@@ -500,6 +500,53 @@ module TencentCloud
|
|
500
500
|
end
|
501
501
|
end
|
502
502
|
|
503
|
+
# GetVRSVoiceTypeInfo请求参数结构体
|
504
|
+
class GetVRSVoiceTypeInfoRequest < TencentCloud::Common::AbstractModel
|
505
|
+
# @param VoiceType: 音色id。
|
506
|
+
# @type VoiceType: Integer
|
507
|
+
# @param TaskType: 0 - 除快速声音复刻外其他复刻类型(默认); 5 - 快速声音复刻。 默认为0。
|
508
|
+
# @type TaskType: Integer
|
509
|
+
# @param FastVoiceType: 快速复刻音色id。
|
510
|
+
# @type FastVoiceType: String
|
511
|
+
|
512
|
+
attr_accessor :VoiceType, :TaskType, :FastVoiceType
|
513
|
+
|
514
|
+
def initialize(voicetype=nil, tasktype=nil, fastvoicetype=nil)
|
515
|
+
@VoiceType = voicetype
|
516
|
+
@TaskType = tasktype
|
517
|
+
@FastVoiceType = fastvoicetype
|
518
|
+
end
|
519
|
+
|
520
|
+
def deserialize(params)
|
521
|
+
@VoiceType = params['VoiceType']
|
522
|
+
@TaskType = params['TaskType']
|
523
|
+
@FastVoiceType = params['FastVoiceType']
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
527
|
+
# GetVRSVoiceTypeInfo返回参数结构体
|
528
|
+
class GetVRSVoiceTypeInfoResponse < TencentCloud::Common::AbstractModel
|
529
|
+
# @param Data: 音色信息
|
530
|
+
# @type Data: :class:`Tencentcloud::Vrs.v20200824.models.VoiceTypeInfo`
|
531
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
532
|
+
# @type RequestId: String
|
533
|
+
|
534
|
+
attr_accessor :Data, :RequestId
|
535
|
+
|
536
|
+
def initialize(data=nil, requestid=nil)
|
537
|
+
@Data = data
|
538
|
+
@RequestId = requestid
|
539
|
+
end
|
540
|
+
|
541
|
+
def deserialize(params)
|
542
|
+
unless params['Data'].nil?
|
543
|
+
@Data = VoiceTypeInfo.new
|
544
|
+
@Data.deserialize(params['Data'])
|
545
|
+
end
|
546
|
+
@RequestId = params['RequestId']
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
503
550
|
# GetVRSVoiceTypes请求参数结构体
|
504
551
|
class GetVRSVoiceTypesRequest < TencentCloud::Common::AbstractModel
|
505
552
|
# @param TaskType: 复刻类型。
|
@@ -667,10 +714,10 @@ module TencentCloud
|
|
667
714
|
# 1.检测字是否存在多读、 少读、 错读等
|
668
715
|
# 2.检测准确度和流畅度
|
669
716
|
class Words < TencentCloud::Common::AbstractModel
|
670
|
-
# @param PronAccuracy: 准确度 (
|
717
|
+
# @param PronAccuracy: 准确度 (小于75则认为不合格)
|
671
718
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
672
719
|
# @type PronAccuracy: Float
|
673
|
-
# @param PronFluency: 流畅度 (
|
720
|
+
# @param PronFluency: 流畅度 (小于0.95则认为不合格)
|
674
721
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
675
722
|
# @type PronFluency: Float
|
676
723
|
# @param Tag: tag:
|
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.964
|
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-12-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|