tencentcloud-sdk-mps 3.0.1183 → 3.0.1189

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: aebb4d2f7c8f360321f29825fbe23ca56e113aea
4
- data.tar.gz: 68fd310e66479c9f31c7eb507329feed4cb660d1
3
+ metadata.gz: a93c828f94307e8536d8ca326acef410bd05f8fd
4
+ data.tar.gz: ca923f7b6ad51c05ccd5acec4ec66020781f5b53
5
5
  SHA512:
6
- metadata.gz: f178ea7b15d2ac76c4f34aa72a8a92ff9725062868b77b04702b48f7ee3f762b120c5baea3c51c8e01a5021af0cb6f9deba3c96dfa11eb31fcd07c81e2957057
7
- data.tar.gz: c2037284c3690e6b2269420165a88ab8b523baff62f83ea0414659c2a3f4ddf41bdbc868f776388440948f69ad7db0db034984a319a52e895dcbc014dcabc980
6
+ metadata.gz: bd8ac80d53c6371b557ab044ed3ed82c1f9104afa5656805179e6d0e41f553f999666f923902fda5dc46ee721253bf1846ac31796cc61e3e1f38a0f568e0eead
7
+ data.tar.gz: b6684de0a588325205fb6539f1f907d9b83f2c8283ef7f8e45754019bd0d07ac5a6d2b0051c6d7442606ed95ac5b87cc6f6cc5cc38b60b685de07a1f39cdd6ca
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1183
1
+ 3.0.1189
@@ -3488,6 +3488,30 @@ module TencentCloud
3488
3488
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3489
3489
  end
3490
3490
 
3491
+ # 同步接口,返回语音识别结果
3492
+
3493
+ # @param request: Request instance for RecognizeAudio.
3494
+ # @type request: :class:`Tencentcloud::mps::V20190612::RecognizeAudioRequest`
3495
+ # @rtype: :class:`Tencentcloud::mps::V20190612::RecognizeAudioResponse`
3496
+ def RecognizeAudio(request)
3497
+ body = send_request('RecognizeAudio', request.serialize)
3498
+ response = JSON.parse(body)
3499
+ if response['Response'].key?('Error') == false
3500
+ model = RecognizeAudioResponse.new
3501
+ model.deserialize(response['Response'])
3502
+ model
3503
+ else
3504
+ code = response['Response']['Error']['Code']
3505
+ message = response['Response']['Error']['Message']
3506
+ reqid = response['Response']['RequestId']
3507
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3508
+ end
3509
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3510
+ raise e
3511
+ rescue StandardError => e
3512
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3513
+ end
3514
+
3491
3515
  # 智能媒体识别,包含表情和动作识别。仅用于智学,其他调用无效。
3492
3516
 
3493
3517
  # @param request: Request instance for RecognizeMediaForZhiXue.
@@ -801,6 +801,55 @@ module TencentCloud
801
801
  end
802
802
  end
803
803
 
804
+ # 图片处理编排中使用的输入参数。
805
+ class AddOnImageInput < TencentCloud::Common::AbstractModel
806
+ # @param Image: 图片路径。
807
+ # @type Image: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
808
+
809
+ attr_accessor :Image
810
+
811
+ def initialize(image=nil)
812
+ @Image = image
813
+ end
814
+
815
+ def deserialize(params)
816
+ unless params['Image'].nil?
817
+ @Image = MediaInputInfo.new
818
+ @Image.deserialize(params['Image'])
819
+ end
820
+ end
821
+ end
822
+
823
+ # 图片处理附加输入参数。
824
+ class AddOnParameter < TencentCloud::Common::AbstractModel
825
+ # @param ImageSet: 附加图片输入。
826
+ # @type ImageSet: Array
827
+ # @param OutputConfig: 图片处理输出配置。
828
+ # @type OutputConfig: :class:`Tencentcloud::Mps.v20190612.models.ImageProcessOutputConfig`
829
+
830
+ attr_accessor :ImageSet, :OutputConfig
831
+
832
+ def initialize(imageset=nil, outputconfig=nil)
833
+ @ImageSet = imageset
834
+ @OutputConfig = outputconfig
835
+ end
836
+
837
+ def deserialize(params)
838
+ unless params['ImageSet'].nil?
839
+ @ImageSet = []
840
+ params['ImageSet'].each do |i|
841
+ addonimageinput_tmp = AddOnImageInput.new
842
+ addonimageinput_tmp.deserialize(i)
843
+ @ImageSet << addonimageinput_tmp
844
+ end
845
+ end
846
+ unless params['OutputConfig'].nil?
847
+ @OutputConfig = ImageProcessOutputConfig.new
848
+ @OutputConfig.deserialize(params['OutputConfig'])
849
+ end
850
+ end
851
+ end
852
+
804
853
  # 外挂字幕。
