tencentcloud-sdk-asr 3.0.397 → 3.0.404
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/models.rb +18 -16
- 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: 52ec4e72f3cacd7471eefd951d3e7916b7095107
|
|
4
|
+
data.tar.gz: d8ed5e8be7b957ec7772aeb84072ae36981fa58f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f63613ff852a3f084c16d55af8a81e59c32e38646d835dfe4ec6699ddd6de59103ff079a968b551209f94af4e7710ec8c99089b6a804f0735635abb1bfc8156
|
|
7
|
+
data.tar.gz: bc88f6763478e4301802273f62d837753263ecaf0f46947f6d2b6302efe3716251dbf044e04f607bb1e8f813df77f206bc8726902a658700f9fc0741f4d257ca
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.404
|
data/lib/v20190614/models.rb
CHANGED
|
@@ -296,7 +296,6 @@ module TencentCloud
|
|
|
296
296
|
# • 16k_en_edu 英文教育;
|
|
297
297
|
# • 16k_zh_medical 医疗;
|
|
298
298
|
# • 16k_th 泰语;
|
|
299
|
-
# • 16k_zh_dialect:多方言,支持23种方言。
|
|
300
299
|
# @type EngineModelType: String
|
|
301
300
|
# @param ChannelNum: 识别声道数。1:单声道(非电话场景,直接选择单声道即可,忽略音频声道数);2:双声道(仅支持8k_zh电话场景,双声道应分别对应通话双方)。注意:双声道的电话音频已物理分离说话人,无需再开启说话人分离功能。
|
|
302
301
|
# @type ChannelNum: Integer
|
|
@@ -322,9 +321,9 @@ module TencentCloud
|
|
|
322
321
|
# @type ConvertNumMode: Integer
|
|
323
322
|
# @param FilterDirty: 是否过滤脏词(目前支持中文普通话引擎)。0:不过滤脏词;1:过滤脏词;2:将脏词替换为 * 。默认值为 0。
|
|
324
323
|
# @type FilterDirty: Integer
|
|
325
|
-
# @param HotwordId: 热词表id
|
|
324
|
+
# @param HotwordId: 热词表id。如不设置该参数,自动生效默认热词表;如设置了该参数,那么将生效对应的热词表。
|
|
326
325
|
# @type HotwordId: String
|
|
327
|
-
# @param CustomizationId: 自学习模型 id
|
|
326
|
+
# @param CustomizationId: 自学习模型 id。如设置了该参数,将生效对应的自学习模型。
|
|
328
327
|
# @type CustomizationId: String
|
|
329
328
|
# @param Extra: 附加参数(该参数无意义,忽略即可)
|
|
330
329
|
# @type Extra: String
|
|
@@ -1002,7 +1001,7 @@ module TencentCloud
|
|
|
1002
1001
|
|
|
1003
1002
|
# SentenceRecognition请求参数结构体
|
|
1004
1003
|
class SentenceRecognitionRequest < TencentCloud::Common::AbstractModel
|
|
1005
|
-
# @param ProjectId: 腾讯云项目 ID
|
|
1004
|
+
# @param ProjectId: 腾讯云项目 ID,废弃参数,默认填写0即可。
|
|
1006
1005
|
# @type ProjectId: Integer
|
|
1007
1006
|
# @param SubServiceType: 子服务类型。2: 一句话识别。
|
|
1008
1007
|
# @type SubServiceType: Integer
|
|
@@ -1016,13 +1015,12 @@ module TencentCloud
|
|
|
1016
1015
|
# • 16k_ca:16k 粤语;
|
|
1017
1016
|
# • 16k_ja:16k 日语;
|
|
1018
1017
|
# • 16k_zh_medical:16k 医疗;
|
|
1019
|
-
# • 16k_zh_dialect:多方言,支持23种方言。
|
|
1020
1018
|
# @type EngSerViceType: String
|
|
1021
1019
|
# @param SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
|
|
1022
1020
|
# @type SourceType: Integer
|
|
1023
1021
|
# @param VoiceFormat: 识别音频的音频格式,支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。
|
|
1024
1022
|
# @type VoiceFormat: String
|
|
1025
|
-
# @param UsrAudioKey:
|
|
1023
|
+
# @param UsrAudioKey: 用户端对此任务的唯一标识。废弃参数,忽略即可。
|
|
1026
1024
|
# @type UsrAudioKey: String
|
|
1027
1025
|
# @param Url: 语音 URL,公网可下载。当 SourceType 值为 0(语音 URL上传) 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时长不能超过60s,音频文件大小不能超过3MB。
|
|
1028
1026
|
# @type Url: String
|
|
@@ -1030,8 +1028,8 @@ module TencentCloud
|
|
|
1030
1028
|
# @type Data: String
|
|
1031
1029
|
# @param DataLen: 数据长度,单位为字节。当 SourceType 值为1(本地语音数据上传)时必须填写,当 SourceType 值为0(语音 URL上传)可不写(此数据长度为数据未进行base64编码时的数据长度)。
|
|
1032
1030
|
# @type DataLen: Integer
|
|
1033
|
-
# @param
|
|
1034
|
-
# @type
|
|
1031
|
+
# @param WordInfo: 是否显示词级别时间戳。0:不显示;1:显示,不包含标点时间戳,2:显示,包含标点时间戳。默认值为 0。
|
|
1032
|
+
# @type WordInfo: Integer
|
|
1035
1033
|
# @param FilterDirty: 是否过滤脏词(目前支持中文普通话引擎)。0:不过滤脏词;1:过滤脏词;2:将脏词替换为 * 。默认值为 0。
|
|
1036
1034
|
# @type FilterDirty: Integer
|
|
1037
1035
|
# @param FilterModal: 是否过语气词(目前支持中文普通话引擎)。0:不过滤语气词;1:部分过滤;2:严格过滤 。默认值为 0。
|
|
@@ -1040,12 +1038,14 @@ module TencentCloud
|
|
|
1040
1038
|
# @type FilterPunc: Integer
|
|
1041
1039
|
# @param ConvertNumMode: 是否进行阿拉伯数字智能转换。0:不转换,直接输出中文数字,1:根据场景智能转换为阿拉伯数字。默认值为1。
|
|
1042
1040
|
# @type ConvertNumMode: Integer
|
|
1043
|
-
# @param
|
|
1044
|
-
# @type
|
|
1041
|
+
# @param HotwordId: 热词id。用于调用对应的热词表,如果在调用语音识别服务时,不进行单独的热词id设置,自动生效默认热词;如果进行了单独的热词id设置,那么将生效单独设置的热词id。
|
|
1042
|
+
# @type HotwordId: String
|
|
1043
|
+
# @param CustomizationId: 自学习模型 id。如设置了该参数,将生效对应的自学习模型。
|
|
1044
|
+
# @type CustomizationId: String
|
|
1045
1045
|
|
|
1046
|
-
attr_accessor :ProjectId, :SubServiceType, :EngSerViceType, :SourceType, :VoiceFormat, :UsrAudioKey, :Url, :Data, :DataLen, :
|
|
1046
|
+
attr_accessor :ProjectId, :SubServiceType, :EngSerViceType, :SourceType, :VoiceFormat, :UsrAudioKey, :Url, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId
|
|
1047
1047
|
|
|
1048
|
-
def initialize(projectid=nil, subservicetype=nil, engservicetype=nil, sourcetype=nil, voiceformat=nil, usraudiokey=nil, url=nil, data=nil, datalen=nil,
|
|
1048
|
+
def initialize(projectid=nil, subservicetype=nil, engservicetype=nil, sourcetype=nil, voiceformat=nil, usraudiokey=nil, url=nil, data=nil, datalen=nil, wordinfo=nil, filterdirty=nil, filtermodal=nil, filterpunc=nil, convertnummode=nil, hotwordid=nil, customizationid=nil)
|
|
1049
1049
|
@ProjectId = projectid
|
|
1050
1050
|
@SubServiceType = subservicetype
|
|
1051
1051
|
@EngSerViceType = engservicetype
|
|
@@ -1055,12 +1055,13 @@ module TencentCloud
|
|
|
1055
1055
|
@Url = url
|
|
1056
1056
|
@Data = data
|
|
1057
1057
|
@DataLen = datalen
|
|
1058
|
-
@
|
|
1058
|
+
@WordInfo = wordinfo
|
|
1059
1059
|
@FilterDirty = filterdirty
|
|
1060
1060
|
@FilterModal = filtermodal
|
|
1061
1061
|
@FilterPunc = filterpunc
|
|
1062
1062
|
@ConvertNumMode = convertnummode
|
|
1063
|
-
@
|
|
1063
|
+
@HotwordId = hotwordid
|
|
1064
|
+
@CustomizationId = customizationid
|
|
1064
1065
|
end
|
|
1065
1066
|
|
|
1066
1067
|
def deserialize(params)
|
|
@@ -1073,12 +1074,13 @@ module TencentCloud
|
|
|
1073
1074
|
@Url = params['Url']
|
|
1074
1075
|
@Data = params['Data']
|
|
1075
1076
|
@DataLen = params['DataLen']
|
|
1076
|
-
@
|
|
1077
|
+
@WordInfo = params['WordInfo']
|
|
1077
1078
|
@FilterDirty = params['FilterDirty']
|
|
1078
1079
|
@FilterModal = params['FilterModal']
|
|
1079
1080
|
@FilterPunc = params['FilterPunc']
|
|
1080
1081
|
@ConvertNumMode = params['ConvertNumMode']
|
|
1081
|
-
@
|
|
1082
|
+
@HotwordId = params['HotwordId']
|
|
1083
|
+
@CustomizationId = params['CustomizationId']
|
|
1082
1084
|
end
|
|
1083
1085
|
end
|
|
1084
1086
|
|
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.404
|
|
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-
|
|
11
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|