tencentcloud-sdk-asr 3.0.908 → 3.0.910
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/v20190614/client.rb +24 -0
- data/lib/v20190614/models.rb +106 -0
- 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: 27e3ea907fb1a8d7c85f1d380dcfe9f1cd781c88
|
4
|
+
data.tar.gz: 7fadb045ab68973e938015365a71518d99dd903b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39271c45f24d37d068d70668a3440062d999c948ad62a076720236f4b16a5ac5c94ce7b945f71a4e929a74fda28200cab2fe4b337fe0ef123ace4470f42f4313
|
7
|
+
data.tar.gz: 7bf693c43a3bdecdecc2c190e401c7dbd06af2ad64d2069482192921c6a0878f5f018881726b746dc605a81fc336601467d9645aaa6db42c4ac5850b7f9296f4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.910
|
data/lib/v20190614/client.rb
CHANGED
@@ -494,6 +494,30 @@ module TencentCloud
|
|
494
494
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
495
495
|
end
|
496
496
|
|
497
|
+
# 查询用户用量
|
498
|
+
|
499
|
+
# @param request: Request instance for GetUsageByDate.
|
500
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::GetUsageByDateRequest`
|
501
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::GetUsageByDateResponse`
|
502
|
+
def GetUsageByDate(request)
|
503
|
+
body = send_request('GetUsageByDate', request.serialize)
|
504
|
+
response = JSON.parse(body)
|
505
|
+
if response['Response'].key?('Error') == false
|
506
|
+
model = GetUsageByDateResponse.new
|
507
|
+
model.deserialize(response['Response'])
|
508
|
+
model
|
509
|
+
else
|
510
|
+
code = response['Response']['Error']['Code']
|
511
|
+
message = response['Response']['Error']['Message']
|
512
|
+
reqid = response['Response']['RequestId']
|
513
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
514
|
+
end
|
515
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
516
|
+
raise e
|
517
|
+
rescue StandardError => e
|
518
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
519
|
+
end
|
520
|
+
|
497
521
|
# 用户通过该接口可以更新自学习模型,如模型名称、模型类型、模型语料。
|
498
522
|
|
499
523
|
# @param request: Request instance for ModifyCustomization.
|
data/lib/v20190614/models.rb
CHANGED
@@ -1131,6 +1131,59 @@ module TencentCloud
|
|
1131
1131
|
end
|
1132
1132
|
end
|
1133
1133
|
|
1134
|
+
# GetUsageByDate请求参数结构体
|
1135
|
+
class GetUsageByDateRequest < TencentCloud::Common::AbstractModel
|
1136
|
+
# @param BizNameList: 需要查询的业务类型名字列表
|
1137
|
+
# - asr_rt 实时识别
|
1138
|
+
# - asr_rec 录音文件识别
|
1139
|
+
# @type BizNameList: Array
|
1140
|
+
# @param StartDate: 查询开始时间
|
1141
|
+
# 开始时间包含当天,支持 YYYY-MM-DD 日期以国内时区为准
|
1142
|
+
# 开始时间到结束时间需要在3个月以内
|
1143
|
+
# @type StartDate: String
|
1144
|
+
# @param EndDate: 查询结束时间
|
1145
|
+
# 结束时间包含当天,,支持 YYYY-MM-DD 日期以国内时区为准
|
1146
|
+
# 开始时间到结束时间需要在3个月以内
|
1147
|
+
# @type EndDate: String
|
1148
|
+
|
1149
|
+
attr_accessor :BizNameList, :StartDate, :EndDate
|
1150
|
+
|
1151
|
+
def initialize(biznamelist=nil, startdate=nil, enddate=nil)
|
1152
|
+
@BizNameList = biznamelist
|
1153
|
+
@StartDate = startdate
|
1154
|
+
@EndDate = enddate
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
def deserialize(params)
|
1158
|
+
@BizNameList = params['BizNameList']
|
1159
|
+
@StartDate = params['StartDate']
|
1160
|
+
@EndDate = params['EndDate']
|
1161
|
+
end
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# GetUsageByDate返回参数结构体
|
1165
|
+
class GetUsageByDateResponse < TencentCloud::Common::AbstractModel
|
1166
|
+
# @param Data: 用量次数
|
1167
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.UsageByDateInfoData`
|
1168
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1169
|
+
# @type RequestId: String
|
1170
|
+
|
1171
|
+
attr_accessor :Data, :RequestId
|
1172
|
+
|
1173
|
+
def initialize(data=nil, requestid=nil)
|
1174
|
+
@Data = data
|
1175
|
+
@RequestId = requestid
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
def deserialize(params)
|
1179
|
+
unless params['Data'].nil?
|
1180
|
+
@Data = UsageByDateInfoData.new
|
1181
|
+
@Data.deserialize(params['Data'])
|
1182
|
+
end
|
1183
|
+
@RequestId = params['RequestId']
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|
1134
1187
|
# [热词的词和权重](https://cloud.tencent.com/document/product/1093/41111#2.-.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0)
|
1135
1188
|
class HotWord < TencentCloud::Common::AbstractModel
|
1136
1189
|
# @param Word: 热词
|
@@ -1932,6 +1985,59 @@ module TencentCloud
|
|
1932
1985
|
end
|
1933
1986
|
end
|
1934
1987
|
|
1988
|
+
# 用户用量信息
|
1989
|
+
class UsageByDateInfo < TencentCloud::Common::AbstractModel
|
1990
|
+
# @param BizName: 业务类型名称
|
1991
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1992
|
+
# @type BizName: String
|
1993
|
+
# @param Count: 识别次数
|
1994
|
+
# 单位:次
|
1995
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1996
|
+
# @type Count: Integer
|
1997
|
+
# @param Duration: 识别时长
|
1998
|
+
# 单位:秒
|
1999
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2000
|
+
# @type Duration: Integer
|
2001
|
+
|
2002
|
+
attr_accessor :BizName, :Count, :Duration
|
2003
|
+
|
2004
|
+
def initialize(bizname=nil, count=nil, duration=nil)
|
2005
|
+
@BizName = bizname
|
2006
|
+
@Count = count
|
2007
|
+
@Duration = duration
|
2008
|
+
end
|
2009
|
+
|
2010
|
+
def deserialize(params)
|
2011
|
+
@BizName = params['BizName']
|
2012
|
+
@Count = params['Count']
|
2013
|
+
@Duration = params['Duration']
|
2014
|
+
end
|
2015
|
+
end
|
2016
|
+
|
2017
|
+
# 用户用量信息
|
2018
|
+
class UsageByDateInfoData < TencentCloud::Common::AbstractModel
|
2019
|
+
# @param UsageByDateInfoList: 用量信息列表
|
2020
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2021
|
+
# @type UsageByDateInfoList: Array
|
2022
|
+
|
2023
|
+
attr_accessor :UsageByDateInfoList
|
2024
|
+
|
2025
|
+
def initialize(usagebydateinfolist=nil)
|
2026
|
+
@UsageByDateInfoList = usagebydateinfolist
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
def deserialize(params)
|
2030
|
+
unless params['UsageByDateInfoList'].nil?
|
2031
|
+
@UsageByDateInfoList = []
|
2032
|
+
params['UsageByDateInfoList'].each do |i|
|
2033
|
+
usagebydateinfo_tmp = UsageByDateInfo.new
|
2034
|
+
usagebydateinfo_tmp.deserialize(i)
|
2035
|
+
@UsageByDateInfoList << usagebydateinfo_tmp
|
2036
|
+
end
|
2037
|
+
end
|
2038
|
+
end
|
2039
|
+
end
|
2040
|
+
|
1935
2041
|
# 声纹组对比结果top数据
|
1936
2042
|
class VerifyTop < TencentCloud::Common::AbstractModel
|
1937
2043
|
# @param Score: 相似度打分
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-asr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.910
|
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-09-
|
11
|
+
date: 2024-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|