tencentcloud-sdk-asr 1.0.219 → 1.0.223

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64d4c8a4ee4ffe32f2663fdb9c3053df67a9c1fd
4
- data.tar.gz: b21c050aa4e9750f48635ce0c4a4319f7c22e4d0
3
+ metadata.gz: 341f80f2b9139b7e758d33f5c13bfaae65dae8c3
4
+ data.tar.gz: 1cf4d44a32f7c5432f0e4b4175a42f6effa2d4df
5
5
  SHA512:
6
- metadata.gz: cb9a8a218f52f5fad14f04a024ab01b9ecc6c7dd85cd8aec2d844597927db5f12c31d6cb0e6292b83be36f9cadf21208efbd02738063c7bf964602b7835fbe0b
7
- data.tar.gz: 17992c221ee5756c0cad53e311cd036c526fe57ad7027d2a1ba5ae5ccbfa48074e43e5d39014ba1a66f2eb3631518dffc1e46b8b794925e088f7750e5e574c7e
6
+ metadata.gz: 8a91e2958f7dfaa626674a5edfdb825e29000445bddede9b961cb693ab878eb6ee4923cf51abc54c585fbe01eb146f2b3df773b1425ee01b049136d8739f3598
7
+ data.tar.gz: 116beb00e9c54f26a66a3e1a9d424817e1cc41d8ea34cffea4bdd6ce1c6f16b936aadef01af3f74de59d8ee91e37027d705f5cea794a5e14254b67aacc2eaeb0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.219
1
+ 1.0.223
@@ -440,7 +440,7 @@ module TencentCloud
440
440
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
441
441
  end
442
442
 
443
- # 本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、mp3;采样率支持8000Hz或者16000Hz;采样精度支持16bits;声道支持单声道。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:25次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。
443
+ # 本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、mp3;采样率支持8000Hz或者16000Hz;采样精度支持16bits;声道支持单声道。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:25次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。
444
444
 
445
445
  # @param request: Request instance for SentenceRecognition.
446
446
  # @type request: :class:`Tencentcloud::asr::V20190614::SentenceRecognitionRequest`
@@ -1233,16 +1233,20 @@ module TencentCloud
1233
1233
  # @param ResultDetail: 识别结果详情,包含每个句子中的词时间偏移,一般用于生成字幕的场景。(录音识别请求中ResTextFormat=1时该字段不为空)
1234
1234
  # 注意:此字段可能返回 null,表示取不到有效值。
1235
1235
  # @type ResultDetail: Array
1236
+ # @param AudioDuration: 音频时长(秒)。
1237
+ # 注意:此字段可能返回 null,表示取不到有效值。
1238
+ # @type AudioDuration: Float
1236
1239
 
1237
- attr_accessor :TaskId, :Status, :StatusStr, :Result, :ErrorMsg, :ResultDetail
1240
+ attr_accessor :TaskId, :Status, :StatusStr, :Result, :ErrorMsg, :ResultDetail, :AudioDuration
1238
1241
 
1239
- def initialize(taskid=nil, status=nil, statusstr=nil, result=nil, errormsg=nil, resultdetail=nil)
1242
+ def initialize(taskid=nil, status=nil, statusstr=nil, result=nil, errormsg=nil, resultdetail=nil, audioduration=nil)
1240
1243
  @TaskId = taskid
1241
1244
  @Status = status
1242
1245
  @StatusStr = statusstr
1243
1246
  @Result = result
1244
1247
  @ErrorMsg = errormsg
1245
1248
  @ResultDetail = resultdetail
1249
+ @AudioDuration = audioduration
1246
1250
  end
1247
1251
 
1248
1252
  def deserialize(params)
@@ -1259,6 +1263,7 @@ module TencentCloud
1259
1263
  @ResultDetail << sentencedetail_tmp
1260
1264
  end
1261
1265
  end
1266
+ @AudioDuration = params['AudioDuration']
1262
1267
  end
1263
1268
  end
1264
1269
 
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: 1.0.219
4
+ version: 1.0.223
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common