tencentcloud-sdk-vod 3.0.929 → 3.0.931
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180717/models.rb +523 -25
- 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: 24309893b2e622c16333527a519964ef7b4a24d5
|
4
|
+
data.tar.gz: a16d8f430b2f2c8991c95986df9f01fd0ad79921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b508e6a5632c50d96cbed08f0966bbdb0edae1fdc37201d6035ef6e4eccee1ed8cd71994e9ee2a85109e34932ac947cf484219ea05cf66b85e81eb10a7989a
|
7
|
+
data.tar.gz: 34affd20487ef411e57f3ec9191613ff98453ff7af2d9b10d2ac25416f4bb55290a01f33cbf51baaa1eedafd27639d951d263ee5297ba52759fa69d31f7e2bf9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.931
|
data/lib/v20180717/models.rb
CHANGED
@@ -96,6 +96,10 @@ module TencentCloud
|
|
96
96
|
# @type Name: String
|
97
97
|
# @param Comment: 视频内容识别模板描述信息。
|
98
98
|
# @type Comment: String
|
99
|
+
# @param Type: 模板类型,取值:
|
100
|
+
# <li>Preset:系统预置模板;</li>
|
101
|
+
# <li>Custom:用户自定义模板。</li>
|
102
|
+
# @type Type: String
|
99
103
|
# @param HeadTailConfigure: 头尾识别控制参数。
|
100
104
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
101
105
|
# @type HeadTailConfigure: :class:`Tencentcloud::Vod.v20180717.models.HeadTailConfigureInfo`
|
@@ -117,6 +121,9 @@ module TencentCloud
|
|
117
121
|
# @param AsrWordsConfigure: 语音关键词识别控制参数。
|
118
122
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
119
123
|
# @type AsrWordsConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrWordsConfigureInfo`
|
124
|
+
# @param AsrTranslateConfigure: 语音翻译控制参数。
|
125
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
126
|
+
# @type AsrTranslateConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrTranslateConfigureInfo`
|
120
127
|
# @param ObjectConfigure: 物体识别控制参数。
|
121
128
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
122
129
|
# @type ObjectConfigure: :class:`Tencentcloud::Vod.v20180717.models.ObjectConfigureInfo`
|
@@ -127,12 +134,13 @@ module TencentCloud
|
|
127
134
|
# @param UpdateTime: 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
128
135
|
# @type UpdateTime: String
|
129
136
|
|
130
|
-
attr_accessor :Definition, :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :ObjectConfigure, :ScreenshotInterval, :CreateTime, :UpdateTime
|
137
|
+
attr_accessor :Definition, :Name, :Comment, :Type, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :AsrTranslateConfigure, :ObjectConfigure, :ScreenshotInterval, :CreateTime, :UpdateTime
|
131
138
|
|
132
|
-
def initialize(definition=nil, name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, objectconfigure=nil, screenshotinterval=nil, createtime=nil, updatetime=nil)
|
139
|
+
def initialize(definition=nil, name=nil, comment=nil, type=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, asrtranslateconfigure=nil, objectconfigure=nil, screenshotinterval=nil, createtime=nil, updatetime=nil)
|
133
140
|
@Definition = definition
|
134
141
|
@Name = name
|
135
142
|
@Comment = comment
|
143
|
+
@Type = type
|
136
144
|
@HeadTailConfigure = headtailconfigure
|
137
145
|
@SegmentConfigure = segmentconfigure
|
138
146
|
@FaceConfigure = faceconfigure
|
@@ -140,6 +148,7 @@ module TencentCloud
|
|
140
148
|
@OcrWordsConfigure = ocrwordsconfigure
|
141
149
|
@AsrFullTextConfigure = asrfulltextconfigure
|
142
150
|
@AsrWordsConfigure = asrwordsconfigure
|
151
|
+
@AsrTranslateConfigure = asrtranslateconfigure
|
143
152
|
@ObjectConfigure = objectconfigure
|
144
153
|
@ScreenshotInterval = screenshotinterval
|
145
154
|
@CreateTime = createtime
|
@@ -150,6 +159,7 @@ module TencentCloud
|
|
150
159
|
@Definition = params['Definition']
|
151
160
|
@Name = params['Name']
|
152
161
|
@Comment = params['Comment']
|
162
|
+
@Type = params['Type']
|
153
163
|
unless params['HeadTailConfigure'].nil?
|
154
164
|
@HeadTailConfigure = HeadTailConfigureInfo.new
|
155
165
|
@HeadTailConfigure.deserialize(params['HeadTailConfigure'])
|
@@ -178,6 +188,10 @@ module TencentCloud
|
|
178
188
|
@AsrWordsConfigure = AsrWordsConfigureInfo.new
|
179
189
|
@AsrWordsConfigure.deserialize(params['AsrWordsConfigure'])
|
180
190
|
end
|
191
|
+
unless params['AsrTranslateConfigure'].nil?
|
192
|
+
@AsrTranslateConfigure = AsrTranslateConfigureInfo.new
|
193
|
+
@AsrTranslateConfigure.deserialize(params['AsrTranslateConfigure'])
|
194
|
+
end
|
181
195
|
unless params['ObjectConfigure'].nil?
|
182
196
|
@ObjectConfigure = ObjectConfigureInfo.new
|
183
197
|
@ObjectConfigure.deserialize(params['ObjectConfigure'])
|
@@ -1223,6 +1237,7 @@ module TencentCloud
|
|
1223
1237
|
# <li>AsrWordsRecognition:语音关键词识别,</li>
|
1224
1238
|
# <li>OcrWordsRecognition:文本关键词识别,</li>
|
1225
1239
|
# <li>AsrFullTextRecognition:语音全文识别,</li>
|
1240
|
+
# <li>AsrTranslateRecognition:语音翻译识别,</li>
|
1226
1241
|
# <li>OcrFullTextRecognition:文本全文识别,</li>
|
1227
1242
|
# <li>HeadTailRecognition:视频片头片尾识别,</li>
|
1228
1243
|
# <li>ObjectRecognition:物体识别。</li>
|
@@ -1247,6 +1262,9 @@ module TencentCloud
|
|
1247
1262
|
# AsrFullTextRecognition 时有效。
|
1248
1263
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1249
1264
|
# @type AsrFullTextTask: :class:`Tencentcloud::Vod.v20180717.models.AiRecognitionTaskAsrFullTextResult`
|
1265
|
+
# @param AsrTranslateTask: 语音翻译结果,当 Type 为 AsrTranslateRecognition 时有效。
|
1266
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1267
|
+
# @type AsrTranslateTask: :class:`Tencentcloud::Vod.v20180717.models.AiRecognitionTaskAsrTranslateResult`
|
1250
1268
|
# @param OcrWordsTask: 文本关键词识别结果,当 Type 为
|
1251
1269
|
# OcrWordsRecognition 时有效。
|
1252
1270
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -1260,15 +1278,16 @@ module TencentCloud
|
|
1260
1278
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1261
1279
|
# @type ObjectTask: :class:`Tencentcloud::Vod.v20180717.models.AiRecognitionTaskObjectResult`
|
1262
1280
|
|
1263
|
-
attr_accessor :Type, :HeadTailTask, :SegmentTask, :FaceTask, :AsrWordsTask, :AsrFullTextTask, :OcrWordsTask, :OcrFullTextTask, :ObjectTask
|
1281
|
+
attr_accessor :Type, :HeadTailTask, :SegmentTask, :FaceTask, :AsrWordsTask, :AsrFullTextTask, :AsrTranslateTask, :OcrWordsTask, :OcrFullTextTask, :ObjectTask
|
1264
1282
|
|
1265
|
-
def initialize(type=nil, headtailtask=nil, segmenttask=nil, facetask=nil, asrwordstask=nil, asrfulltexttask=nil, ocrwordstask=nil, ocrfulltexttask=nil, objecttask=nil)
|
1283
|
+
def initialize(type=nil, headtailtask=nil, segmenttask=nil, facetask=nil, asrwordstask=nil, asrfulltexttask=nil, asrtranslatetask=nil, ocrwordstask=nil, ocrfulltexttask=nil, objecttask=nil)
|
1266
1284
|
@Type = type
|
1267
1285
|
@HeadTailTask = headtailtask
|
1268
1286
|
@SegmentTask = segmenttask
|
1269
1287
|
@FaceTask = facetask
|
1270
1288
|
@AsrWordsTask = asrwordstask
|
1271
1289
|
@AsrFullTextTask = asrfulltexttask
|
1290
|
+
@AsrTranslateTask = asrtranslatetask
|
1272
1291
|
@OcrWordsTask = ocrwordstask
|
1273
1292
|
@OcrFullTextTask = ocrfulltexttask
|
1274
1293
|
@ObjectTask = objecttask
|
@@ -1296,6 +1315,10 @@ module TencentCloud
|
|
1296
1315
|
@AsrFullTextTask = AiRecognitionTaskAsrFullTextResult.new
|
1297
1316
|
@AsrFullTextTask.deserialize(params['AsrFullTextTask'])
|
1298
1317
|
end
|
1318
|
+
unless params['AsrTranslateTask'].nil?
|
1319
|
+
@AsrTranslateTask = AiRecognitionTaskAsrTranslateResult.new
|
1320
|
+
@AsrTranslateTask.deserialize(params['AsrTranslateTask'])
|
1321
|
+
end
|
1299
1322
|
unless params['OcrWordsTask'].nil?
|
1300
1323
|
@OcrWordsTask = AiRecognitionTaskOcrWordsResult.new
|
1301
1324
|
@OcrWordsTask.deserialize(params['OcrWordsTask'])
|
@@ -1431,6 +1454,14 @@ module TencentCloud
|
|
1431
1454
|
|
1432
1455
|
# 字幕信息。
|
1433
1456
|
class AiRecognitionTaskAsrFullTextResultOutputSubtitleItem < TencentCloud::Common::AbstractModel
|
1457
|
+
# @param Id: 媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。
|
1458
|
+
# <font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。
|
1459
|
+
# @type Id: String
|
1460
|
+
# @param Name: 媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。
|
1461
|
+
# <font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。
|
1462
|
+
# @type Name: String
|
1463
|
+
# @param Language: 字幕语言。
|
1464
|
+
# @type Language: String
|
1434
1465
|
# @param Format: 字幕文件格式,取值范围:
|
1435
1466
|
# <li>vtt:WebVTT 字幕文件;</li>
|
1436
1467
|
# <li>srt:SRT 字幕文件。</li>
|
@@ -1438,14 +1469,20 @@ module TencentCloud
|
|
1438
1469
|
# @param Url: 字幕文件 Url。
|
1439
1470
|
# @type Url: String
|
1440
1471
|
|
1441
|
-
attr_accessor :Format, :Url
|
1472
|
+
attr_accessor :Id, :Name, :Language, :Format, :Url
|
1442
1473
|
|
1443
|
-
def initialize(format=nil, url=nil)
|
1474
|
+
def initialize(id=nil, name=nil, language=nil, format=nil, url=nil)
|
1475
|
+
@Id = id
|
1476
|
+
@Name = name
|
1477
|
+
@Language = language
|
1444
1478
|
@Format = format
|
1445
1479
|
@Url = url
|
1446
1480
|
end
|
1447
1481
|
|
1448
1482
|
def deserialize(params)
|
1483
|
+
@Id = params['Id']
|
1484
|
+
@Name = params['Name']
|
1485
|
+
@Language = params['Language']
|
1449
1486
|
@Format = params['Format']
|
1450
1487
|
@Url = params['Url']
|
1451
1488
|
end
|
@@ -1479,6 +1516,152 @@ module TencentCloud
|
|
1479
1516
|
end
|
1480
1517
|
end
|
1481
1518
|
|
1519
|
+
# 语音翻译结果。
|
1520
|
+
class AiRecognitionTaskAsrTranslateResult < TencentCloud::Common::AbstractModel
|
1521
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
1522
|
+
# @type Status: String
|
1523
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
1524
|
+
# @type ErrCodeExt: String
|
1525
|
+
# @param ErrCode: 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。
|
1526
|
+
# @type ErrCode: Integer
|
1527
|
+
# @param Message: 错误信息。
|
1528
|
+
# @type Message: String
|
1529
|
+
# @param Input: 语音翻译任务输入信息。
|
1530
|
+
# @type Input: :class:`Tencentcloud::Vod.v20180717.models.AiRecognitionTaskAsrTranslateResultInput`
|
1531
|
+
# @param Output: 语音翻译任务输出信息。
|
1532
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1533
|
+
# @type Output: :class:`Tencentcloud::Vod.v20180717.models.AiRecognitionTaskAsrTranslateResultOutput`
|
1534
|
+
# @param Progress: 语音翻译任务进度,取值范围 [0-100] 。
|
1535
|
+
# @type Progress: Integer
|
1536
|
+
# @param BeginProcessTime: 语音翻译任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
1537
|
+
# @type BeginProcessTime: String
|
1538
|
+
# @param FinishTime: 语音翻译任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
1539
|
+
# @type FinishTime: String
|
1540
|
+
|
1541
|
+
attr_accessor :Status, :ErrCodeExt, :ErrCode, :Message, :Input, :Output, :Progress, :BeginProcessTime, :FinishTime
|
1542
|
+
|
1543
|
+
def initialize(status=nil, errcodeext=nil, errcode=nil, message=nil, input=nil, output=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
1544
|
+
@Status = status
|
1545
|
+
@ErrCodeExt = errcodeext
|
1546
|
+
@ErrCode = errcode
|
1547
|
+
@Message = message
|
1548
|
+
@Input = input
|
1549
|
+
@Output = output
|
1550
|
+
@Progress = progress
|
1551
|
+
@BeginProcessTime = beginprocesstime
|
1552
|
+
@FinishTime = finishtime
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
def deserialize(params)
|
1556
|
+
@Status = params['Status']
|
1557
|
+
@ErrCodeExt = params['ErrCodeExt']
|
1558
|
+
@ErrCode = params['ErrCode']
|
1559
|
+
@Message = params['Message']
|
1560
|
+
unless params['Input'].nil?
|
1561
|
+
@Input = AiRecognitionTaskAsrTranslateResultInput.new
|
1562
|
+
@Input.deserialize(params['Input'])
|
1563
|
+
end
|
1564
|
+
unless params['Output'].nil?
|
1565
|
+
@Output = AiRecognitionTaskAsrTranslateResultOutput.new
|
1566
|
+
@Output.deserialize(params['Output'])
|
1567
|
+
end
|
1568
|
+
@Progress = params['Progress']
|
1569
|
+
@BeginProcessTime = params['BeginProcessTime']
|
1570
|
+
@FinishTime = params['FinishTime']
|
1571
|
+
end
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# 语音翻译的输入。
|
1575
|
+
class AiRecognitionTaskAsrTranslateResultInput < TencentCloud::Common::AbstractModel
|
1576
|
+
# @param Definition: 语音翻译模板 ID。
|
1577
|
+
# @type Definition: Integer
|
1578
|
+
|
1579
|
+
attr_accessor :Definition
|
1580
|
+
|
1581
|
+
def initialize(definition=nil)
|
1582
|
+
@Definition = definition
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
def deserialize(params)
|
1586
|
+
@Definition = params['Definition']
|
1587
|
+
end
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
# 语音翻译结果。
|
1591
|
+
class AiRecognitionTaskAsrTranslateResultOutput < TencentCloud::Common::AbstractModel
|
1592
|
+
# @param SegmentSet: 语音翻译片段列表。
|
1593
|
+
# <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。
|
1594
|
+
# @type SegmentSet: Array
|
1595
|
+
# @param SegmentSetFileUrl: 语音翻译片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。
|
1596
|
+
# @type SegmentSetFileUrl: String
|
1597
|
+
# @param SegmentSetFileUrlExpireTime: 语音翻译片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
1598
|
+
# @type SegmentSetFileUrlExpireTime: String
|
1599
|
+
# @param SubtitleSet: 生成的字幕列表。
|
1600
|
+
# @type SubtitleSet: Array
|
1601
|
+
|
1602
|
+
attr_accessor :SegmentSet, :SegmentSetFileUrl, :SegmentSetFileUrlExpireTime, :SubtitleSet
|
1603
|
+
|
1604
|
+
def initialize(segmentset=nil, segmentsetfileurl=nil, segmentsetfileurlexpiretime=nil, subtitleset=nil)
|
1605
|
+
@SegmentSet = segmentset
|
1606
|
+
@SegmentSetFileUrl = segmentsetfileurl
|
1607
|
+
@SegmentSetFileUrlExpireTime = segmentsetfileurlexpiretime
|
1608
|
+
@SubtitleSet = subtitleset
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
def deserialize(params)
|
1612
|
+
unless params['SegmentSet'].nil?
|
1613
|
+
@SegmentSet = []
|
1614
|
+
params['SegmentSet'].each do |i|
|
1615
|
+
airecognitiontaskasrtranslatesegmentitem_tmp = AiRecognitionTaskAsrTranslateSegmentItem.new
|
1616
|
+
airecognitiontaskasrtranslatesegmentitem_tmp.deserialize(i)
|
1617
|
+
@SegmentSet << airecognitiontaskasrtranslatesegmentitem_tmp
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
@SegmentSetFileUrl = params['SegmentSetFileUrl']
|
1621
|
+
@SegmentSetFileUrlExpireTime = params['SegmentSetFileUrlExpireTime']
|
1622
|
+
unless params['SubtitleSet'].nil?
|
1623
|
+
@SubtitleSet = []
|
1624
|
+
params['SubtitleSet'].each do |i|
|
1625
|
+
airecognitiontaskasrfulltextresultoutputsubtitleitem_tmp = AiRecognitionTaskAsrFullTextResultOutputSubtitleItem.new
|
1626
|
+
airecognitiontaskasrfulltextresultoutputsubtitleitem_tmp.deserialize(i)
|
1627
|
+
@SubtitleSet << airecognitiontaskasrfulltextresultoutputsubtitleitem_tmp
|
1628
|
+
end
|
1629
|
+
end
|
1630
|
+
end
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
# 语音翻译片段。
|
1634
|
+
class AiRecognitionTaskAsrTranslateSegmentItem < TencentCloud::Common::AbstractModel
|
1635
|
+
# @param Confidence: 语音翻译片段置信度。取值:0~100。
|
1636
|
+
# @type Confidence: Float
|
1637
|
+
# @param StartTimeOffset: 语音翻译片段起始的偏移时间,单位:秒。
|
1638
|
+
# @type StartTimeOffset: Float
|
1639
|
+
# @param EndTimeOffset: 语音翻译片段终止的偏移时间,单位:秒。
|
1640
|
+
# @type EndTimeOffset: Float
|
1641
|
+
# @param Text: 识别文本。
|
1642
|
+
# @type Text: String
|
1643
|
+
# @param Translation: 翻译文本。
|
1644
|
+
# @type Translation: String
|
1645
|
+
|
1646
|
+
attr_accessor :Confidence, :StartTimeOffset, :EndTimeOffset, :Text, :Translation
|
1647
|
+
|
1648
|
+
def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, text=nil, translation=nil)
|
1649
|
+
@Confidence = confidence
|
1650
|
+
@StartTimeOffset = starttimeoffset
|
1651
|
+
@EndTimeOffset = endtimeoffset
|
1652
|
+
@Text = text
|
1653
|
+
@Translation = translation
|
1654
|
+
end
|
1655
|
+
|
1656
|
+
def deserialize(params)
|
1657
|
+
@Confidence = params['Confidence']
|
1658
|
+
@StartTimeOffset = params['StartTimeOffset']
|
1659
|
+
@EndTimeOffset = params['EndTimeOffset']
|
1660
|
+
@Text = params['Text']
|
1661
|
+
@Translation = params['Translation']
|
1662
|
+
end
|
1663
|
+
end
|
1664
|
+
|
1482
1665
|
# 语音关键词识别结果。
|
1483
1666
|
class AiRecognitionTaskAsrWordsResult < TencentCloud::Common::AbstractModel
|
1484
1667
|
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
@@ -4137,7 +4320,7 @@ module TencentCloud
|
|
4137
4320
|
# @type Switch: String
|
4138
4321
|
# @param SubtitleFormats: 生成的字幕文件格式列表,不填或者填空数组表示不生成字幕文件,可选值:
|
4139
4322
|
# <li>vtt:生成 WebVTT 字幕文件;</li>
|
4140
|
-
# <li>srt:生成 SRT 字幕文件。</li
|
4323
|
+
# <li>srt:生成 SRT 字幕文件。</li><font color=red>注意:</font>云点播媒资信息仅支持添加 vtt 字幕,因此当且仅当 SubtitleFormats 包含 vtt 时,云点播将生成的字幕添加到媒资。
|
4141
4324
|
# @type SubtitleFormats: Array
|
4142
4325
|
# @param SubtitleFormat: 生成的字幕文件格式,不填或者填空字符串表示不生成字幕文件,可选值:
|
4143
4326
|
# <li>vtt:生成 WebVTT 字幕文件;</li>
|
@@ -4151,14 +4334,18 @@ module TencentCloud
|
|
4151
4334
|
# <li>zh-ca:粤语。</li>
|
4152
4335
|
# <font color=red>注意:</font> 填空字符串,或者不填该参数,则自动识别(效果较难保证,推荐填写原始媒体对应的语言,以提高识别的准确率)。
|
4153
4336
|
# @type SrcLanguage: String
|
4337
|
+
# @param SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示,若不填则云点播自动生成。
|
4338
|
+
# <font color=red>注意:</font>仅当 SubtitleFormats 包含 vtt 时,该字段有效。
|
4339
|
+
# @type SubtitleName: String
|
4154
4340
|
|
4155
|
-
attr_accessor :Switch, :SubtitleFormats, :SubtitleFormat, :SrcLanguage
|
4341
|
+
attr_accessor :Switch, :SubtitleFormats, :SubtitleFormat, :SrcLanguage, :SubtitleName
|
4156
4342
|
|
4157
|
-
def initialize(switch=nil, subtitleformats=nil, subtitleformat=nil, srclanguage=nil)
|
4343
|
+
def initialize(switch=nil, subtitleformats=nil, subtitleformat=nil, srclanguage=nil, subtitlename=nil)
|
4158
4344
|
@Switch = switch
|
4159
4345
|
@SubtitleFormats = subtitleformats
|
4160
4346
|
@SubtitleFormat = subtitleformat
|
4161
4347
|
@SrcLanguage = srclanguage
|
4348
|
+
@SubtitleName = subtitlename
|
4162
4349
|
end
|
4163
4350
|
|
4164
4351
|
def deserialize(params)
|
@@ -4166,6 +4353,7 @@ module TencentCloud
|
|
4166
4353
|
@SubtitleFormats = params['SubtitleFormats']
|
4167
4354
|
@SubtitleFormat = params['SubtitleFormat']
|
4168
4355
|
@SrcLanguage = params['SrcLanguage']
|
4356
|
+
@SubtitleName = params['SubtitleName']
|
4169
4357
|
end
|
4170
4358
|
end
|
4171
4359
|
|
@@ -4188,14 +4376,17 @@ module TencentCloud
|
|
4188
4376
|
# <li>ja:日语;</li>
|
4189
4377
|
# <li>zh-ca:粤语。</li>
|
4190
4378
|
# @type SrcLanguage: String
|
4379
|
+
# @param SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示。
|
4380
|
+
# @type SubtitleName: String
|
4191
4381
|
|
4192
|
-
attr_accessor :Switch, :SubtitleFormatsOperation, :SubtitleFormat, :SrcLanguage
|
4382
|
+
attr_accessor :Switch, :SubtitleFormatsOperation, :SubtitleFormat, :SrcLanguage, :SubtitleName
|
4193
4383
|
|
4194
|
-
def initialize(switch=nil, subtitleformatsoperation=nil, subtitleformat=nil, srclanguage=nil)
|
4384
|
+
def initialize(switch=nil, subtitleformatsoperation=nil, subtitleformat=nil, srclanguage=nil, subtitlename=nil)
|
4195
4385
|
@Switch = switch
|
4196
4386
|
@SubtitleFormatsOperation = subtitleformatsoperation
|
4197
4387
|
@SubtitleFormat = subtitleformat
|
4198
4388
|
@SrcLanguage = srclanguage
|
4389
|
+
@SubtitleName = subtitlename
|
4199
4390
|
end
|
4200
4391
|
|
4201
4392
|
def deserialize(params)
|
@@ -4206,6 +4397,269 @@ module TencentCloud
|
|
4206
4397
|
end
|
4207
4398
|
@SubtitleFormat = params['SubtitleFormat']
|
4208
4399
|
@SrcLanguage = params['SrcLanguage']
|
4400
|
+
@SubtitleName = params['SubtitleName']
|
4401
|
+
end
|
4402
|
+
end
|
4403
|
+
|
4404
|
+
# 语音翻译任务控制参数
|
4405
|
+
class AsrTranslateConfigureInfo < TencentCloud::Common::AbstractModel
|
4406
|
+
# @param Switch: 语音翻译任务开关,可选值:
|
4407
|
+
# <li>ON:开启;</li>
|
4408
|
+
# <li>OFF:关闭。</li><font color=red>注意:</font>语音翻译任务本身会返回 ASR 全文识别结果,为避免重复收费,因此禁止同时开启语音翻译和 ASR 全文识别功能项。
|
4409
|
+
# @type Switch: String
|
4410
|
+
# @param SrcLanguage: 媒体源语言,当 Switch 为 ON 时,此参数必填。取值范围:
|
4411
|
+
# <li>zh:中文;</li>
|
4412
|
+
# <li>en:英文;</li>
|
4413
|
+
# <li>ja:日文;</li>
|
4414
|
+
# <li>ko:韩文;</li>
|
4415
|
+
# <li>vi:越南语;</li>
|
4416
|
+
# <li>ms:马来语;</li>
|
4417
|
+
# <li>th:泰语;</li>
|
4418
|
+
# <li>pt:葡萄牙语;</li>
|
4419
|
+
# <li>tr:土耳其语;</li>
|
4420
|
+
# <li>ar:阿拉伯语;</li>
|
4421
|
+
# <li>es:西班牙语;</li>
|
4422
|
+
# <li>hi:印地语;</li>
|
4423
|
+
# <li>fr:法语。</li>
|
4424
|
+
# @type SrcLanguage: String
|
4425
|
+
# @param DstLanguage: 翻译目标语言,当 Switch 为 ON 时,此参数必填。
|
4426
|
+
# 当 SrcLanguage 为 zh(中文)时,取值范围:
|
4427
|
+
# <li>en:英文;</li>
|
4428
|
+
# <li>ja:日文;</li>
|
4429
|
+
# <li>ko:韩文;</li>
|
4430
|
+
# <li>fr:法语;</li>
|
4431
|
+
# <li>es:西班牙语;</li>
|
4432
|
+
# <li>it:意大利语;</li>
|
4433
|
+
# <li>de:德语;</li>
|
4434
|
+
# <li>tr:土耳其语;</li>
|
4435
|
+
# <li>ru:俄语;</li>
|
4436
|
+
# <li>pt:葡萄牙语;</li>
|
4437
|
+
# <li>vi:越南语;</li>
|
4438
|
+
# <li>id:印尼语;</li>
|
4439
|
+
# <li>th:泰语;</li>
|
4440
|
+
# <li>ms:马来语。</li>
|
4441
|
+
# 当 SrcLanguage 为 en(英文)时,取值范围:
|
4442
|
+
# <li>zh:中文;</li>
|
4443
|
+
# <li>ja:日文;</li>
|
4444
|
+
# <li>ko:韩文;</li>
|
4445
|
+
# <li>fr:法语;</li>
|
4446
|
+
# <li>es:西班牙语;</li>
|
4447
|
+
# <li>it:意大利语;</li>
|
4448
|
+
# <li>de:德语;</li>
|
4449
|
+
# <li>tr:土耳其语;</li>
|
4450
|
+
# <li>ru:俄语;</li>
|
4451
|
+
# <li>pt:葡萄牙语;</li>
|
4452
|
+
# <li>vi:越南语;</li>
|
4453
|
+
# <li>id:印尼语;</li>
|
4454
|
+
# <li>th:泰语;</li>
|
4455
|
+
# <li>ms:马来语;</li>
|
4456
|
+
# <li>ar:阿拉伯语;</li>
|
4457
|
+
# <li>hi:印地语。</li>
|
4458
|
+
# 当 SrcLanguage 为 ja(日文)时,取值范围:
|
4459
|
+
# <li>zh:中文;</li>
|
4460
|
+
# <li>en:英文;</li>
|
4461
|
+
# <li>ko:韩文。</li>
|
4462
|
+
# 当 SrcLanguage 为 ko(韩文)时,取值范围:
|
4463
|
+
# <li>zh:中文;</li>
|
4464
|
+
# <li>en:英文;</li>
|
4465
|
+
# <li>ja:日文。</li>
|
4466
|
+
# 当 SrcLanguage 为 vi(越南语)或 ms(马来语)或 th(泰语)时,取值范围:
|
4467
|
+
# <li>zh:中文;</li>
|
4468
|
+
# <li>en:英文。</li>
|
4469
|
+
# 当 SrcLanguage 为 pt(葡萄牙语)时,取值范围:
|
4470
|
+
# <li>zh:中文;</li>
|
4471
|
+
# <li>en:英文;</li>
|
4472
|
+
# <li>fr:法语;</li>
|
4473
|
+
# <li>es:西班牙语;</li>
|
4474
|
+
# <li>it:意大利语;</li>
|
4475
|
+
# <li>de:德语;</li>
|
4476
|
+
# <li>tr:土耳其语;</li>
|
4477
|
+
# <li>ru:俄语。</li>
|
4478
|
+
# 当 SrcLanguage 为 tr(土耳其语)时,取值范围:
|
4479
|
+
# <li>zh:中文;</li>
|
4480
|
+
# <li>en:英文;</li>
|
4481
|
+
# <li>fr:法语;</li>
|
4482
|
+
# <li>es:西班牙语;</li>
|
4483
|
+
# <li>it:意大利语;</li>
|
4484
|
+
# <li>de:德语;</li>
|
4485
|
+
# <li>ru:俄语;</li>
|
4486
|
+
# <li>pt:葡萄牙语。</li>
|
4487
|
+
# 当 SrcLanguage 为 es(西班牙语)时,取值范围:
|
4488
|
+
# <li>zh:中文;</li>
|
4489
|
+
# <li>en:英文;</li>
|
4490
|
+
# <li>fr:法语;</li>
|
4491
|
+
# <li>it:意大利语;</li>
|
4492
|
+
# <li>de:德语;</li>
|
4493
|
+
# <li>tr:土耳其语;</li>
|
4494
|
+
# <li>ru:俄语;</li>
|
4495
|
+
# <li>pt:葡萄牙语。</li>
|
4496
|
+
# 当 SrcLanguage 为 ar(阿拉伯语)或 hi(印地语)时,取值范围:
|
4497
|
+
# <li>en:英文。</li>
|
4498
|
+
# 当 SrcLanguage 为 fr(法语)时,取值范围:
|
4499
|
+
# <li>zh:中文;</li>
|
4500
|
+
# <li>en:英文;</li>
|
4501
|
+
# <li>es:西班牙语;</li>
|
4502
|
+
# <li>it:意大利语;</li>
|
4503
|
+
# <li>de:德语;</li>
|
4504
|
+
# <li>tr:土耳其语;</li>
|
4505
|
+
# <li>ru:俄语;</li>
|
4506
|
+
# <li>pt:葡萄牙语。</li>
|
4507
|
+
# @type DstLanguage: String
|
4508
|
+
# @param SubtitleFormats: 生成的字幕文件格式列表,不填或者填空数组表示不生成字幕文件,可选值:
|
4509
|
+
# <li>vtt:生成 WebVTT 字幕文件;</li>
|
4510
|
+
# <li>srt:生成 SRT 字幕文件。</li><font color=red>注意:</font> 云点播媒资信息仅支持添加 vtt 字幕,因此当且仅当 SubtitleFormats 包含 vtt 时,云点播将生成的字幕添加到媒资。
|
4511
|
+
# @type SubtitleFormats: Array
|
4512
|
+
# @param SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示,若不填则云点播自动生成。
|
4513
|
+
# <font color=red>注意:</font>仅当 SubtitleFormats 包含 vtt 时,该字段有效。
|
4514
|
+
# @type SubtitleName: String
|
4515
|
+
|
4516
|
+
attr_accessor :Switch, :SrcLanguage, :DstLanguage, :SubtitleFormats, :SubtitleName
|
4517
|
+
|
4518
|
+
def initialize(switch=nil, srclanguage=nil, dstlanguage=nil, subtitleformats=nil, subtitlename=nil)
|
4519
|
+
@Switch = switch
|
4520
|
+
@SrcLanguage = srclanguage
|
4521
|
+
@DstLanguage = dstlanguage
|
4522
|
+
@SubtitleFormats = subtitleformats
|
4523
|
+
@SubtitleName = subtitlename
|
4524
|
+
end
|
4525
|
+
|
4526
|
+
def deserialize(params)
|
4527
|
+
@Switch = params['Switch']
|
4528
|
+
@SrcLanguage = params['SrcLanguage']
|
4529
|
+
@DstLanguage = params['DstLanguage']
|
4530
|
+
@SubtitleFormats = params['SubtitleFormats']
|
4531
|
+
@SubtitleName = params['SubtitleName']
|
4532
|
+
end
|
4533
|
+
end
|
4534
|
+
|
4535
|
+
# 语音翻译控制参数
|
4536
|
+
class AsrTranslateConfigureInfoForUpdate < TencentCloud::Common::AbstractModel
|
4537
|
+
# @param Switch: 语音翻译任务开关,可选值:
|
4538
|
+
# <li>ON:开启;</li>
|
4539
|
+
# <li>OFF:关闭。</li>
|
4540
|
+
# @type Switch: String
|
4541
|
+
# @param SrcLanguage: 媒体源语言,取值范围:
|
4542
|
+
# <li>zh:中文;</li>
|
4543
|
+
# <li>en:英文;</li>
|
4544
|
+
# <li>ja:日文;</li>
|
4545
|
+
# <li>ko:韩文;</li>
|
4546
|
+
# <li>vi:越南语;</li>
|
4547
|
+
# <li>ms:马来语;</li>
|
4548
|
+
# <li>th:泰语;</li>
|
4549
|
+
# <li>pt:葡萄牙语;</li>
|
4550
|
+
# <li>tr:土耳其语;</li>
|
4551
|
+
# <li>ar:阿拉伯语;</li>
|
4552
|
+
# <li>es:西班牙语;</li>
|
4553
|
+
# <li>hi:印地语;</li>
|
4554
|
+
# <li>fr:法语。</li>
|
4555
|
+
# @type SrcLanguage: String
|
4556
|
+
# @param DstLanguage: 翻译目标语言。
|
4557
|
+
# 当 SrcLanguage 为 zh(中文)时,取值范围:
|
4558
|
+
# <li>en:英文;</li>
|
4559
|
+
# <li>ja:日文;</li>
|
4560
|
+
# <li>ko:韩文;</li>
|
4561
|
+
# <li>fr:法语;</li>
|
4562
|
+
# <li>es:西班牙语;</li>
|
4563
|
+
# <li>it:意大利语;</li>
|
4564
|
+
# <li>de:德语;</li>
|
4565
|
+
# <li>tr:土耳其语;</li>
|
4566
|
+
# <li>ru:俄语;</li>
|
4567
|
+
# <li>pt:葡萄牙语;</li>
|
4568
|
+
# <li>vi:越南语;</li>
|
4569
|
+
# <li>id:印尼语;</li>
|
4570
|
+
# <li>th:泰语;</li>
|
4571
|
+
# <li>ms:马来语。</li>
|
4572
|
+
# 当 SrcLanguage 为 en(英文)时,取值范围:
|
4573
|
+
# <li>zh:中文;</li>
|
4574
|
+
# <li>ja:日文;</li>
|
4575
|
+
# <li>ko:韩文;</li>
|
4576
|
+
# <li>fr:法语;</li>
|
4577
|
+
# <li>es:西班牙语;</li>
|
4578
|
+
# <li>it:意大利语;</li>
|
4579
|
+
# <li>de:德语;</li>
|
4580
|
+
# <li>tr:土耳其语;</li>
|
4581
|
+
# <li>ru:俄语;</li>
|
4582
|
+
# <li>pt:葡萄牙语;</li>
|
4583
|
+
# <li>vi:越南语;</li>
|
4584
|
+
# <li>id:印尼语;</li>
|
4585
|
+
# <li>th:泰语;</li>
|
4586
|
+
# <li>ms:马来语;</li>
|
4587
|
+
# <li>ar:阿拉伯语;</li>
|
4588
|
+
# <li>hi:印地语。</li>
|
4589
|
+
# 当 SrcLanguage 为 ja(日文)时,取值范围:
|
4590
|
+
# <li>zh:中文;</li>
|
4591
|
+
# <li>en:英文;</li>
|
4592
|
+
# <li>ko:韩文。</li>
|
4593
|
+
# 当 SrcLanguage 为 ko(韩文)时,取值范围:
|
4594
|
+
# <li>zh:中文;</li>
|
4595
|
+
# <li>en:英文;</li>
|
4596
|
+
# <li>ja:日文。</li>
|
4597
|
+
# 当 SrcLanguage 为 vi(越南语)或 ms(马来语)或 th(泰语)时,取值范围:
|
4598
|
+
# <li>zh:中文;</li>
|
4599
|
+
# <li>en:英文。</li>
|
4600
|
+
# 当 SrcLanguage 为 pt(葡萄牙语)时,取值范围:
|
4601
|
+
# <li>zh:中文;</li>
|
4602
|
+
# <li>en:英文;</li>
|
4603
|
+
# <li>fr:法语;</li>
|
4604
|
+
# <li>es:西班牙语;</li>
|
4605
|
+
# <li>it:意大利语;</li>
|
4606
|
+
# <li>de:德语;</li>
|
4607
|
+
# <li>tr:土耳其语;</li>
|
4608
|
+
# <li>ru:俄语。</li>
|
4609
|
+
# 当 SrcLanguage 为 tr(土耳其语)时,取值范围:
|
4610
|
+
# <li>zh:中文;</li>
|
4611
|
+
# <li>en:英文;</li>
|
4612
|
+
# <li>fr:法语;</li>
|
4613
|
+
# <li>es:西班牙语;</li>
|
4614
|
+
# <li>it:意大利语;</li>
|
4615
|
+
# <li>de:德语;</li>
|
4616
|
+
# <li>ru:俄语;</li>
|
4617
|
+
# <li>pt:葡萄牙语。</li>
|
4618
|
+
# 当 SrcLanguage 为 es(西班牙语)时,取值范围:
|
4619
|
+
# <li>zh:中文;</li>
|
4620
|
+
# <li>en:英文;</li>
|
4621
|
+
# <li>fr:法语;</li>
|
4622
|
+
# <li>it:意大利语;</li>
|
4623
|
+
# <li>de:德语;</li>
|
4624
|
+
# <li>tr:土耳其语;</li>
|
4625
|
+
# <li>ru:俄语;</li>
|
4626
|
+
# <li>pt:葡萄牙语。</li>
|
4627
|
+
# 当 SrcLanguage 为 ar(阿拉伯语)或 hi(印地语)时,取值范围:
|
4628
|
+
# <li>en:英文。</li>
|
4629
|
+
# 当 SrcLanguage 为 fr(法语)时,取值范围:
|
4630
|
+
# <li>zh:中文;</li>
|
4631
|
+
# <li>en:英文;</li>
|
4632
|
+
# <li>es:西班牙语;</li>
|
4633
|
+
# <li>it:意大利语;</li>
|
4634
|
+
# <li>de:德语;</li>
|
4635
|
+
# <li>tr:土耳其语;</li>
|
4636
|
+
# <li>ru:俄语;</li>
|
4637
|
+
# <li>pt:葡萄牙语。</li>
|
4638
|
+
# @type DstLanguage: String
|
4639
|
+
# @param SubtitleFormatsOperation: 字幕格式列表操作信息。
|
4640
|
+
# @type SubtitleFormatsOperation: :class:`Tencentcloud::Vod.v20180717.models.SubtitleFormatsOperation`
|
4641
|
+
# @param SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示。
|
4642
|
+
# @type SubtitleName: String
|
4643
|
+
|
4644
|
+
attr_accessor :Switch, :SrcLanguage, :DstLanguage, :SubtitleFormatsOperation, :SubtitleName
|
4645
|
+
|
4646
|
+
def initialize(switch=nil, srclanguage=nil, dstlanguage=nil, subtitleformatsoperation=nil, subtitlename=nil)
|
4647
|
+
@Switch = switch
|
4648
|
+
@SrcLanguage = srclanguage
|
4649
|
+
@DstLanguage = dstlanguage
|
4650
|
+
@SubtitleFormatsOperation = subtitleformatsoperation
|
4651
|
+
@SubtitleName = subtitlename
|
4652
|
+
end
|
4653
|
+
|
4654
|
+
def deserialize(params)
|
4655
|
+
@Switch = params['Switch']
|
4656
|
+
@SrcLanguage = params['SrcLanguage']
|
4657
|
+
@DstLanguage = params['DstLanguage']
|
4658
|
+
unless params['SubtitleFormatsOperation'].nil?
|
4659
|
+
@SubtitleFormatsOperation = SubtitleFormatsOperation.new
|
4660
|
+
@SubtitleFormatsOperation.deserialize(params['SubtitleFormatsOperation'])
|
4661
|
+
end
|
4662
|
+
@SubtitleName = params['SubtitleName']
|
4209
4663
|
end
|
4210
4664
|
end
|
4211
4665
|
|
@@ -5703,14 +6157,16 @@ module TencentCloud
|
|
5703
6157
|
# @type AsrFullTextConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrFullTextConfigureInfo`
|
5704
6158
|
# @param AsrWordsConfigure: 语音关键词识别控制参数。
|
5705
6159
|
# @type AsrWordsConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrWordsConfigureInfo`
|
6160
|
+
# @param AsrTranslateConfigure: 语音翻译控制参数。
|
6161
|
+
# @type AsrTranslateConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrTranslateConfigureInfo`
|
5706
6162
|
# @param ObjectConfigure: 物体识别控制参数。
|
5707
6163
|
# @type ObjectConfigure: :class:`Tencentcloud::Vod.v20180717.models.ObjectConfigureInfo`
|
5708
6164
|
# @param ScreenshotInterval: 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。
|
5709
6165
|
# @type ScreenshotInterval: Float
|
5710
6166
|
|
5711
|
-
attr_accessor :SubAppId, :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :ObjectConfigure, :ScreenshotInterval
|
6167
|
+
attr_accessor :SubAppId, :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :AsrTranslateConfigure, :ObjectConfigure, :ScreenshotInterval
|
5712
6168
|
|
5713
|
-
def initialize(subappid=nil, name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, objectconfigure=nil, screenshotinterval=nil)
|
6169
|
+
def initialize(subappid=nil, name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, asrtranslateconfigure=nil, objectconfigure=nil, screenshotinterval=nil)
|
5714
6170
|
@SubAppId = subappid
|
5715
6171
|
@Name = name
|
5716
6172
|
@Comment = comment
|
@@ -5721,6 +6177,7 @@ module TencentCloud
|
|
5721
6177
|
@OcrWordsConfigure = ocrwordsconfigure
|
5722
6178
|
@AsrFullTextConfigure = asrfulltextconfigure
|
5723
6179
|
@AsrWordsConfigure = asrwordsconfigure
|
6180
|
+
@AsrTranslateConfigure = asrtranslateconfigure
|
5724
6181
|
@ObjectConfigure = objectconfigure
|
5725
6182
|
@ScreenshotInterval = screenshotinterval
|
5726
6183
|
end
|
@@ -5757,6 +6214,10 @@ module TencentCloud
|
|
5757
6214
|
@AsrWordsConfigure = AsrWordsConfigureInfo.new
|
5758
6215
|
@AsrWordsConfigure.deserialize(params['AsrWordsConfigure'])
|
5759
6216
|
end
|
6217
|
+
unless params['AsrTranslateConfigure'].nil?
|
6218
|
+
@AsrTranslateConfigure = AsrTranslateConfigureInfo.new
|
6219
|
+
@AsrTranslateConfigure.deserialize(params['AsrTranslateConfigure'])
|
6220
|
+
end
|
5760
6221
|
unless params['ObjectConfigure'].nil?
|
5761
6222
|
@ObjectConfigure = ObjectConfigureInfo.new
|
5762
6223
|
@ObjectConfigure.deserialize(params['ObjectConfigure'])
|
@@ -8839,16 +9300,19 @@ module TencentCloud
|
|
8839
9300
|
# @type SubAppId: Integer
|
8840
9301
|
# @param Definitions: 音视频内容识别模板唯一标识过滤条件,数组长度限制:100。
|
8841
9302
|
# @type Definitions: Array
|
9303
|
+
# @param Type: 模板类型过滤条件,可选值:<li>Preset:系统预置模板;</li><li>Custom:用户自定义模板。</li>不填默认为空,即不对模板类型过滤。
|
9304
|
+
# @type Type: String
|
8842
9305
|
# @param Offset: 分页偏移量,默认值:0。
|
8843
9306
|
# @type Offset: Integer
|
8844
9307
|
# @param Limit: 返回记录条数,默认值:10,最大值:100。
|
8845
9308
|
# @type Limit: Integer
|
8846
9309
|
|
8847
|
-
attr_accessor :SubAppId, :Definitions, :Offset, :Limit
|
9310
|
+
attr_accessor :SubAppId, :Definitions, :Type, :Offset, :Limit
|
8848
9311
|
|
8849
|
-
def initialize(subappid=nil, definitions=nil, offset=nil, limit=nil)
|
9312
|
+
def initialize(subappid=nil, definitions=nil, type=nil, offset=nil, limit=nil)
|
8850
9313
|
@SubAppId = subappid
|
8851
9314
|
@Definitions = definitions
|
9315
|
+
@Type = type
|
8852
9316
|
@Offset = offset
|
8853
9317
|
@Limit = limit
|
8854
9318
|
end
|
@@ -8856,6 +9320,7 @@ module TencentCloud
|
|
8856
9320
|
def deserialize(params)
|
8857
9321
|
@SubAppId = params['SubAppId']
|
8858
9322
|
@Definitions = params['Definitions']
|
9323
|
+
@Type = params['Type']
|
8859
9324
|
@Offset = params['Offset']
|
8860
9325
|
@Limit = params['Limit']
|
8861
9326
|
end
|
@@ -17331,9 +17796,19 @@ module TencentCloud
|
|
17331
17796
|
# @param Name: 字幕名字,长度限制:64 个字符。
|
17332
17797
|
# @type Name: String
|
17333
17798
|
# @param Language: 字幕语言。常见的取值如下:
|
17334
|
-
# <li>
|
17335
|
-
# <li>
|
17336
|
-
# <li>
|
17799
|
+
# <li>zh:中文;</li>
|
17800
|
+
# <li>en:英文;</li>
|
17801
|
+
# <li>ja:日文;</li>
|
17802
|
+
# <li>ko:韩文;</li>
|
17803
|
+
# <li>vi:越南语;</li>
|
17804
|
+
# <li>ms:马来语;</li>
|
17805
|
+
# <li>th:泰语;</li>
|
17806
|
+
# <li>pt:葡萄牙语;</li>
|
17807
|
+
# <li>tr:土耳其语;</li>
|
17808
|
+
# <li>ar:阿拉伯语;</li>
|
17809
|
+
# <li>es:西班牙语;</li>
|
17810
|
+
# <li>hi:印地语;</li>
|
17811
|
+
# <li>fr:法语。</li>
|
17337
17812
|
# 其他取值参考 [RFC5646](https://tools.ietf.org/html/rfc5646)
|
17338
17813
|
# @type Language: String
|
17339
17814
|
# @param Format: 字幕格式。取值范围如下:
|
@@ -17370,9 +17845,19 @@ module TencentCloud
|
|
17370
17845
|
# @param Name: 字幕名字。
|
17371
17846
|
# @type Name: String
|
17372
17847
|
# @param Language: 字幕语言。常见的取值如下:
|
17373
|
-
# <li>
|
17374
|
-
# <li>
|
17375
|
-
# <li>
|
17848
|
+
# <li>zh:中文;</li>
|
17849
|
+
# <li>en:英文;</li>
|
17850
|
+
# <li>ja:日文;</li>
|
17851
|
+
# <li>ko:韩文;</li>
|
17852
|
+
# <li>vi:越南语;</li>
|
17853
|
+
# <li>ms:马来语;</li>
|
17854
|
+
# <li>th:泰语;</li>
|
17855
|
+
# <li>pt:葡萄牙语;</li>
|
17856
|
+
# <li>tr:土耳其语;</li>
|
17857
|
+
# <li>ar:阿拉伯语;</li>
|
17858
|
+
# <li>es:西班牙语;</li>
|
17859
|
+
# <li>hi:印地语;</li>
|
17860
|
+
# <li>fr:法语。</li>
|
17376
17861
|
# 其他取值参考 [RFC5646](https://tools.ietf.org/html/rfc5646)
|
17377
17862
|
# @type Language: String
|
17378
17863
|
# @param Format: 字幕格式。取值范围如下:
|
@@ -17380,15 +17865,20 @@ module TencentCloud
|
|
17380
17865
|
# @type Format: String
|
17381
17866
|
# @param Url: 字幕 URL。
|
17382
17867
|
# @type Url: String
|
17868
|
+
# @param Source: 字幕来源,取值范围:
|
17869
|
+
# <li>UserUploaded:用户上传;</li>
|
17870
|
+
# <li>AIRecognition:AI 识别,通过语音识别或语音翻译生成。</li>
|
17871
|
+
# @type Source: String
|
17383
17872
|
|
17384
|
-
attr_accessor :Id, :Name, :Language, :Format, :Url
|
17873
|
+
attr_accessor :Id, :Name, :Language, :Format, :Url, :Source
|
17385
17874
|
|
17386
|
-
def initialize(id=nil, name=nil, language=nil, format=nil, url=nil)
|
17875
|
+
def initialize(id=nil, name=nil, language=nil, format=nil, url=nil, source=nil)
|
17387
17876
|
@Id = id
|
17388
17877
|
@Name = name
|
17389
17878
|
@Language = language
|
17390
17879
|
@Format = format
|
17391
17880
|
@Url = url
|
17881
|
+
@Source = source
|
17392
17882
|
end
|
17393
17883
|
|
17394
17884
|
def deserialize(params)
|
@@ -17397,6 +17887,7 @@ module TencentCloud
|
|
17397
17887
|
@Language = params['Language']
|
17398
17888
|
@Format = params['Format']
|
17399
17889
|
@Url = params['Url']
|
17890
|
+
@Source = params['Source']
|
17400
17891
|
end
|
17401
17892
|
end
|
17402
17893
|
|
@@ -17788,14 +18279,16 @@ module TencentCloud
|
|
17788
18279
|
# @type AsrFullTextConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrFullTextConfigureInfoForUpdate`
|
17789
18280
|
# @param AsrWordsConfigure: 语音关键词识别控制参数。
|
17790
18281
|
# @type AsrWordsConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrWordsConfigureInfoForUpdate`
|
18282
|
+
# @param AsrTranslateConfigure: 语音翻译控制参数。
|
18283
|
+
# @type AsrTranslateConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrTranslateConfigureInfoForUpdate`
|
17791
18284
|
# @param ObjectConfigure: 物体识别控制参数。
|
17792
18285
|
# @type ObjectConfigure: :class:`Tencentcloud::Vod.v20180717.models.ObjectConfigureInfoForUpdate`
|
17793
18286
|
# @param ScreenshotInterval: 截帧间隔,单位为秒,最小值为 0.5 秒。
|
17794
18287
|
# @type ScreenshotInterval: Float
|
17795
18288
|
|
17796
|
-
attr_accessor :Definition, :SubAppId, :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :ObjectConfigure, :ScreenshotInterval
|
18289
|
+
attr_accessor :Definition, :SubAppId, :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :AsrTranslateConfigure, :ObjectConfigure, :ScreenshotInterval
|
17797
18290
|
|
17798
|
-
def initialize(definition=nil, subappid=nil, name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, objectconfigure=nil, screenshotinterval=nil)
|
18291
|
+
def initialize(definition=nil, subappid=nil, name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, asrtranslateconfigure=nil, objectconfigure=nil, screenshotinterval=nil)
|
17799
18292
|
@Definition = definition
|
17800
18293
|
@SubAppId = subappid
|
17801
18294
|
@Name = name
|
@@ -17807,6 +18300,7 @@ module TencentCloud
|
|
17807
18300
|
@OcrWordsConfigure = ocrwordsconfigure
|
17808
18301
|
@AsrFullTextConfigure = asrfulltextconfigure
|
17809
18302
|
@AsrWordsConfigure = asrwordsconfigure
|
18303
|
+
@AsrTranslateConfigure = asrtranslateconfigure
|
17810
18304
|
@ObjectConfigure = objectconfigure
|
17811
18305
|
@ScreenshotInterval = screenshotinterval
|
17812
18306
|
end
|
@@ -17844,6 +18338,10 @@ module TencentCloud
|
|
17844
18338
|
@AsrWordsConfigure = AsrWordsConfigureInfoForUpdate.new
|
17845
18339
|
@AsrWordsConfigure.deserialize(params['AsrWordsConfigure'])
|
17846
18340
|
end
|
18341
|
+
unless params['AsrTranslateConfigure'].nil?
|
18342
|
+
@AsrTranslateConfigure = AsrTranslateConfigureInfoForUpdate.new
|
18343
|
+
@AsrTranslateConfigure.deserialize(params['AsrTranslateConfigure'])
|
18344
|
+
end
|
17847
18345
|
unless params['ObjectConfigure'].nil?
|
17848
18346
|
@ObjectConfigure = ObjectConfigureInfoForUpdate.new
|
17849
18347
|
@ObjectConfigure.deserialize(params['ObjectConfigure'])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.931
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|