tencentcloud-sdk-asr 3.0.481 → 3.0.482
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/v20190614/client.rb +4 -7
- data/lib/v20190614/models.rb +7 -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: 9746ce5b69cf18c7a1df3b449efe40edd4ca3ca6
|
|
4
|
+
data.tar.gz: 9cb262de210f8e9f6e841a7bc740b928003b8d4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90e2e3e7ba7932bbbb3bf044a803202c7dcec7c92530be45db995dfb0e030c68cf4b4d513e3ce54bcc66639c6266b8c831e300355447e4c310fef5a4516e8673
|
|
7
|
+
data.tar.gz: 66f7e543a4f441c4c285fd25c64409af5029bde3eb83171753f64694da89eaa43cee3fb93c800b2ce6712166f75733c7287d936264708f73306898b45fcdf9a2
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.482
|
data/lib/v20190614/client.rb
CHANGED
|
@@ -139,14 +139,11 @@ module TencentCloud
|
|
|
139
139
|
|
|
140
140
|
# 本接口服务对时长5小时以内的录音文件进行识别,异步返回识别全部结果。
|
|
141
141
|
# • 支持中文普通话、英语、粤语、日语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。
|
|
142
|
-
# •
|
|
143
|
-
# •
|
|
144
|
-
# •
|
|
145
|
-
# • 语音 URL 的音频时长不能长于5小时,文件大小不超过512MB
|
|
146
|
-
# • 本地语音文件不能大于5MB
|
|
147
|
-
# • 提交录音文件识别请求后,在3小时内完成识别(大多数情况下1小时音频约3分钟以内完成识别,半小时内发送超过1000小时录音或者2万条识别任务的除外),识别结果在服务端可保存7天
|
|
142
|
+
# • 支持wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac格式。
|
|
143
|
+
# • 支持语音 URL 和本地语音文件两种请求方式。语音 URL 的音频时长不能长于5小时,文件大小不超过1GB。本地语音文件调用不能大于5MB。
|
|
144
|
+
# • 提交录音文件识别请求后,在3小时内完成识别(大多数情况下1小时音频约3分钟以内完成识别,半小时内发送超过1000小时录音或者2万条识别任务的除外),识别结果在服务端可保存7天。
|
|
148
145
|
# • 支持回调或轮询的方式获取结果,结果获取请参考[ 录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)。
|
|
149
|
-
# •
|
|
146
|
+
# • 生成字幕场景可设置参数ResTextFormat为3,解析ResultDetail结构生成字幕,可参考 [生成字幕最佳实践](https://cloud.tencent.com/document/product/1093/84291)。
|
|
150
147
|
# • 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。
|
|
151
148
|
# • 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。
|
|
152
149
|
|
data/lib/v20190614/models.rb
CHANGED
|
@@ -335,12 +335,14 @@ module TencentCloud
|
|
|
335
335
|
# @type FilterModal: Integer
|
|
336
336
|
# @param EmotionalEnergy: 情绪能量值,取值为音量分贝值/10。取值范围:[1,10]。值越高情绪越强烈。0:不开启,1:开启
|
|
337
337
|
# @type EmotionalEnergy: Integer
|
|
338
|
-
# @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi
|
|
338
|
+
# @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
|
|
339
339
|
# @type ReinforceHotword: Integer
|
|
340
|
+
# @param SentenceMaxLength: 单标点最多字数,取值范围:[6,40]。默认为0,不开启该功能。该参数可用于字幕生成场景,控制单行字幕最大字数。
|
|
341
|
+
# @type SentenceMaxLength: Integer
|
|
340
342
|
|
|
341
|
-
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :SpeakerDiarization, :SpeakerNumber, :CallbackUrl, :Url, :Data, :DataLen, :ConvertNumMode, :FilterDirty, :HotwordId, :CustomizationId, :Extra, :FilterPunc, :FilterModal, :EmotionalEnergy, :ReinforceHotword
|
|
343
|
+
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :SpeakerDiarization, :SpeakerNumber, :CallbackUrl, :Url, :Data, :DataLen, :ConvertNumMode, :FilterDirty, :HotwordId, :CustomizationId, :Extra, :FilterPunc, :FilterModal, :EmotionalEnergy, :ReinforceHotword, :SentenceMaxLength
|
|
342
344
|
|
|
343
|
-
def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, speakerdiarization=nil, speakernumber=nil, callbackurl=nil, url=nil, data=nil, datalen=nil, convertnummode=nil, filterdirty=nil, hotwordid=nil, customizationid=nil, extra=nil, filterpunc=nil, filtermodal=nil, emotionalenergy=nil, reinforcehotword=nil)
|
|
345
|
+
def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, speakerdiarization=nil, speakernumber=nil, callbackurl=nil, url=nil, data=nil, datalen=nil, convertnummode=nil, filterdirty=nil, hotwordid=nil, customizationid=nil, extra=nil, filterpunc=nil, filtermodal=nil, emotionalenergy=nil, reinforcehotword=nil, sentencemaxlength=nil)
|
|
344
346
|
@EngineModelType = enginemodeltype
|
|
345
347
|
@ChannelNum = channelnum
|
|
346
348
|
@ResTextFormat = restextformat
|
|
@@ -360,6 +362,7 @@ module TencentCloud
|
|
|
360
362
|
@FilterModal = filtermodal
|
|
361
363
|
@EmotionalEnergy = emotionalenergy
|
|
362
364
|
@ReinforceHotword = reinforcehotword
|
|
365
|
+
@SentenceMaxLength = sentencemaxlength
|
|
363
366
|
end
|
|
364
367
|
|
|
365
368
|
def deserialize(params)
|
|
@@ -382,6 +385,7 @@ module TencentCloud
|
|
|
382
385
|
@FilterModal = params['FilterModal']
|
|
383
386
|
@EmotionalEnergy = params['EmotionalEnergy']
|
|
384
387
|
@ReinforceHotword = params['ReinforceHotword']
|
|
388
|
+
@SentenceMaxLength = params['SentenceMaxLength']
|
|
385
389
|
end
|
|
386
390
|
end
|
|
387
391
|
|
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.482
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-12-
|
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|