tencentcloud-sdk-asr 3.0.544 → 3.0.545

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73a98089702d4e1af840a32babaacf6e3b774e11
4
- data.tar.gz: 6ad473268fdec85241caa14b7519d494fddd6610
3
+ metadata.gz: 0fc48bc584e35367c79ccab7a689c35d4de482e6
4
+ data.tar.gz: 7e8f4474ea744c03394941c8e47178efc071fb3e
5
5
  SHA512:
6
- metadata.gz: 0ada1f0b0cc562a5c0cf4071f92564db59472554bb72dbbc45f86541c9aa7b4ee9f82111fa8733ba89fb7b8aa37b6ff138cbb12e31a287039a934aefe1861e04
7
- data.tar.gz: a305f4354e25637f3f42279a02e16dceaff3591271fb01c55fc54dda444ccf8ecbdfd6b24b477a9866591c7470fce792a336f35afe94578d29a8249f1418f7e0
6
+ metadata.gz: 9cc7227f716e0562bd9f2c119e8e8a5093e1aebe498459f29405a7dc4a41cb6c0efa66427ee4d927dca05c5f4fe18a5226bc55c93d085f2c0e3f44698565acb8
7
+ data.tar.gz: b91f0fe06d5443c2aa9dd5eb2d3b57d6be6a570d622b29371705e4cc877037170c040c56296966f41b9ff555fbb2a68d89284168184b6086db25a948ae0bb18f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.544
1
+ 3.0.545
@@ -439,7 +439,7 @@ module TencentCloud
439
439
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
440
440
  end
441
441
 
442
- # 本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:30次/秒,如您有提高请求频率限制的需求,请[前往购买](https://buy.cloud.tencent.com/asr)。
442
+ # 本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、泰语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:30次/秒,如您有提高请求频率限制的需求,请[前往购买](https://buy.cloud.tencent.com/asr)。
443
443
 
444
444
  # @param request: Request instance for SentenceRecognition.
445
445
  # @type request: :class:`Tencentcloud::asr::V20190614::SentenceRecognitionRequest`
@@ -1041,10 +1041,6 @@ module TencentCloud
1041
1041
 
1042
1042
  # SentenceRecognition请求参数结构体
1043
1043
  class SentenceRecognitionRequest < TencentCloud::Common::AbstractModel
1044
- # @param ProjectId: 腾讯云项目 ID,废弃参数,填写0即可。
1045
- # @type ProjectId: Integer
1046
- # @param SubServiceType: 子服务类型。2: 一句话识别。
1047
- # @type SubServiceType: Integer
1048
1044
  # @param EngSerViceType: 引擎模型类型。
1049
1045
  # 电话场景:
1050
1046
  # • 8k_zh:中文电话通用;
@@ -1062,16 +1058,21 @@ module TencentCloud
1062
1058
  # • 16k_ms:马来语;
1063
1059
  # • 16k_id:印度尼西亚语;
1064
1060
  # • 16k_fil:菲律宾语;
1061
+ # • 16k_th:泰语;
1065
1062
  # • 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
1066
1063
  # @type EngSerViceType: String
1067
1064
  # @param SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
1068
1065
  # @type SourceType: Integer
1069
1066
  # @param VoiceFormat: 识别音频的音频格式,支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。
1070
1067
  # @type VoiceFormat: String
1071
- # @param UsrAudioKey: 废弃参数,填写任意字符串即可。
1072
- # @type UsrAudioKey: String
1068
+ # @param ProjectId: 腾讯云项目 ID,废弃参数,填写0即可。
1069
+ # @type ProjectId: Integer
1070
+ # @param SubServiceType: 子服务类型。2: 一句话识别。
1071
+ # @type SubServiceType: Integer
1073
1072
  # @param Url: 语音的URL地址,需要公网环境浏览器可下载。当 SourceType 值为 0时须填写该字段,为 1 时不填。音频时长不能超过60s,音频文件大小不能超过3MB。
1074
1073
  # @type Url: String
1074
+ # @param UsrAudioKey: 废弃参数,填写任意字符串即可。
1075
+ # @type UsrAudioKey: String
1075
1076
  # @param Data: 语音数据,当SourceType 值为1(本地语音数据上传)时必须填写,当SourceType 值为0(语音 URL上传)可不写。要使用base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频时长不能超过60s,音频文件大小不能超过3MB(Base64后)。
1076
1077
  # @type Data: String
1077
1078
  # @param DataLen: 数据长度,单位为字节。当 SourceType 值为1(本地语音数据上传)时必须填写,当 SourceType 值为0(语音 URL上传)可不写(此数据长度为数据未进行base64编码时的数据长度)。
@@ -1093,16 +1094,16 @@ module TencentCloud
1093
1094
  # @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”、“蜜汁”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
1094
1095
  # @type ReinforceHotword: Integer
1095
1096
 
1096
- attr_accessor :ProjectId, :SubServiceType, :EngSerViceType, :SourceType, :VoiceFormat, :UsrAudioKey, :Url, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId, :ReinforceHotword
1097
+ attr_accessor :EngSerViceType, :SourceType, :VoiceFormat, :ProjectId, :SubServiceType, :Url, :UsrAudioKey, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId, :ReinforceHotword
1097
1098
 
1098
- 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, reinforcehotword=nil)
1099
- @ProjectId = projectid
1100
- @SubServiceType = subservicetype
1099
+ def initialize(engservicetype=nil, sourcetype=nil, voiceformat=nil, projectid=nil, subservicetype=nil, url=nil, usraudiokey=nil, data=nil, datalen=nil, wordinfo=nil, filterdirty=nil, filtermodal=nil, filterpunc=nil, convertnummode=nil, hotwordid=nil, customizationid=nil, reinforcehotword=nil)
1101
1100
  @EngSerViceType = engservicetype
1102
1101
  @SourceType = sourcetype
1103
1102
  @VoiceFormat = voiceformat
1104
- @UsrAudioKey = usraudiokey
1103
+ @ProjectId = projectid
1104
+ @SubServiceType = subservicetype
1105
1105
  @Url = url
1106
+ @UsrAudioKey = usraudiokey
1106
1107
  @Data = data
1107
1108
  @DataLen = datalen
1108
1109
  @WordInfo = wordinfo
@@ -1116,13 +1117,13 @@ module TencentCloud
1116
1117
  end
1117
1118
 
1118
1119
  def deserialize(params)
1119
- @ProjectId = params['ProjectId']
1120
- @SubServiceType = params['SubServiceType']
1121
1120
  @EngSerViceType = params['EngSerViceType']
1122
1121
  @SourceType = params['SourceType']
1123
1122
  @VoiceFormat = params['VoiceFormat']
1124
- @UsrAudioKey = params['UsrAudioKey']
1123
+ @ProjectId = params['ProjectId']
1124
+ @SubServiceType = params['SubServiceType']
1125
1125
  @Url = params['Url']
1126
+ @UsrAudioKey = params['UsrAudioKey']
1126
1127
  @Data = params['Data']
1127
1128
  @DataLen = params['DataLen']
1128
1129
  @WordInfo = params['WordInfo']
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.544
4
+ version: 3.0.545
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common