805
854
  class AddOnSubtitle < TencentCloud::Common::AbstractModel
806
855
  # @param Type: 插入形式,可选值:
@@ -17017,6 +17066,38 @@ module TencentCloud
17017
17066
  end
17018
17067
  end
17019
17068
 
17069
+ # 图片处理编排输出配置。
17070
+ class ImageProcessOutputConfig < TencentCloud::Common::AbstractModel
17071
+ # @param AspectRatio: 输出图片的宽高比。可以配合ImageWidth 和 ImageHeight 使用,规则如下:
17072
+
17073
+ # 1. 仅指定 AspectRatio 时,根据原图输入进行自适应调整。
17074
+ # 2. 指定 AspectRatio 和 ImageWidth 时,ImageHeight 由两者计算得出,反亦是如此。
17075
+ # 3. 当AspectRatio、ImageWidth、ImageHeight 同时指定的时候,优先使用ImageWidth、ImageHeight。
17076
+
17077
+ # 可取值:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9
17078
+
17079
+ # 支持该参数 ScheduleId: 30010(扩图)
17080
+ # @type AspectRatio: String
17081
+ # @param ImageHeight: 图片输出高度,单位:像素。
17082
+ # @type ImageHeight: Integer
17083
+ # @param ImageWidth: 图片输出宽度,单位:像素。
17084
+ # @type ImageWidth: Integer
17085
+
17086
+ attr_accessor :AspectRatio, :ImageHeight, :ImageWidth
17087
+
17088
+ def initialize(aspectratio=nil, imageheight=nil, imagewidth=nil)
17089
+ @AspectRatio = aspectratio
17090
+ @ImageHeight = imageheight
17091
+ @ImageWidth = imagewidth
17092
+ end
17093
+
17094
+ def deserialize(params)
17095
+ @AspectRatio = params['AspectRatio']
17096
+ @ImageHeight = params['ImageHeight']
17097
+ @ImageWidth = params['ImageWidth']
17098
+ end
17099
+ end
17100
+
17020
17101
  # 图片处理结果信息
17021
17102
  class ImageProcessTaskOutput < TencentCloud::Common::AbstractModel
17022
17103
  # @param Path: 输出文件的路径。
@@ -23621,10 +23702,18 @@ module TencentCloud
23621
23702
  # @type ResourceId: String
23622
23703
  # @param ImageTask: 图片处理参数。
23623
23704
  # @type ImageTask: :class:`Tencentcloud::Mps.v20190612.models.ImageTaskInput`
23705
+ # @param ScheduleId: 图片处理编排场景 ID。
23706
+
23707
+ # - 30000:文字水印擦除
23708
+ # - 30010:图片扩展
23709
+ # - 30100:换装场景
23710
+ # @type ScheduleId: Integer
23711
+ # @param AddOnParameter: 图片处理附加参数。
23712
+ # @type AddOnParameter: :class:`Tencentcloud::Mps.v20190612.models.AddOnParameter`
23624
23713
 
23625
- attr_accessor :InputInfo, :OutputStorage, :OutputDir, :OutputPath, :Definition, :ResourceId, :ImageTask
23714
+ attr_accessor :InputInfo, :OutputStorage, :OutputDir, :OutputPath, :Definition, :ResourceId, :ImageTask, :ScheduleId, :AddOnParameter
23626
23715
 
23627
- def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, outputpath=nil, definition=nil, resourceid=nil, imagetask=nil)
23716
+ def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, outputpath=nil, definition=nil, resourceid=nil, imagetask=nil, scheduleid=nil, addonparameter=nil)
23628
23717
  @InputInfo = inputinfo
23629
23718
  @OutputStorage = outputstorage
23630
23719
  @OutputDir = outputdir
@@ -23632,6 +23721,8 @@ module TencentCloud
23632
23721
  @Definition = definition
23633
23722
  @ResourceId = resourceid
23634
23723
  @ImageTask = imagetask
23724
+ @ScheduleId = scheduleid
23725
+ @AddOnParameter = addonparameter
23635
23726
  end
23636
23727
 
23637
23728
  def deserialize(params)
