tencentcloud-sdk-asr 3.0.658 → 3.0.659
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 +75 -74
- 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: 837bbe0904be82a09c8dc1834cd40f5eb5da0f82
|
|
4
|
+
data.tar.gz: 64967529ada2b02c6803727492215094538972ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5dc9e0fb5cb69aaf329f50db89f06320547958055a190038adc954aa69864cbe7b95896e07ddca70b4ae9508fa4e24be7c1460c7d224e622c8e6a20413055ced
|
|
7
|
+
data.tar.gz: 75b9ff344c6b327c6dd7e687b94147536c4d7769bd9a0a072c2b8189a0ba55a1bc9b9b097a191b44bfd5d7206eaa13d0a624b16e52a4587fb1fe478f5ae58b67
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.659
|
data/lib/v20190614/models.rb
CHANGED
|
@@ -339,6 +339,27 @@ module TencentCloud
|
|
|
339
339
|
# 0:语音 URL;
|
|
340
340
|
# 1:语音数据(post body)
|
|
341
341
|
# @type SourceType: Integer
|
|
342
|
+
# @param Data: 语音数据base64编码
|
|
343
|
+
# **当 SourceType 值为 1 时须填写该字段,为 0 时不需要填写**
|
|
344
|
+
|
|
345
|
+
# 注意:音频数据要小于5MB(含)
|
|
346
|
+
# @type Data: String
|
|
347
|
+
# @param DataLen: 数据长度(此数据长度为数据未进行base64编码时的长度)
|
|
348
|
+
# @type DataLen: Integer
|
|
349
|
+
# @param Url: 语音URL的地址(需要公网环境浏览器可下载)
|
|
350
|
+
# **当 SourceType 值为 0 时须填写该字段,为 1 时不需要填写**
|
|
351
|
+
|
|
352
|
+
# 注意:
|
|
353
|
+
# 1. 请确保录音文件时长在5个小时(含)之内,否则可能识别失败;
|
|
354
|
+
# 2. 请保证文件的下载速度,否则可能下载失败
|
|
355
|
+
# @type Url: String
|
|
356
|
+
# @param CallbackUrl: 回调 URL
|
|
357
|
+
# 用户自行搭建的用于接收识别结果的服务URL
|
|
358
|
+
# 回调格式和内容详见:[录音识别回调说明](https://cloud.tencent.com/document/product/1093/52632)
|
|
359
|
+
|
|
360
|
+
# 注意:
|
|
361
|
+
# 如果用户使用轮询方式获取识别结果,则无需提交该参数
|
|
362
|
+
# @type CallbackUrl: String
|
|
342
363
|
# @param SpeakerDiarization: 是否开启说话人分离
|
|
343
364
|
# 0:不开启;
|
|
344
365
|
# 1:开启(仅支持以下引擎:8k_zh/16k_zh/16k_ms/16k_en/16k_id,且ChannelNum=1时可用);
|
|
@@ -353,27 +374,38 @@ module TencentCloud
|
|
|
353
374
|
# 1-10:指定人数分离;
|
|
354
375
|
# 默认值为 0
|
|
355
376
|
# @type SpeakerNumber: Integer
|
|
356
|
-
# @param
|
|
357
|
-
#
|
|
358
|
-
#
|
|
377
|
+
# @param HotwordId: 热词表id
|
|
378
|
+
# 如不设置该参数,将自动生效默认热词表;
|
|
379
|
+
# 如设置该参数,将生效对应id的热词表;
|
|
380
|
+
# 点击这里查看[热词表配置方法](https://cloud.tencent.com/document/product/1093/40996)
|
|
381
|
+
# @type HotwordId: String
|
|
382
|
+
# @param ReinforceHotword: 热词增强功能(目前仅支持8k_zh/16k_zh引擎)
|
|
383
|
+
# 1:开启热词增强功能
|
|
359
384
|
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
# @
|
|
363
|
-
#
|
|
364
|
-
#
|
|
385
|
+
# 注意:热词增强功能开启后,将对传入的热词表id开启同音替换功能,可以在这里查看[热词表配置方法](https://cloud.tencent.com/document/product/1093/40996)。效果举例:在热词表中配置“蜜制”一词,并开启增强功能,与“蜜制”(mìzhì)同音同调的“秘制”(mìzhì)的识别结果会被强制替换成“蜜制”。**建议客户根据实际的业务需求开启该功能**
|
|
386
|
+
# @type ReinforceHotword: Integer
|
|
387
|
+
# @param CustomizationId: 自学习定制模型 id
|
|
388
|
+
# 如设置了该参数,将生效对应id的自学习定制模型;
|
|
389
|
+
# 点击这里查看[自学习定制模型配置方法](https://cloud.tencent.com/document/product/1093/38416)
|
|
390
|
+
# @type CustomizationId: String
|
|
391
|
+
# @param EmotionRecognition: **【增值付费功能】**情绪识别能力(目前仅支持16k_zh)
|
|
392
|
+
# 0:不开启;
|
|
393
|
+
# 1:开启情绪识别,但不在文本展示情绪标签;
|
|
394
|
+
# 2:开启情绪识别,并且在文本展示情绪标签(**该功能需要设置ResTextFormat 大于0**)
|
|
395
|
+
# 默认值为0
|
|
396
|
+
# 支持的情绪分类为:高兴、伤心、愤怒
|
|
365
397
|
|
|
366
398
|
# 注意:
|
|
367
|
-
# 1.
|
|
368
|
-
# 2.
|
|
369
|
-
#
|
|
370
|
-
# @
|
|
371
|
-
#
|
|
372
|
-
|
|
373
|
-
#
|
|
374
|
-
#
|
|
375
|
-
#
|
|
376
|
-
# @type
|
|
399
|
+
# 1. **本功能为增值服务**,需将参数设置为1或2时方可按对应方式生效;
|
|
400
|
+
# 2. 如果传入参数值1或2,需确保账号已购买[情绪识别资源包](https://cloud.tencent.com/document/product/1093/35686#97ae4aa0-29a0-4066-9f07-ccaf8856a16b),或账号开启后付费;**若当前账号已开启后付费功能,并传入参数值1或2,将[自动计费](https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852))**;
|
|
401
|
+
# 3. 参数设置为0时,无需购买资源包,也不会消耗情绪识别对应资源
|
|
402
|
+
# @type EmotionRecognition: Integer
|
|
403
|
+
# @param EmotionalEnergy: 情绪能量值
|
|
404
|
+
# 取值为音量分贝值/10,取值范围:[1,10],值越高情绪越强烈
|
|
405
|
+
# 0:不开启;
|
|
406
|
+
# 1:开启;
|
|
407
|
+
# 默认值为0
|
|
408
|
+
# @type EmotionalEnergy: Integer
|
|
377
409
|
# @param ConvertNumMode: 阿拉伯数字智能转换(目前仅支持8k_zh/16k_zh引擎)
|
|
378
410
|
# 0:不转换,直接输出中文数字;
|
|
379
411
|
# 1:根据场景智能转换为阿拉伯数字;
|
|
@@ -386,40 +418,18 @@ module TencentCloud
|
|
|
386
418
|
# 2:将脏词替换为 * ;
|
|
387
419
|
# 默认值为 0
|
|
388
420
|
# @type FilterDirty: Integer
|
|
389
|
-
# @param HotwordId: 热词表id
|
|
390
|
-
# 如不设置该参数,将自动生效默认热词表;
|
|
391
|
-
# 如设置该参数,将生效对应id的热词表;
|
|
392
|
-
# 点击这里查看[热词表配置方法](https://cloud.tencent.com/document/product/1093/40996)
|
|
393
|
-
# @type HotwordId: String
|
|
394
|
-
# @param CustomizationId: 自学习定制模型 id
|
|
395
|
-
# 如设置了该参数,将生效对应id的自学习定制模型;
|
|
396
|
-
# 点击这里查看[自学习定制模型配置方法](https://cloud.tencent.com/document/product/1093/38416)
|
|
397
|
-
# @type CustomizationId: String
|
|
398
|
-
# @param Extra: 附加参数**(该参数无意义,忽略即可)**
|
|
399
|
-
# @type Extra: String
|
|
400
421
|
# @param FilterPunc: 标点符号过滤(目前仅支持8k_zh/16k_zh引擎)
|
|
401
422
|
# 0:不过滤标点;
|
|
402
423
|
# 1:过滤句末标点;
|
|
403
424
|
# 2:过滤所有标点;
|
|
404
425
|
# 默认值为 0
|
|
405
426
|
# @type FilterPunc: Integer
|
|
406
|
-
# @param FilterModal:
|
|
427
|
+
# @param FilterModal: 语气词过滤(目前仅支持8k_zh/16k_zh引擎)
|
|
407
428
|
# 0:不过滤语气词;
|
|
408
429
|
# 1:过滤部分语气词;
|
|
409
430
|
# 2:严格过滤语气词;
|
|
410
431
|
# 默认值为 0
|
|
411
432
|
# @type FilterModal: Integer
|
|
412
|
-
# @param EmotionalEnergy: 情绪能量值
|
|
413
|
-
# 取值为音量分贝值/10,取值范围:[1,10],值越高情绪越强烈
|
|
414
|
-
# 0:不开启;
|
|
415
|
-
# 1:开启;
|
|
416
|
-
# 默认值为0
|
|
417
|
-
# @type EmotionalEnergy: Integer
|
|
418
|
-
# @param ReinforceHotword: 热词增强功能(仅支持8k_zh/16k_zh引擎)
|
|
419
|
-
# 1:开启热词增强功能
|
|
420
|
-
|
|
421
|
-
# 注意:热词增强功能开启后,将对传入的热词表id开启同音替换功能,可以在这里查看[热词表配置方法](https://cloud.tencent.com/document/product/1093/40996)。效果举例:在热词表中配置“蜜制”一词,并开启增强功能,与“蜜制”(mìzhì)同音同调的“秘制”(mìzhì)的识别结果会被强制替换成“蜜制”。**建议客户根据实际的业务需求开启该功能**
|
|
422
|
-
# @type ReinforceHotword: Integer
|
|
423
433
|
# @param SentenceMaxLength: 单标点最多字数
|
|
424
434
|
# **可控制单行字幕最大字数,适用于字幕生成场景**,取值范围:[6,40]
|
|
425
435
|
# 0:不开启该功能;
|
|
@@ -427,42 +437,33 @@ module TencentCloud
|
|
|
427
437
|
|
|
428
438
|
# 注意:需设置ResTextFormat为3,解析返回的ResultDetail列表,通过结构中FinalSentence获取单个标点断句结果
|
|
429
439
|
# @type SentenceMaxLength: Integer
|
|
430
|
-
# @param
|
|
431
|
-
#
|
|
432
|
-
# 1:开启情绪识别,但不在文本展示情绪标签;
|
|
433
|
-
# 2:开启情绪识别,并且在文本展示情绪标签(**该功能需要设置ResTextFormat 大于0**)
|
|
434
|
-
# 默认值为0
|
|
435
|
-
|
|
436
|
-
# 注意:
|
|
437
|
-
# 1. **本功能为增值服务**,需将参数设置为1或2时方可按对应方式生效;
|
|
438
|
-
# 2. 如果传入参数值1或2,需确保账号已购买[情绪识别资源包](https://cloud.tencent.com/document/product/1093/35686#97ae4aa0-29a0-4066-9f07-ccaf8856a16b),或账号开启后付费;**若当前账号已开启后付费功能,并传入参数值4,将[自动计费](https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852))**;
|
|
439
|
-
# 3. 参数设置为0时,无需购买资源包,也不会消耗情绪识别对应资源
|
|
440
|
-
# @type EmotionRecognition: Integer
|
|
440
|
+
# @param Extra: 附加参数**(该参数无意义,忽略即可)**
|
|
441
|
+
# @type Extra: String
|
|
441
442
|
|
|
442
|
-
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :
|
|
443
|
+
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :Data, :DataLen, :Url, :CallbackUrl, :SpeakerDiarization, :SpeakerNumber, :HotwordId, :ReinforceHotword, :CustomizationId, :EmotionRecognition, :EmotionalEnergy, :ConvertNumMode, :FilterDirty, :FilterPunc, :FilterModal, :SentenceMaxLength, :Extra
|
|
443
444
|
|
|
444
|
-
def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil,
|
|
445
|
+
def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, data=nil, datalen=nil, url=nil, callbackurl=nil, speakerdiarization=nil, speakernumber=nil, hotwordid=nil, reinforcehotword=nil, customizationid=nil, emotionrecognition=nil, emotionalenergy=nil, convertnummode=nil, filterdirty=nil, filterpunc=nil, filtermodal=nil, sentencemaxlength=nil, extra=nil)
|
|
445
446
|
@EngineModelType = enginemodeltype
|
|
446
447
|
@ChannelNum = channelnum
|
|
447
448
|
@ResTextFormat = restextformat
|
|
448
449
|
@SourceType = sourcetype
|
|
449
|
-
@SpeakerDiarization = speakerdiarization
|
|
450
|
-
@SpeakerNumber = speakernumber
|
|
451
|
-
@CallbackUrl = callbackurl
|
|
452
|
-
@Url = url
|
|
453
450
|
@Data = data
|
|
454
451
|
@DataLen = datalen
|
|
455
|
-
@
|
|
456
|
-
@
|
|
452
|
+
@Url = url
|
|
453
|
+
@CallbackUrl = callbackurl
|
|
454
|
+
@SpeakerDiarization = speakerdiarization
|
|
455
|
+
@SpeakerNumber = speakernumber
|
|
457
456
|
@HotwordId = hotwordid
|
|
457
|
+
@ReinforceHotword = reinforcehotword
|
|
458
458
|
@CustomizationId = customizationid
|
|
459
|
-
@
|
|
459
|
+
@EmotionRecognition = emotionrecognition
|
|
460
|
+
@EmotionalEnergy = emotionalenergy
|
|
461
|
+
@ConvertNumMode = convertnummode
|
|
462
|
+
@FilterDirty = filterdirty
|
|
460
463
|
@FilterPunc = filterpunc
|
|
461
464
|
@FilterModal = filtermodal
|
|
462
|
-
@EmotionalEnergy = emotionalenergy
|
|
463
|
-
@ReinforceHotword = reinforcehotword
|
|
464
465
|
@SentenceMaxLength = sentencemaxlength
|
|
465
|
-
@
|
|
466
|
+
@Extra = extra
|
|
466
467
|
end
|
|
467
468
|
|
|
468
469
|
def deserialize(params)
|
|
@@ -470,23 +471,23 @@ module TencentCloud
|
|
|
470
471
|
@ChannelNum = params['ChannelNum']
|
|
471
472
|
@ResTextFormat = params['ResTextFormat']
|
|
472
473
|
@SourceType = params['SourceType']
|
|
473
|
-
@SpeakerDiarization = params['SpeakerDiarization']
|
|
474
|
-
@SpeakerNumber = params['SpeakerNumber']
|
|
475
|
-
@CallbackUrl = params['CallbackUrl']
|
|
476
|
-
@Url = params['Url']
|
|
477
474
|
@Data = params['Data']
|
|
478
475
|
@DataLen = params['DataLen']
|
|
479
|
-
@
|
|
480
|
-
@
|
|
476
|
+
@Url = params['Url']
|
|
477
|
+
@CallbackUrl = params['CallbackUrl']
|
|
478
|
+
@SpeakerDiarization = params['SpeakerDiarization']
|
|
479
|
+
@SpeakerNumber = params['SpeakerNumber']
|
|
481
480
|
@HotwordId = params['HotwordId']
|
|
481
|
+
@ReinforceHotword = params['ReinforceHotword']
|
|
482
482
|
@CustomizationId = params['CustomizationId']
|
|
483
|
-
@
|
|
483
|
+
@EmotionRecognition = params['EmotionRecognition']
|
|
484
|
+
@EmotionalEnergy = params['EmotionalEnergy']
|
|
485
|
+
@ConvertNumMode = params['ConvertNumMode']
|
|
486
|
+
@FilterDirty = params['FilterDirty']
|
|
484
487
|
@FilterPunc = params['FilterPunc']
|
|
485
488
|
@FilterModal = params['FilterModal']
|
|
486
|
-
@EmotionalEnergy = params['EmotionalEnergy']
|
|
487
|
-
@ReinforceHotword = params['ReinforceHotword']
|
|
488
489
|
@SentenceMaxLength = params['SentenceMaxLength']
|
|
489
|
-
@
|
|
490
|
+
@Extra = params['Extra']
|
|
490
491
|
end
|
|
491
492
|
end
|
|
492
493
|
|
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.659
|
|
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-09-
|
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|