@@ -23651,6 +23742,11 @@ module TencentCloud
23651
23742
  @ImageTask = ImageTaskInput.new
23652
23743
  @ImageTask.deserialize(params['ImageTask'])
23653
23744
  end
23745
+ @ScheduleId = params['ScheduleId']
23746
+ unless params['AddOnParameter'].nil?
23747
+ @AddOnParameter = AddOnParameter.new
23748
+ @AddOnParameter.deserialize(params['AddOnParameter'])
23749
+ end
23654
23750
  end
23655
23751
  end
23656
23752
 
@@ -25249,6 +25345,187 @@ module TencentCloud
25249
25345
  end
25250
25346
  end
25251
25347
 
25348
+ # RecognizeAudio请求参数结构体
25349
+ class RecognizeAudioRequest < TencentCloud::Common::AbstractModel
25350
+ # @param AudioData: base64编码的音频数据
25351
+ # @type AudioData: String
25352
+ # @param Source: 识别目标语言,为空默认 auto 自动识别语种。
25353
+ # 注:如果自动识别语种识别效果不佳,可以指定语种提高准确率
25354
+
25355
+ # 当前支持语言:
25356
+ # auto: 自动识别
25357
+ # zh: 简体中文
25358
+ # en: 英语
25359
+ # ja: 日语
25360
+ # ko: 韩语
25361
+ # vi: 越南语
25362
+ # ms: 马来语
25363
+ # id: 印度尼西亚语
25364
+ # fil: 菲律宾语
25365
+ # th: 泰语
25366
+ # pt: 葡萄牙语
25367
+ # tr: 土耳其语
25368
+ # ar: 阿拉伯语
25369
+ # es: 西班牙语
25370
+ # hi: 印地语
25371
+ # fr: 法语
25372
+ # de: 德语
25373
+ # it: 意大利语
25374
+ # yue: 粤语
25375
+ # ru: 俄语
25376
+ # af: 南非荷兰语
25377
+ # sq: 阿尔巴尼亚语
25378
+ # am: 阿姆哈拉语
25379
+ # hy: 亚美尼亚语
25380
+ # az: 阿塞拜疆语
25381
+ # eu: 巴斯克语
25382
+ # bn: 孟加拉语
25383
+ # bs: 波斯尼亚语
25384
+ # bg: 保加利亚语
25385
+ # my: 缅甸语
25386
+ # ca: 加泰罗尼亚语
25387
+ # hr: 克罗地亚语
25388
+ # cs: 捷克语
25389
+ # da: 丹麦语
25390
+ # nl: 荷兰语
25391
+ # et: 爱沙尼亚语
25392
+ # fi: 芬兰语
25393
+ # gl: 加利西亚语
25394
+ # ka: 格鲁吉亚语
25395
+ # el: 希腊语
25396
+ # gu: 古吉拉特语
25397
+ # iw: 希伯来语
25398
+ # hu: 匈牙利语
25399
+ # is: 冰岛语
25400
+ # jv: 爪哇语
25401
+ # kn: 卡纳达语
25402
+ # kk: 哈萨克语
25403
+ # km: 高棉语
25404
+ # rw: 卢旺达语
25405
+ # lo: 老挝语
25406
+ # lv: 拉脱维亚语
25407
+ # lt: 立陶宛语
25408
+ # mk: 马其顿语
25409
+ # ml: 马拉雅拉姆语
25410
+ # mr: 马拉地语
25411
+ # mn: 蒙古语
25412
+ # ne: 尼泊尔语
25413
+ # no: 博克马尔挪威语
25414
+ # fa: 波斯语
25415
+ # pl: 波兰语
25416
+ # ro: 罗马尼亚语
25417
+ # sr: 塞尔维亚语
25418
+ # si: 僧伽罗语
25419
+ # sk: 斯洛伐克语
25420
+ # sl: 斯洛文尼亚语
25421
+ # st: 南索托语
25422
+ # su: 巽他语
25423
+ # sw: 斯瓦希里语
25424
+ # sv: 瑞典语
25425
+ # ta: 泰米尔语
25426
+ # te: 泰卢固语
25427
+ # ts: 聪加语
25428
+ # uk: 乌克兰语
25429
+ # ur: 乌尔都语
25430
+ # uz: 乌兹别克语
25431
+ # ve: 文达语
25432
+ # xh: 科萨语
25433
+ # zu: 祖鲁语
25434
+ # @type Source: String
25435
+ # @param AudioFormat: 音频数据格式,默认为 pcm
25436
+
25437
+ # 支持的格式:pcm (16k 采样率的单声道 16 位采样 pcm 数据)
25438
+ # @type AudioFormat: String
25439
+ # @param UserExtPara: 扩展参数,默认不填,特殊需求使用
25440
+ # @type UserExtPara: String
25441
+
25442
+ attr_accessor :AudioData, :Source, :AudioFormat, :UserExtPara
25443
+
25444
+ def initialize(audiodata=nil, source=nil, audioformat=nil, userextpara=nil)
25445
+ @AudioData = audiodata
25446
+ @Source = source
25447
+ @AudioFormat = audioformat
25448
+ @UserExtPara = userextpara
25449
+ end
25450
+
25451
+ def deserialize(params)
25452
+ @AudioData = params['AudioData']
25453
+ @Source = params['Source']
25454
+ @AudioFormat = params['AudioFormat']
25455
+ @UserExtPara = params['UserExtPara']
25456
+ end
25457
+ end
25458
+
25459
+ # RecognizeAudio返回参数结构体
25460
+ class RecognizeAudioResponse < TencentCloud::Common::AbstractModel
25461
+ # @param Text: 整段音频的识别结果
25462
+ # @type Text: String
25463
+ # @param AudioLength: 音频长度,单位秒
25464
+ # @type AudioLength: Float
25465
+ # @param Sentence: 分句的识别结果
25466
+ # @type Sentence: Array
25467
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25468
+ # @type RequestId: String
25469
+
25470
+ attr_accessor :Text, :AudioLength, :Sentence, :RequestId
25471
+
25472
+ def initialize(text=nil, audiolength=nil, sentence=nil, requestid=nil)
25473
+ @Text = text
25474
+ @AudioLength = audiolength
25475
+ @Sentence = sentence
25476
+ @RequestId = requestid
25477
+ end
25478
+
25479
+ def deserialize(params)
25480
+ @Text = params['Text']
25481
+ @AudioLength = params['AudioLength']
25482
+ unless params['Sentence'].nil?
25483
+ @Sentence = []
25484
+ params['Sentence'].each do |i|
25485
+ recognizeaudiosentence_tmp = RecognizeAudioSentence.new
25486
+ recognizeaudiosentence_tmp.deserialize(i)
25487
+ @Sentence << recognizeaudiosentence_tmp
25488
+ end
25489
+ end
25490
+ @RequestId = params['RequestId']
25491
+ end
25492
+ end
25493
+
25494
+ # 识别音频单句结果
25495
+ class RecognizeAudioSentence < TencentCloud::Common::AbstractModel
25496
+ # @param Start: 在音频中的起始时间,单位秒
25497
+ # @type Start: Float
25498
+ # @param End: 在音频中的截止时间,单位秒
25499
+ # @type End: Float
25500
+ # @param Text: 音频识别结果
25501
+ # @type Text: String
25502
+ # @param WordsInfo: 字词时间戳结果
25503
+ # @type WordsInfo: Array
25504
+
25505
+ attr_accessor :Start, :End, :Text, :WordsInfo
25506
+
25507
+ def initialize(start=nil, _end=nil, text=nil, wordsinfo=nil)
25508
+ @Start = start
25509
+ @End = _end
25510
+ @Text = text
25511
+ @WordsInfo = wordsinfo
25512
+ end
25513
+
25514
+ def deserialize(params)
25515
+ @Start = params['Start']
25516
+ @End = params['End']
25517
+ @Text = params['Text']
25518
+ unless params['WordsInfo'].nil?
25519
+ @WordsInfo = []
25520
+ params['WordsInfo'].each do |i|
25521
+ wordresult_tmp = WordResult.new
25522
+ wordresult_tmp.deserialize(i)
25523
+ @WordsInfo << wordresult_tmp
25524
+ end
25525
+ end
25526
+ end
25527
+ end
25528
+
25252
25529
  # RecognizeMediaForZhiXue请求参数结构体
25253
25530
  class RecognizeMediaForZhiXueRequest < TencentCloud::Common::AbstractModel
25254
25531
  # @param InputInfo: 输入媒体文件存储信息。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1183
4
+ version: 3.0.1189
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-17 00:00:00.000000000 Z
11
+ date: 2025-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20190612/models.rb
37
- - lib/v20190612/client.rb
38
36
  - lib/tencentcloud-sdk-mps.rb
37
+ - lib/v20190612/client.rb
38
+ - lib/v20190612/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: